@font-face {
    font-family: 'Panton';
    src: url('assets/Panton.ttf') format('truetype');
}

body {
    font-family: 'Panton', Arial, sans-serif;
    text-align: center;
    background: #121212;
    color: white;
    font-size: 20px;
    margin: 0;
}

header h1 {
    font-size: 2.5rem;
    margin: 20px 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.instructions {
    color: red;
    font-size: 1.2rem;
    font-weight: bold;
}

.green-box, .red-box {
    width: 80%;
    max-width: 400px;
    height: 250px;
    margin: 20px auto;
    border: 8px solid grey;
    transition: background 0.3s, border-color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.green-box {
    background: lime;
    border-color: green;
}

.red-box {
    background: red;
    border-color: darkred;
}

button {
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    background: purple;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    margin-top: 15px;
}

button:hover {
    background: violet;
    transform: scale(1.1);
}

#try-again {
    background: blue;
}

#try-again:hover {
    background: lightblue;
}

#clear-history {
    background: red;
}

#clear-history:hover {
    background: darkred;
}

.hidden {
    display: none;
}

#history {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 300px;
    margin: auto;
}

#history li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin: 5px auto;
    border-radius: 10px;
    font-size: 18px;
}

/* Ad container */
.ad-container {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

@media (max-width: 600px) {
    .green-box, .red-box {
        width: 90%;
        height: 200px;
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }
}
