/* Default Dark Mode */
body {
    background-color: #42484e;
    color: #f8f9fa;
    /* font-family: "Fondamento", cursive; */
    font-family: "Roboto", cursive;
    font-weight: 400;
    font-style: normal;
    transition: background-color 0.3s, color 0.3s;
    font-optical-sizing: auto;
}

/* Navbar */
.navbar {
    background-color: #212529;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Styling */
.card {
    margin: 20px 0;
    border: 2px solid #000000;
    border-radius: 15px;
    background-color: #495057;
    color: #f8f9fa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.657);
}

.card-title {
    font-weight: 500;
}

/* Play Button */
.btn-play {
    border-radius: 20px;
    font-weight: 500;
}

/* Light Mode */
body.light-mode {
    background-color: #e9ecef;
    color: #212529;
}

body.light-mode .card {
    background-color: #ffffff;
    color: #212529;
}

body.light-mode .navbar {
    background-color: #f8f9fa;
}

body.light-mode .modal-content {
    background-color: #ffffff;
    color: #212529;
}

/* Footer */
footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 15px 0;
}

/* Talent Card Styling */
.talent-card {
    font-family: "Fondamento", cursive;
    position: relative;
    width: 320px;
    height: 460px;
    background: url('../img/commontalent.png') no-repeat center;
    background-size: contain;
    margin: 0 auto;
    text-align: center;
}

/* Title (????) */
.talent-card-header {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    font-weight: bold;
    color: #48443c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Category */
.talent-card-category {
    position: absolute;
    bottom: 32%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #3f3f3f;
}

/* Description */
.talent-card-desc {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    font-size: calc(0.5rem + 0.5vw);
    color: #48443c;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 20%;
    max-height: 25%; /* Make sure it doesn't grow forever */
    text-align: center;

    /* Invisible scrollbar (for Webkit browsers like Chrome, Edge, Safari) */
    scrollbar-width: thin;              /* For Firefox */
    scrollbar-color: transparent transparent;

    /* For Webkit (Chrome, Safari) */
}
.talent-card-desc::-webkit-scrollbar {
    width: 4px;
}
.talent-card-desc::-webkit-scrollbar-thumb {
    background-color: transparent;
}
.talent-card-desc::-webkit-scrollbar-track {
    background: transparent;
}


.talent-card-guess {
    display: flex;
    flex-direction: row; /* align input and button horizontally */
    justify-content: center;
    align-items: center;
    gap: 10px; /* space between input and button */
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    margin-top: 20px;
}

.talent-card-guess input[type="text"] {
    width: 250px; /* give it a decent width */
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin-bottom: 0; /* remove old bottom margin */
    text-align: center;
}


/* Guessing Button */
.talent-card-guess button {
    border-radius: 5px;
    background-color: #7e6952;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.talent-card-guess button:hover {
    background-color: #6b5a47;
}

/* Result Message */
#resultMessage {
    margin-top: 10px;
    font-size: 1rem;
}

/* Next Button - Fantasy Style */
#nextTalent {
    display: none;
    border-radius: 5px;
    background-color: #7e6952; /* Zelfde kleur als de submit knop */
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 15px;
}

#nextTalent:hover {
    background-color: #6b5a47; /* Donkere hover kleur */
    transform: translateY(-2px); /* Kleine hover animatie */
}

#nextTalent:active {
    transform: translateY(1px);
}

.game-card {
    text-decoration: line-through;
    color: #42484e;
}

.hard {
    border: 3px solid #dc3545; /* bright red border */
    box-shadow: 0 0 15px 3px rgba(220, 53, 69, 0.6); /* glowing red */
    position: relative;
}

.hard::after {
    content: "HARD";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}


.easy {
    border: 3px solid #72dc35; /* bright green border */
    box-shadow: 0 0 15px 3px rgba(64, 220, 53, 0.6); /* glowing red */
    position: relative;
}

.easy::after {
    content: "EASY";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #72dc35;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.medium {
    border: 3px solid #dcbd35; /* bright green border */
    box-shadow: 0 0 15px 3px #dcbd3594; /* glowing red */
    position: relative;
}

.medium::after {
    content: "MEDIUM";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dcbd35;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.soon {
    border: 3px solid #252525; /* bright green border */
    box-shadow: 0 0 15px 3px #25252585; /* glowing red */
    position: relative;
}

.soon::after {
    content: "SOON";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #252525;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}
