body {
    margin: 0;
    overflow: hidden;
    background-color: #cccdc8;
    user-select: none;
}

html,
body {
    height: 100%;
    user-select: none;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
}
.cover {
    background-color: #cccdc8;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1;
    animation: fadeOutCover 1s forwards 2.5s;
}

@keyframes fadeOutCover {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.home-text {
    color: rgb(80, 80, 80);
    font-size: 100%;
    font-style: normal;
    text-align: center;
    font-family: "Arial";
    font-weight: bold;
    width: 100%;
    display: flex;
    overflow: auto;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

canvas {
    display: block;
    user-select: none;
}


.fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Adjust duration as needed */
    visibility: hidden; /* Hide by default */
}

.fade.show {
    opacity: 1;
    visibility: visible; /* Make visible when fading in */
}

.page-container {
    width: 100%;
    display: flex;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
    position: absolute; /* added */
    top: 0; /* modified */
    left: 0; /* modified */
    pointer-events: none;
}

.butons-wrapper {
    display: contents;
}

.butons-butons {
    flex: 1;
    width: 100dvh;
    height: 100dvh;
    display: flex;
    padding: 0;
    position: absolute;
    align-self: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.butons-button {
    background: none; /* Remove default button background */
    border: none; /* Remove border */
    padding: 0; /* Remove padding */
    cursor: pointer; /* Change cursor to pointer */
}
.butons-top-buttons {
    flex: 0 0 auto;
    display: flex;
    margin: 15px;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    width: 55px
}
.butons-image1 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: auto;
}
.butons-image2 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: auto;
}
.butons-image3 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: #ff0000;
    pointer-events: auto;
}

.butons-button {
    position: relative; /* Needed for stacking the images */
}

.overlay-image {
    position: absolute;
    width: 55px;
    margin: 7px;
    top: 0;
    left: 0;
    background-color: #ff0000;
    border-radius: 5px;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1; /* Ensure it appears on top */
}

.butons-image-overlay {
    position: absolute;
    left: 8px;
    top: 161px;
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: #ff0000;
    pointer-events: none;
}

.butons-image4 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: black;
    pointer-events: auto;
}
.butons-bottom-buttons {
    flex: 0 0 auto;
    display: flex;
    margin: 15px;
    margin-top: auto;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
        width: 55px;
}
.butons-image5 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: auto;
}
.butons-image6 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: auto;
}
.butons-image7 {
    width: 55px;
    margin: 7px;
    object-fit: cover;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: auto;
}



#AR {
    -webkit-touch-callout: none;
    pointer-events: auto; /* Ensure button remains interactive */
    display: inline-block; /* Ensure proper layout rendering */
}

@media only screen and (max-width: 480px) {
    .butons-bottom-buttons {
        flex-direction: row-reverse; /* Change to row layout for bottom buttons */
    }
    .butons-top-buttons {
        flex-direction: row; /* Change to row layout for top buttons */
    }
    
    .butons-image-overlay{
    left: 115px;
    top: 15px; 
    }
    
    /* Change icon sizes for mobile */
    .butons-image1,
    .butons-image2,
    .butons-image3,
    .butons-image4,
    .overlay-image,
    .butons-image5,
    .butons-image6,
    .butons-image7 {
        width: 40px; /* Adjust icon size */
        margin: 5px; /* Adjust margin if needed */
    }
}
