@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

body {
    font-family: 'Fredoka One', cursive;
    background: #22577A;
}

#select-monster {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.title {
    color: navy;
}

.subtitle {
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.monster-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    padding: 15px;
    border-radius: 12px;
    background-color: #f5f5f5;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

    .monster-card img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .monster-card:hover {
        transform: scale(1.05);
        box-shadow: 0px 6px 14px rgba(0,0,0,0.2);
    }

input[type="radio"]:checked + .monster-card {
    border: 3px solid #4caf50;
    background-color: #e8f5e9;
}

input {
    display: none;
}

#select-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff8a65, #ff5722);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-top: 20px;
}

    #select-button:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
    }

    #select-button:active {
        transform: translateY(1px) scale(0.98);
        box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    }

#select-attack {
    text-align: center;
    margin-top: 30px;
}

.attacks {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.attack-button {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .attack-button:hover {
        transform: scale(1.1);
        box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    }

.fire {
    background-color: #ff4b4b;
    color: white;
}

.water {
    background-color: #4bbcff;
    color: white;
}

.earth {
    background-color: #4caf50;
    color: white;
}

.messages {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border-radius: 12px;
    background-color: #f7f7f7;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

    .messages p {
        margin: 0;
        padding: 5px;
    }

.restart {
    text-align: center;
    margin-top: 20px;
}

.restart-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .restart-button:hover {
        transform: scale(1.1);
        background-color: #e68900;
    }
