/*Author: NIBGIO*/
/*Creation Date: 07.01.2026*/
/*Last Upate: 22.02.2026*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #111;
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1vh 2vh;
}

.container {
    width: 100%;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1vh;
    border-bottom: 1px solid #333;
    gap: 2vw;
    margin-bottom: 1vh;
}

.header-title {
    text-align: center;
    flex-grow: 1;
}

.header-title h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1vw;
    margin-bottom: 0.5vh;
}

.subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #aaa;
    font-weight: 400;
}

.header-score {
    text-align: center;
    min-width: 10vw;
    background: #1a1a1a;
    padding: 1vh 1.5vw;
    border-radius: 0.5vh;
    border: 1px solid #333;
}

.score-label {
    display: block;
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
    margin-bottom: 0.5vh;
}

.score-value {
    display: block;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 900;
    color: #00ff88;
}

.game-area {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5vw;
    min-height: 75vh;
    height: 75vh;
    position: relative;
}

.image-container {
    flex: 1;
    height: 100%;
    border-radius: 1vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #333;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.level-info {
    position: relative;
    z-index: 2;
    padding: 2.5vh;
    background: rgba(0,0,0,0.8);
    margin: 2vh;
    border-radius: 0.5vh;
    border: 1px solid #444;
    text-align: center;
    flex-shrink: 0;
}

.level-name-large {
    font-size: clamp(2.2rem, 3vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1vh;
    text-transform: uppercase;
    letter-spacing: -0.03vw;
    line-height: 1.1;
}

.level-rank-large {
    font-size: clamp(2.8rem, 3.5vw, 4.5rem);
    font-weight: 900;
    color: #00ff88;
    transition: transform 0.1s;
}

.rank-animate {
    animation: rankPop 0.3s ease-out;
}

.level-rank-large.correct-guess {
    color: #00ff88 !important;
    text-shadow: 
        0 0 20px rgba(0, 255, 136, 0.7),
        0 0 40px rgba(0, 255, 136, 0.4),
        0 0 60px rgba(0, 255, 136, 0.2) !important;
}

.level-rank-large.incorrect-guess {
    color: #f44336 !important;
    text-shadow: 
        0 0 20px rgba(255, 65, 108, 0.7),
        0 0 40px rgba(255, 65, 108, 0.4),
        0 0 60px rgba(255, 65, 108, 0.2) !important;
}


@keyframes rankPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vs-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.vs-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    border: 2px solid #555;
}

.vs-text {
    font-size: 1.6rem;
    line-height: 1;
}

.vs-subtext {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2vh;
}

.youtube-overlay {
    position: absolute;
    bottom: 2.5vh;
    right: 2.5vh;
    z-index: 3;
    background: rgba(0,0,0,0.8);
    border-radius: 0.5vh;
    padding: 1vh 2vh;
    border: 1px solid #444;
    transition: background 0.2s;
}

.youtube-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    gap: 0.8vh;
}

.youtube-button i {
    color: #ff0000;
    font-size: clamp(1.3rem, 1.7vw, 1.8rem);
}

.youtube-button:hover {
    color: #ff5555;
}

.youtube-overlay:hover {
    background: #000;
}

.youtube-overlay.no-video {
    opacity: 0.5;
    cursor: not-allowed;
}

.youtube-overlay.no-video .youtube-button {
    color: #888;
    pointer-events: none;
}

.youtube-overlay.no-video .youtube-button i {
    color: #666;
}

/* Is text hidden */
.is-text {
    display: none;
}

.choice-buttons {
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 80%;
    max-width: 30vw;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

.or-text {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: #aaa;
    font-weight: 500;
    text-align: center;
    transform: translateX(200%);
    margin: 0.5vh 0;
    text-transform: uppercase;
    background: rgba(0,0,0,0.8);
    padding: 1vh 2vh;
    border-radius: 0.5vh;
    border: 1px solid #444;
    width: 20%;
    display: block;
}

.than-text {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: clamp(1.2rem, 1.7vw, 1.8rem);
    color: #aaa;
    font-weight: 500;
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 1vh 2vh;
    border-radius: 0.5vh;
    border: 1px solid #444;
    width: 64%;
    display: block;
}

.than-name {
    font-weight: 700;
    color: #fff;
}

.btn {
    padding: clamp(1.3rem, 2.5vh, 2.5rem) clamp(1.5rem, 3vw, 3rem);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    font-weight: 700;
    border: none;
    border-radius: 0.5vh;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: white;
}

.btn-higher {
    background: #d32f2f;
}

.btn-lower {
    background: #1976d2;
}

.btn-next,
.btn-restart-game {
    background: #2e7d32;
    color: white;
    display: none;
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 80%;
    max-width: 30vw;
}

.btn-restart-game {
    background: #ff8f00;
    color: #111;
}

.btn-main {
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    font-weight: 900;
    margin-bottom: 0.5vh;
}

.btn-sub {
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 400;
    opacity: 0.9;
}

.btn-higher:hover,
.btn-lower:hover,
.btn-next:hover,
.btn-restart-game:hover {
    filter: brightness(1.2);
    transform: translateY(-0.2vh);
}

.btn-next:hover,
.btn-restart-game:hover {
    transform: translateX(-50%) translateY(-0.2vh);
}

.btn:active {
    transform: translateY(0.1vh);
}

/* Remove any movement on active for action buttons */
.btn-next:active,
.btn-restart-game:active {
    transform: translateX(-50%);
}

.hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .game-area { gap: 1vw; min-height: 70vh; height: 70vh; }
    .vs-circle { width: 90px; height: 90px; }
    .vs-text { font-size: 1.4rem; }
    .vs-subtext { font-size: 0.65rem; }
    .choice-buttons { max-width: 40vw; }
    .btn-next, .btn-restart-game { max-width: 40vw; }
}

@media (max-width: 900px) {
    .game-area { flex-direction: column; gap: 3vh; min-height: auto; height: auto; }
    .image-container { width: 100%; height: 50vh; min-height: 50vh; }
    .vs-container { position: relative; transform: none; left: auto; top: auto; margin: 1.5vh 0; }
    .vs-circle { width: 80px; height: 80px; }
    .vs-text { font-size: 1.2rem; }
    .vs-subtext { font-size: 0.6rem; }
    .choice-buttons { max-width: 60vw; bottom: 12vh; }
    .than-text { bottom: 6vh; }
    .btn-next, .btn-restart-game { max-width: 60vw; }
    .top-header { flex-direction: column; gap: 1.5vh; }
    .header-score { min-width: 25vw; }
}

@media (max-width: 600px) {
    body { padding: 0.5vh 1vh; }
    .choice-buttons { max-width: 80vw; bottom: 10vh; }
    .than-text { bottom: 5vh; width: 95%; }
    .btn-next, .btn-restart-game { max-width: 80vw; }
    .vs-circle { width: 70px; height: 70px; }
    .vs-text { font-size: 1rem; }
    .vs-subtext { font-size: 0.5rem; }
    .level-name-large { font-size: clamp(1.8rem, 2.5vw, 2.8rem); }
    .level-rank-large { font-size: clamp(2.2rem, 2.8vw, 3.2rem); }
}
