@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Play&display=swap');
body, html {
    font-family: 'Play', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #f7f7f7;
    color: #1a1a1a;
}
.cell,
.dialog-content,
#score,
#roll-dice,
.dialog-button {
    font-family: 'Play', sans-serif;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#language-select {
    font-family: 'Play', sans-serif;
    padding: 8px 12px;
    font-size: 16px;
    background-color: #0d2f7a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#language-select:hover {
    background-color: #081e4d;
}

#language-select option {
    background-color: #ffffff;
    color: #1a1a1a;
}
#game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
#board {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.cell {
    background-color: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease;
}
h1 {
    font-family: 'Audiowide', cursive;
    text-align: center;
    color: #0d2f7a;
    margin-bottom: 16px;
    font-size: 2.5em;
    font-weight: bold;
}
.player {
    background-color: #0d2f7a;
    color: white;
    transform: scale(1.05);
}
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
#score {
    font-size: 18px;
    font-weight: bold;
}
#roll-dice {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0d2f7a;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
#roll-dice:hover {
    background-color: #081e4d;
}
.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}
#toggle-sound {
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    background-color: #0d2f7a;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
#toggle-sound:hover {
    background-color: #081e4d;
}
#game-info {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 18px;
}
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.dialog-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}
.dialog-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.dialog-button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0d2f7a;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.dialog-button:hover {
    background-color: #0d2f7a;
}
@keyframes rotateDice {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.dice-svg {
    width: 100px;
    height: 100px;
    animation: rotateDice 2s linear infinite;
}