@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&display=swap');


:root {
    --primary-color: #020107;
    --secondary-color: #f59e0b;
    --text-color: #111;
    --background-color: #cee7f4;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-weight: 100;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('/assets/images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 100;
    color: whitesmoke;
    white-space: nowrap;
}

.main {
    text-align: center;
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}

.question {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin: 1rem 0;
    font-weight: 100;
    color: var(--primary-color);
    line-height: 1.2;
    padding: 0 1rem;
    font-family: "Michroma", sans-serif;

}

.battle {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1200px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.card {
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1/1;
}

.username {
    margin: 0.75rem 0 0.25rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-family: "Zalando Sans Expanded", sans-serif;
    font-weight: bold;
    color: #000;
}

.description {
    font-size: clamp(0.75rem, 2.2vw, 0.95rem);
    font-family: "Zalando Sans Expanded", sans-serif;
    font-weight: 300;

}

.user-handle {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.user-handle a {
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.2s;
    font-family: "Zalando Sans Expanded", sans-serif;
    font-weight: bold;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.user-handle a:hover {
    color: #0d95e8;
    text-decoration: underline;

}

.btn-choose {
    margin-top: auto;
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Zalando Sans Expanded", sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: background-color 0.2s;
}

.btn-choose:hover {
    background: #d97706;
}

.vs {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    align-self: center;
    color: #000000;
    font-family: "Zalando Sans Expanded", sans-serif;
    padding: 0 1rem;
}

.timer {
    /* margin: 0.1rem auto; */
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-family: "Zalando Sans Expanded", sans-serif;
    /* padding: 0.75rem 1.5rem; */
    display: inline-block;
}

.footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    color: #666;
    font-family: "Zalando Sans Expanded", sans-serif;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.instructions {
    font-weight: 100;
    color: black;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-family: "Zalando Sans Expanded", sans-serif;
    line-height: 1.5;
    padding: 0 1rem;
    max-width: 800px;
    margin: 1rem auto;
}

.instructionsQuestion {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-family: "Zalando Sans Expanded", sans-serif;
    font-weight: 100;
    margin: 1rem 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.top-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-family: "Zalando Sans Expanded", sans-serif;
}

.btn-rounded {
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
    white-space: nowrap;
}

.results-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: all 0.2s;
    /* margin: 1rem 0; */
    font-family: "Zalando Sans Expanded", sans-serif;
}

.results-btn:hover {
    background: #0b7cc5;
    transform: scale(1.05);
}

/* Media Queries */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }

    .topbar .d-flex {
        width: 100%;
        justify-content: center;
    }

    .battle {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .vs {
        display: none;
    }

    .card {
        max-width: 100%;
        min-width: unset;
    }

    .main {
        padding: 1rem;
    }

    .question {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .card img {
        height: 220px;
    }

    .top-buttons {
        flex-direction: column;
        width: 100%;
    }

    .top-buttons .btn {
        width: 100%;
    }

    .user-info {
        justify-content: center;
        text-align: center;
    }

    .instructions {
        padding: 0 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }

    .battle {
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .card {
        flex: 1 1 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
}