#charades-container {
    text-align: center;
    padding: 0px;
}

#charades-instructions {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

#start-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

#charades-box {
    background-color: white;
    max-width: 400px;
    width: 90%;
    height: 450px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}


#charades-message {
    font-size: 28px;
    font-weight: bold;
    color: #0170B9;
    margin-bottom: 40px;
}

#charades-instructions {
    font-size: 16px;
    color: #444;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
    width: 80%;
    text-align: center;
}

button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

#team-title {
    font-size: 28px;
    font-weight: bold;
    color: #0170B9;
    margin-top: 50px; 
    margin-bottom: 20px;
}

#team-name {
    width: 80%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #0170B9;
    border-radius: 12px;
    outline: none;
    text-align: center;
    margin-top: 30px; 
    margin-bottom: 40px; 
    background-color: #f9f9f9;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

#team-name:focus {
    border-color: #ff9800;
    box-shadow: 0px 0px 10px rgba(255, 152, 0, 0.5);
}

#category-title {
    font-size: 28px;
    font-weight: bold;
    color: #0170B9;
    margin-bottom: 20px;
    margin-top: 0px;
    text-align: center;
}

#categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.category-btn {
    background: white;
    border: none;
    padding: 15px 0px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px; 
    height: 90px;
}

.category-btn:hover {
    transform: scale(1.05);
    background: #ff9800;
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 15px;
    font-weight: normal;
    color: #0170B9;
    text-align: center;
}

/* Responsive for mobiles */
@media (max-width: 500px) {
    #category-title {
        font-size: 24px;
    }

    #categories-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .category-btn {
        width: 80px;  
        height: 100px; 
        font-size: 12px;
        padding: 5px;
    }

    .category-icon {
        width: 40px; 
        height: 40px;
    }

    .category-name {
        font-size: 14px;
    }
    #charades-box {
        width: 100%;
    }
}

@media (max-height: 650px) {
    #charades-box {
        margin-top: auto;
        margin-bottom: auto;
    }
    #start-screen {
        height: 130vh;
    }
}


#round-message {
    font-size: 24px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

#round-team-name {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
}

#start-round {
    display: block;
    margin: 100px auto 0 auto; 
}

#word-label {
    font-size: 18px;
    font-weight: normal;
    color: #999;
    text-align: center;
    margin-bottom: 15px;
}


#word-display {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    line-height: 34px;
}

.word-comment {
    font-style: italic;
    font-size: 15px;
    color: #667;
    text-align: center;
    margin-top: 10px;
}

#timer-display {
    font-size: 40px;
    font-weight: bold;
    color: #ff9800;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
    margin-bottom: 20px;
}

#correct-answer,
#next-round {
    display: block;
    margin: 30px auto 0 auto; 
}

#winner-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0px;
}

#winner-message {
    font-size: 20px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 10px;
}

#winner-team {
    font-size: 32px;
    font-weight: bold;
    color: #0170B9;
    text-align: center;
    margin-bottom: 10px;
}

#final-score {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

#home-link {
    display: block;
    text-align: center;
    font-size: 16px;
    color: #007AFF;
    text-decoration: none;
    margin-top: 40px;
}

#home-link:hover {
    text-decoration: underline !important;
}
