* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-image: url('../assets/images/vhs-v2.gif');
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center;
    color: #a0a0a0;
    line-height: 1.6;
    overflow: hidden;
    min-height: 100vh;


}


@keyframes flicker {
  0% { opacity: 0.08; }
  50% { opacity: 0.06; }
  100% { opacity: 0.09; }
}



.container {
    width: 90%; 
    max-width: 800px; 
    margin: 2rem auto; 
    padding: 1.5rem;
    border: 1px dashed #444;
    background-color: rgba(0, 0, 0, 0.2); 
    position: relative; 
    z-index: 1; 
}

header, footer {
    padding: 0.5rem 0;
    color: #666;
    min-height: 30px;
    border-bottom: 1px dashed #444; 
}

footer {
    border-top: 1px dashed #444; 
    border-bottom: none;
    margin-top: 1.5rem;
}

main {
    padding: 1.5rem 0;
    text-align: center;
}

h1 {
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-weight: normal;
    text-align: center;
    letter-spacing: 2px;
}

p {
    margin-bottom: 1rem;
}


button {
    font-family: inherit; 
    background-color: #333;
    color: #a0a0a0;
    border: 1px solid #555;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

button:hover,
button:focus {
    background-color: #444;
    color: #c0c0c0;
    outline: none;
}

#ui-lives {
    text-align: right;
}

#ui-timer {
    text-align: right;
}

#puzzle-area {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dotted #444;
}


@media (max-width: 600px) {
    body {
        font-size: 14px; 
    }

    .container {
        width: 95%; 
        margin: 1rem auto;
        padding: 1rem; 
    }

    h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    #ui-lives, #ui-timer {
        font-size: 0.85rem;
    }
}