@font-face {
    font-family: 'Carla Sans';
    src: url('fonts/CarlaSansRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: #f1ebe5;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo {
    font-family: 'Carla Sans', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0px;
    color: #6b4222;
    font-size: clamp(60px, 8vw, 120px);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.description {
    font-family: Arial, sans-serif;
    color: #6b4222;
    font-size: clamp(18px, 2.5vw, 20px);
    text-align: center;
    margin: 10px 0;
    opacity: 0;
    max-width: 90%;
}

.description.italic {
    font-size: clamp(14px, 2.5vw, 18px);
    font-style: italic;
}

#text1 {
    animation: fadeIn 0.8s ease-in-out 1s forwards;
}

#text2 {
    animation: fadeIn 0.8s ease-in-out 1.5s forwards;
}

.game-container {
    margin-top: 30px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out 2s forwards;
}

#game-canvas {
    border: 2px solid #6b4222;
    background-color: #fff;
    display: block;
    cursor: pointer;
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: Arial, sans-serif;
    color: #6b4222;
    font-size: 18px;
    font-weight: bold;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(241, 235, 229, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 3px solid #6b4222;
}

.game-over p {
    color: #6b4222;
    font-size: 24px;
    margin-bottom: 10px;
}

.final-score {
    font-size: 18px;
    margin-bottom: 20px;
}

#restart-btn {
    background-color: #6b4222;
    color: #f1ebe5;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restart-btn:hover {
    background-color: #8b5a2b;
}

.hidden {
    display: none;
}

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

@media (max-width: 768px) {
    .logo {
        letter-spacing: 0px;
    }
    
    .game-container {
        margin-top: 20px;
    }
}