body {
    display: flex;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
   
}

#devicesContent{
position: fixed;
z-index: 1000;
}
.allFeatureBoxwillBeDisplayHere{
    position: relative;
    padding: 7px 0px 0px 0px;
    top: 70px;
    height: auto;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
}

.devices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.device-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s, box-shadow 0.3s;
}

.device-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.device-card img {
    width: 100%;
    height: 150px;padding: 15px 15px 0px 15px;
    object-fit: cover;
}

.device-card .device-info {
    padding: 10px;
    text-align: center;
}

.device-card .device-info h4 {
    margin: 0;
    font-size: 1.2rem;
}

.device-card .device-info p {
    margin: 0;
    color: #ddd;
    font-size: 0.9rem;
}
/* devices  */


/* Three Vertical Dots */
.menu-dots {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
}

.menu-dots:hover {
    color: #a0d1f5;
}
/* room new style end  */
a:hover {
    cursor: pointer;
}


.custom-modal-dialog {
    min-width: 908px;
}

/* above delete  */
/* Vertical Nav*/
.nav-side {
    min-width: 250px;
    height: 125vh;
    background-color: black;
    padding: 20px;
    color: white;
}

.nav-side a {
    color: white;
    padding: 15px;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.nav-side a:hover {
    background-color: #007bff;
    color: white;
}


/* Section Visibility */
.hidden {
    display: none;
}

/* .fixboxwithhesizerow {
    display: flex;
    flex-wrap: wrap;
    
    justify-content: start;
  
} */

.fixboxwithhesizecolume {
    flex: 1 0 18%;
    /* Adjust size to fit 6 columns within the row */
    max-width: 200px;
    /* Ensure consistent sizing */
    min-width: 150px;
    /* Minimum width to prevent collapsing */
    box-sizing: border-box;
    padding-bottom: 20px;
}

.box {
    position: relative;
    border: 1px solid #000;
    background-color: #f2f2f2;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.box:hover {
    background-color: #aea4c7;
    transform: scale(1.05);
}

/* Edit Button Styling */
.edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #007bff;
    font-size: 20px;
}

.edit-btn:hover {
    color: #0056b3;
}


#fontAddNewBox {
    font-size: 150px;
    /* font-size: 25px; */
}

.HomeRoomsImg {
    height: 146px;
    width: 196px;
}


.addNewbox {
    height: 146px;
    width: 172px;
}

/* Vertical Nav for Laptop Mode */
.nav-side {
    width: 250px;
    background-color: #343a40;
    padding: 20px;
    color: white;
    display: none;
    flex-direction: column;
    min-height: 100vh;
    height: auto;

}

.nav-side a {
    color: white;
    padding: 15px;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.nav-side a:hover {
    background-color: #007bff;
    color: white;
}

/* Mobile Mode */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }

    .nav-side {
        display: none;
    }

    .navbar {
        display: flex;
    }
}

/* Show Vertical Nav on Laptop */
@media (min-width: 992px) {
    .navbar {
        display: none;
    }

    .nav-side {
        display: flex;
    }
}

/* Main Content */
/* .content-area { */
    /* width: 100%; */
    /* background-color: #f8f9fa; */
    /* overflow-y: auto; */
/* } */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .box {
        /* left: 20px; */
        border: none;
        max-width: 120px;
        height: 130px;
    }

    .HomeRoomsImg {
        width: 117px;
        height: 80px;
        /* object-fit: cover; */
    }

    .allFeatureBoxwillBeDisplayHere{
        /* height: 465px; */
         height: 600px;
        /* position: relative; */
        /* padding: 0px 0px 0px 0px; */
        /* top: 83px; */
        /* overflow-y: scroll;
        overflow-x: hidden; */
        /* scrollbar-width: none; */
        padding-bottom: 50px;
    }
}

.modal-img {
    cursor: pointer;
    height: 100px;
    width: 100%;
    max-width: 100px;
    margin: 5px auto;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.modal-img:hover {
    border: 2px solid #007bff;
}

.selected {
    border: 2px solid #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

/* 
.modal-dialog-model {
    max-width: 100%;
    margin: 10px;
} */
@media (max-width: 576px) {
    /* .modal-dialog {
        max-width: 100%;
        margin: 10px;
    } */

    .modal-img {
        height: 80px;
        width: 80px;
    }

    /* .modal-body .row {
        justify-content: center;
    } */

    .addNewbox {
        height: 95px;
        width: 117px;
    }
}


.section {
    padding: 20px;
    text-align: center;
    /* margin-bottom: 50px; */
}


.model-btn {
    padding: 10px 20px;
    margin: 8px 80px 10px 0px;
    height: 150px;
    width: 150px;
    font-size: 1em;
    color: #fff;
    background-color: #17a2b8;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.showinnextpageselectedhome {
    position: relative;
    padding: 0px;
    margin: 0px;
    width: 176px;
    border: 1px solid black;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.model-btn :hover {
    background-color: #138496;
    transform: scale(1.1);
}

/* Ensure spacing between model buttons */
.features {
    margin: 0px 17px 0px 10px;
    /* Horizontal and vertical space between feature boxes */
}

/* Animation for feature toggle */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}



#clonedMasterBedroomBox {
    /* height: 100vh; */
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    /* Optional border for visibility */
}

#modelSelectionContainer {
    display: flex;
    justify-content: space-between;
    /* Ensure spacing between Master Bedroom box and models */
    padding: 20px;
}


.onetoeightmodelbox {
    padding: 10px 0px 0px 25px;
    /* padding-left: 20px; */
    /* display: flex;
     flex-direction: column; */
}

#newModelSelect {
    width: 90%;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #ced4da;
    font-size: 1em;
    background-color: #ffffff;
}

#featureContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.btn {
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary:hover {
    background-color: #5a6268;
}


/* Styling for the model options menu */
.model-options {
    position: relative;
    display: inline-block;
}

.options-btn {

    cursor: pointer;
}

.options-menu.hidden {
    display: none;
}

.options-menu {
    position: absolute;
    /* height: 71px; */
    height: 43px;
    width: 48%;
    top: 40px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    z-index: 10;
    list-style: none;
    padding: 6px 0;

}

.options-menu li {
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.options-menu li:hover {
    background-color: #f0f0f0;
}

.updateRemoveButtonOfRoom {
    border: 1px solid black;
    width: 93%;
    border-radius: 5px;
    margin: 2px;
}

.hidden {
    display: none;
}

#modelDetailsContainer {
    position: relative;
    top: 0px;
    height: 200px;
    width: 200px;
    padding: 10px;
    margin: 10px;


}





#maindiv {
    position: relative;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* .container {

    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
} */

/* input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 4px;
    margin: 4px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
} */

.inputboxModelSelection {
    width: 100%;
    padding: 4px;
    margin: 4px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.LoginRegistrationbutton {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.LoginRegistrationbutton:hover {
    background-color: #218838;
}

.message {
    text-align: center;
    margin-top: 20px;
    color: red;
}

.toggle-btn {
    margin-top: 20px;
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.registration-container {
    display: none;
    /* Hide the registration container by default */
}

#dashbordimg {
    margin: 0px;
    padding: 0px;
    height: 670px;
    width: 1240px;
}


/* dashbord  */
#dashboard {
    position: relative;
    width: 1268px;
    /* width: 100%; */
    height: 100vh;
    /* Full height */
    /* overflow: hidden; */
    margin-bottom: 15px;
}


#dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintain aspect ratio */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.ad-content {
    color: white;
    text-align: center;
    animation: slideIn 1s ease-out forwards;
}

.ad-content h2 {
    font-size: 2.5rem;
    margin: 0;
}

.ad-content p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.cta-button {
    padding: 10px 20px;
    background-color: #ff5722;
    /* Example color */
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e64a19;
    /* Darker shade */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sectioOnlyforHome {
    position: relative;
    top: 30px;
    margin-bottom: 100px;
}

/* Basic styling for model boxes */
.model-box {
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 5px;
    text-align: center;
}

.model-box.selected {
    background-color: #007bff;
    color: white;
}


.saved-model-box {
    display: inline-block;
    height: 200px;
    width: 200px;
    margin: 10px;
    padding: 10px;
    border: 1px solid #6c3939;
    box-sizing: border-box;
    background-color: #f7ecf4;
    text-align: center;
    vertical-align: top;
}

.saved-model-box :hover {
    /* background-color: #f7ecf9;
 transform: scale(1.05);*/
    background-color: #f7ecf9;
}


.add-model-btn {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}


#topLink {
    position: fixed;
    height: auto;
    top: 12px;
    left: 292px;
    width: auto;
    /* background-color: #f8f9fa; */
    padding: 10px;
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
}

/* Container for models */
#allsavedmodelsbox {
    display: block;
    width: 100%;
    overflow: hidden;
    /* Prevent overflowing elements */
}

/* Button container for "Add Model" */
#addModelButtonContainer {
    text-align: center;
    /* Center the add model button */
    /* margin-top: 20px; */
    margin: 20px 0px 0px 0px;

}

/* Add Model Button */
#addModelButton {
    width: 200px;
    height: 200px;
    border-radius: 5%;
    font-size: 300px;
    line-height: 45px;
    text-align: center;
    padding: 0;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

#addModelButton:hover {
    background-color: #0056b3;
    /* Darker shade on hover */
}

.modeledit-btn {
    position: relative;
    left: 87px;
    border: none;
}

#displayMessage {
    margin-top: 10px;
    position: relative;
    /* left: 486px; */
    color: green;
}

/* responsive  */

.modal-contentaddModel {
    width: 50%;
}

.modal-footer1 {
    /* display: flex; */
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

#topLink p a{
   color: white;
   text-decoration: none;
}
/* Media queries for responsiveness */
@media (max-width: 768px) {

    .options-menu {
        width: 64%;
    }

    #addModelButtonContainer {
        margin: 20px 0px 0px 71px;
    }

    .modal-footer1{
        position: relative;
        left: 65px;
    }

    #topLink {
        position: fixed;
        top: 17px;
        left: 47px;
        padding: 0px;
        box-shadow: none;
    }

    /* Base styles for the dashboard */
    #dashboard {
        position: relative;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        overflow: hidden;
        margin-bottom: 85px;
    }

    /* Style for the overlay */
    #dashboard .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        /* Semi-transparent overlay */
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        z-index: 2;
        color: #fff;
        text-align: center;
        padding: 15px;
    }

    /* Responsive image */
    #dashboard-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        z-index: 1;
    }

    /* Content inside the overlay */
    .ad-content h2 {
        /* font-size: 2rem; */
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .ad-content p {
        /* font-size: 1.2rem; */
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .ad-content .cta-button {
        font-size: 0.9rem;
        padding: 8px 16px;
        background-color: #ff9900;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;



    }

    .ad-content .cta-button:hover {
        background-color: #e68a00;
    }

    .model-box {
        width: 75px;
        height: 75px;
    }

    .inputboxModelSelection {
        /* width: 80%; */
        width: 100%;
    }

    .modal-contentaddModel {
        width: 39%;
    }

    .input-container-Second {
        width: 96%;
    }


}

@media (max-width: 480px) {
    .ad-content h2 {
        font-size: 1.2rem;
    }

    .ad-content p {
        font-size: 0.9rem;
    }

    .ad-content .cta-button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}