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

:root {
    --primary: #0f2f3f;
    --primary-light: #1a4a61;
    --secondary: #e36159;
    --accent: #2baab1;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-main: #2d3436;
    --text-muted: #636e72;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-image: url("2.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    /* Modern viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    overflow-x: hidden;
    padding: 20px 0;
}

/* Background fix for mobile browsers */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

.main-container {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
}

.glass-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-section img {
    display: block;
    margin: 0 auto;
    max-width: 320px;
    /* Increased for desktop */
    width: 100%;
    height: auto !important;
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
}

.portal-title-out {
    font-size: 1.25rem;
    /* Slightly larger */
    font-weight: 600;
    /* Bolder */
    color: white;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.info-content {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.info-value {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1rem;
}

.timer-section {
    background: rgba(15, 47, 63, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-top: 10px;
}

.btn-modern {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    width: 100%;
    margin-top: 10px;
}

.btn-danger {
    background: var(--secondary);
    color: white;
    box-shadow: 0 10px 20px rgba(227, 97, 89, 0.3);
}

.btn-success {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(43, 170, 177, 0.3);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.footer-links {
    margin-top: 35px;
    font-size: 0.85rem;
}

.footer-link-item {
    margin-bottom: 10px;
}

.footer-link-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.footer-link-item a:hover {
    border-bottom-color: var(--primary);
}

.copyright {
    margin-top: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Mobile Adjustments */
@media (max-width: 480px) {
    body {
        padding: 10px 0;
        /* Minimal top/bottom padding */
    }

    .main-container {
        padding: 0 10px;
    }

    .logo-section {
        margin-bottom: 8px;
    }

    .logo-section img {
        max-width: 240px;
        /* Increased for mobile from 160px */
        margin-top: 10px;
    }

    .glass-card {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .portal-title-out {
        font-size: 0.85rem;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .info-content {
        margin-bottom: 20px;
    }

    .info-item {
        padding: 8px 0;
    }

    .info-label,
    .info-value {
        font-size: 0.85rem;
    }

    .timer-section {
        padding: 12px;
        margin-top: 10px;
    }

    .timer-display {
        font-size: 1.3rem;
        margin-top: 4px;
    }

    .btn-modern {
        padding: 12px 20px;
        margin-top: 10px;
        font-size: 0.9rem;
    }

    .footer-links {
        margin-top: 15px;
        font-size: 0.75rem;
    }

    .footer-link-item {
        margin-bottom: 5px;
    }

    .copyright {
        margin-top: 15px;
        font-size: 0.7rem;
    }
}