@font-face {
    font-family: 'OCR A Extended';
    src: url('../OCRAEXT.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'OCR A Extended', sans-serif;
    background-color: #131313;
    color: green;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #131313;
    height: 100%;
    overflow-x: hidden;
}

h1 {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2rem; /* Adjusted font size */
}

p {
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
    color: white;
    text-align: center;
    font-size: 1rem;
}

canvas {
    margin: 20px;
    display: block;
    border: 5px solid red;
    max-width: 90%; /* Responsive width for mobile */
    height: auto;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
}

#start-button, #refresh-button, #skip-button {
    margin-top: 10px;
    font-size: 1rem;
    background-color: #fff;
    color: #131313;
}

#start-button:hover, #refresh-button:hover, #skip-button:hover {
    background-color: #f0f0f0;
}

#refresh-button {
    background-color: red;
    color: #131313;
}

a {
    color: #131313;
    background-color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}
#gameControls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

#gameControls button {
    background-color: #fff;
    color: #131313;
    font-size: 1.5rem;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}

#gameControls div {
    display: flex;
    justify-content: center;
}


/* Mobile adjustments */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin-top: 10px;
    }
    p {
        font-size: 0.9rem;
        margin-left: 15px;
        margin-right: 15px;
    }
    canvas {
        margin: 20px;
        width: 50%;
        height: auto; /* Keeps canvas responsive */
    }
    button, a {
        padding: 8px 15px; /* Adjust button size on smaller screens */
        font-size: 0.9rem;
        margin: 5px;
    }
}

/* Further adjustments for very small screens (phones) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.85rem;
    }
    canvas {
        width: 90%;
        margin: 10px auto;
    }
    button, a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
