@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --brand-yellow: #FFC700;
    --brand-grey: #2A2A2A;
    --brand-dark: #1a1a1a;
    --brand-light: #f8f9fa;
    --white: #FFFFFF;
    --timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.5s var(--timing-function), color 0.5s var(--timing-function);
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed back to center */
    align-items: center;
    min-height: 100vh; /* Back to full height */
    text-align: center;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 40px;
}

#logo {
    max-width: 180px;
    height: auto;
    transition: transform 0.5s var(--timing-function), opacity 0.5s var(--timing-function);
}

.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 15px 0;
    transition: color 0.5s var(--timing-function);
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
    transition: color 0.5s var(--timing-function);
}

/* --- UI Buttons --- */

.open-theme-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: var(--brand-dark);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.open-theme-button:hover {
    transform: translateY(-2px);
}

.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.4);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

/* --- Modal Styles --- */

.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.theme-modal.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.theme-modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    width: 500px;
    text-align: center;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.theme-modal.is-hidden .theme-modal-content {
    transform: scale(0.95);
}

.theme-modal-content h2 {
    margin: 0 0 20px 0;
    color: var(--brand-dark);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaaaaa;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--brand-dark);
}

.buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--brand-grey);
    background-color: var(--white);
    color: var(--brand-grey);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.theme-button:hover {
    transform: translateY(-3px);
}

.theme-button.active {
    background-color: var(--brand-grey);
    color: var(--white);
    border-color: var(--brand-grey);
}

/* --- Progress Bar Base Styles --- */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin-top: 40px;
}

.progress-bar {
    width: 0%; /* Initial width */
    height: 8px;
    animation-fill-mode: forwards;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .nav-arrow.prev {
        left: 10px;
    }
    .nav-arrow.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .open-theme-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        top: 15px;
        left: 15px;
    }

    .theme-modal-content {
        padding: 20px;
    }
}