body {
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
    background-color: #ededed;
}

.button-container {
    text-align: center;
    margin: 20px 0;
    width: 100%;
}

#haxordum-button {
    background-image: url('/img/battle/haxordum_bg.webp');
    border-radius: 40px 0 0 40px;
    margin-right: 5px;
}

#serial-button {
    background-image: url('/img/battle/serial_bg.webp');
    border-radius: 0 40px 40px 0;
    margin-left: 5px;
}

#haxordum-button,
#serial-button {
    background-size: cover;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    padding: 20px 10px;
    font-weight: bolder;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    width: 40%;
    max-width: 200px;
    min-width: 100px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#haxordum-button:hover,
#serial-button:hover {
    background-color: darkgreen;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#start-button {
    background-color: rgba(33, 204, 28, 0.692);
    color: white;
    font-weight: bolder;
    font-size: 1.2em;
    padding: 10px;
    margin: 20px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    width: 90%;
    max-width: 400px;
}

#start-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image {
    width: 45%;
    height: auto;
    max-width: 450px;
    aspect-ratio: 16 / 9;
    margin: 1.7%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.2s;
    display: inline-block;
}

.image-hover:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.phrase {
    width: 350px;
    background-color: rgb(221, 221, 221);
    padding: 10px;
    font-size: 1.1em;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.phrase:hover {
    background-color: #ccc;
}

#images-div {
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    max-width: 980px;
}

#phrases-div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#game-data {
    display: none;
}

#game-over {
    display: none;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#game-over h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #343a40;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-over-data {
    width: 68%;
    padding: 10px;
    margin: 10px auto;
    border-radius: 10px;
    background-color: rgba(140, 140, 140, 0.309);
    font-size: 1.5em;
    align-items: center;
    font-weight: bolder;
}

.class-data span {
    margin-bottom: 30px;
}

.class-data {
    text-align: center;
}

#class-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin: 10px auto;
}

.data-item {
    display: flex;
    align-items: center;
    padding: 6px;
    font-weight: bolder;
    border-radius: 5px;
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
    text-align: center;
}

.data-item:hover {
    background-color: #d0d0d0;
}

.emoji-logo {
    width: 24px;
    margin: 0 5px;
    vertical-align: middle;
}

#bg-music-button:hover,
#restart-button-during-game:hover {
    cursor: pointer;
}

#start-part {
    text-align: center;
    margin-top: 35vh;
    width: 100%;
}

#haxordum-button-game-over {
    background-image: url('/img/battle/haxordum_bg.webp');
    border-radius: 40px 0 0 40px;
    margin-right: 5px;
}

#serial-button-game-over {
    background-image: url('/img/battle/serial_bg.webp');
    border-radius: 0 40px 40px 0;
    margin-left: 5px;
}

#haxordum-button-game-over,
#serial-button-game-over {
    background-size: cover;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    padding: 20px 10px;
    font-weight: bolder;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    width: 40%;
    max-width: 200px;
    min-width: 100px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#haxordum-button-game-over:hover,
#serial-button-game-over:hover {
    background-color: darkgreen;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#restart-button {
    background-color: rgba(140, 140, 140, 0.307);
    width: 68%;
    border: 0;
    border-radius: 10px;
    font-size: 0.9em;
    color: #333;
    font-weight: bolder;
    padding: 14px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#restart-button:hover {
    cursor: pointer;
    background-color: rgba(129, 129, 129, 0.507);
}
