/* Game Mode Selection Modal */

#gamemode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

#gamemode-modal.hidden {
    display: none;
}

.gamemode-container {
    /* BACKGROUND IMAGE FUNDO1 - igual às outras telas */
    background-image: url('../../../assets/images/home/fundo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fdf6e3;

    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 4px solid #5d4037;
    /* Borda de madeira */
    animation: slideUp 0.3s ease-out;
}

.gamemode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(93, 64, 55, 0.2);
}

.gamemode-header h2 {
    color: #ffffff;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    text-shadow:
        2px 0 0 #5d4037, -2px 0 0 #5d4037, 0 2px 0 #5d4037, 0 -2px 0 #5d4037,
        1px 1px 0 #5d4037, -1px -1px 0 #5d4037, 1px -1px 0 #5d4037, -1px 1px 0 #5d4037,
        0 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.btn-close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-close-modal img {
    width: 32px;
    height: 32px;
}

.btn-close-modal:hover {
    transform: scale(1.1);
}

.gamemode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gamemode-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* White transparent like settings */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow like settings */
    position: relative;
    overflow: hidden;
}

.gamemode-btn.campaign {
    border-left: 4px solid #22c55e;
}

.gamemode-btn.category {
    border-left: 4px solid #3b82f6;
}

.gamemode-btn.pvp {
    border-left: 4px solid #f59e0b;
}

.gamemode-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gamemode-btn:active {
    transform: translateX(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gamemode-icon {
    width: 44px;
    height: 44px;
    background: rgba(139, 69, 19, 0.1);
    /* Darker subtle bg for icon */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.gamemode-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gamemode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gamemode-info h3 {
    color: #5d4037;
    /* Dark brown text */
    font-family: 'Luckiest Guy', cursive;
    /* Updated Font */
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 2px 0;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.gamemode-info p {
    color: #8d6e63;
    /* Lighter brown text */
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.gamemode-arrow {
    color: #8d6e63;
    /* Lighter brown arrow */
    font-size: 24px;
    font-weight: 700;
    font-family: 'Luckiest Guy', cursive;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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