/* --------------- HIDE SCROLLBAR ------------------ */

html {
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    /* WebKit */
    width: 0;
    height: 0;
}

/* -------------------------------------------------- */

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: Poppins;
    margin: 0;
    padding: 0;
}

/* Nav Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

.title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0em;
    margin: 0;
    font-family: "Poppins";
}

.accent-text {
    color: #3b82f6;
    font-weight: 700;
}

.nav-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Game Area */
.game-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 75px);
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* 1 Column in Mobile */
.game-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1200px;
    gap: 1.5rem;
}

/* 2 Columns on Desktop */
@media (min-width: 768px) {
    .game-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Attempts Tracker */
.tracker-container {
    text-align: right;
    font-size: 0.95rem;
    color: #94a3b8;
}

.tracker-text {
    margin: 0;
}

/* Country Input */

.input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.country-input {
    flex: 1;
    background-color: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    color: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: "Space Mono";
}

.country-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.submit-btn {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: Poppins;
}

.submit-btn:hover {
    background-color: #2563eb;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Hints */

.hints-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    min-height: 3rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.hint-tag {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    white-space: nowrap
}

.hint-content {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.hint.locked {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px dashed #475569;
}

.hint.locked .hint-tag {
    background-color: #334155;
    color: #64748b;
}

.hint.locked .hint-content {
    color: #64748b;
    font-style: italic;
}

.alert-container {
    display: flex;
    justify-content: center;
    margin: 1rem;
}

.alert {
    margin: 0;
}

.guesses-stack {
    margin: 20px;
}

.guess {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1e293b;
    border: 2px dashed #8b862e;
    border-radius: 12px;
    padding: 1rem;
    min-height: 3rem;
    box-sizing: border-box;

    margin-bottom: 10px;
}

.wrong {
    border: 2px dashed #8b2e2e;
}

.hints-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.guess-placeholder {
    color: grey;
}

.guess-placeholder-container {
    display: flex;
    justify-content: center;
}

.result-dialog {
    border: 1px solid #334155;
    border-radius: 20px;
    background-color: #1e293b;
    color: #f8fafc;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    outline: none;
}

.result-dialog[open] {
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-dialog::backdrop {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.result-dialog-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.result-text {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    color: #f8fafc;
    letter-spacing: -0.025em;
}

.result-text-lose {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #f8fafc;
    letter-spacing: -0.025em;
}

.result-country-text {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0;
}

.country-img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.play-again-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.play-again-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.play-again-btn:active {
    transform: translateY(0);
}

/* Entrance Keyframes */
@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

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