/* RESET / GLOBAL */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    height: 100%;
}

/* MAIN CONTAINER - TWO COLUMNS */
.container {
    display: flex;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-color: #FFFFFF;
}

/* LEFT SECTION */
.left-section {
    flex: 1;
    background-color: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column; /* So the logo is at the top */
}

.logo-container {
    padding: 20px;
    z-index: 1;
}

.logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.background-container {
    flex: 1;
    background: url("/images/background_left.png") center center no-repeat;
    background-size: cover;
    margin: 80px;
}

/* RIGHT SECTION */
.right-section {
    flex: 1;
    margin: 40px;
    border-radius: 20px;

    /* Use Flexbox to center content both horizontally and vertically */
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: auto; /* or 'hidden' if you prefer, but 'auto' allows scrolling on zoom */
    background-color: #f8f8f8;
    padding: 40px;
}

/* ADMIN CHOICE CONTAINER */
#admin-choice.admin-choice {
    /* 
      Let the container itself be column-oriented but 
      also control its max width 
    */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;

    /* Center horizontally if there's extra space */
    margin: 0 auto;

    animation: fadeIn 1s ease forwards;
}

/* Fade-in keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WELCOME TEXT (with gradient), LEFT-ALIGNED */
.welcome-text {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 10px 0;

    /* Gradient text effect */
    background: linear-gradient(90deg, #8a38f5 0%, #96207a 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

/* SUBTITLE, LEFT-ALIGNED */
.subtitle {
    font-size: 1.1rem;
    margin: 0 0 60px 0;
    color: #555;
    text-align: left;
}

/* OPTION BLOCKS */
.option-block {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 5px 20px #888888;
    width: 100%;
    padding: 35px 50px 35px 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;

    /* For entrance animation */
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;

    margin-bottom: 20px;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for each option-block */
.option-block:nth-of-type(1) {
    animation-delay: 0.5s;
}
.option-block:nth-of-type(2) {
    animation-delay: 0.7s;
}
.option-block:nth-of-type(3) {
    animation-delay: 0.9s;
}

/* Hover effect */
.option-block:hover {
    background-color: #ececec;
    transform: translateY(-2px);
}

/* ICON CONTAINER */
.icon-container {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container img {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.icon-container:hover img {
    transform: scale(1.1);
}

/* TEXT CONTAINER */
.text-container {
    display: flex;
    flex-direction: column;
}

.text-container h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.text-container p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* LOADING PAGE */
#loading-page {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loading-page.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Bouncing Dots */
.bouncing-dots {
    display: flex;
    justify-content: space-between;
    width: 60px;
}

.bouncing-dots .dot {
    width: 15px;
    height: 15px;
    background-color: #383737;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.bouncing-dots .dot:nth-child(1) {
    animation-delay: 0s;
}
.bouncing-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}
.bouncing-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* RESPONSIVE BREAKPOINTS */

/* For tablets and smaller devices */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto; /* Let it expand vertically as needed */
    }

    .left-section,
    .right-section {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .right-section {
        margin: 20px;
        padding: 20px;
        /* Keep center alignment or revert to top alignment if desired */
        align-items: center;
        justify-content: center;
    }

    .background-container {
        margin: 20px;
    }

    #admin-choice.admin-choice {
        padding: 15px;
    }

    .welcome-text {
        font-size: 1.8rem;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.5rem;
    }

    .option-block {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .icon-container {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .text-container h3 {
        font-size: 1.1rem;
    }

    .text-container p {
        font-size: 0.9rem;
    }
}
