
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f8ff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('https://source.unsplash.com/random/1600x900/?venice');
    background-size: cover;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

header {
    background-color: #0077be;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

#level-selection, #game, #venice-game {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
    width: 80%;
    max-width: 600px;
}

h2 {
    font-size: 2rem;
    color: #0077be;
    margin-bottom: 1.5rem;
}

button {
    background-color: #ffd700;
    color: #333;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #ffc700;
    transform: translateY(-2px);
}

#word-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0077be;
    margin-bottom: 1.5rem;
    animation: popIn 0.5s ease-in-out;
}

#translation-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#translation-options button {
    background-color: #f0f0f0;
    color: #333;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#translation-options button:hover {
    background-color: #e0e0e0;
}

#score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0077be;
}

#game-canvas {
    background-color: #f0f8ff;
    border: 1px solid #0077be;
    border-radius: 5px;
}

#word-input {
    width: calc(100% - 2rem);
    padding: 1rem;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 1rem;
}

.hidden {
    display: none;
}

footer {
    background-color: #0077be;
    color: white;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

