html {
    font-family: 'Roboto', sans-serif;
    font-size: x-large;
    text-align: center;
    overflow-x: auto;
}

main {
    max-width: 600px; 
    margin: 0 auto;
    padding: 0 20px;
}

.top-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 5ex;
    width: 100%;
}

#round {
    justify-self: start;
}

#score {
    justify-self: end;
}

#timeout,
#reload {
    display: none;
}

.choose-grid {
    display: block;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 3ex;
    margin: 1ex 0 5ex;
    width: 100%;
}

.instructions-grid {
    display: block;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3ex;
    width: 100%;
    text-align: center;
}

.instruction-text {
    grid-column: 1 / 3;
    margin: 4ex 0 1.8ex;
    text-align: left;
}

.L {
    justify-self: end;
}

.R {
    justify-self: start;
}

.btn {
    border-radius: 15px;
    background-color: lightgray;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 20px;
}

.btn:hover {
    background-color: darkgray;
}

.option {
    width: 4em;
    height: 4ex;
    font-size: 160%;
    font-weight: bolder;
}

.option:disabled {
    background-color: #d3d3d3;
    cursor: not-allowed;
}

.selected {
    background-color: gray;
}

#react {
    display: none;
    margin-top: 60px;
}

.box-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;

}

.feedback-grid {
    display: block;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3ex;
    column-gap: 1em;
    margin: 1ex 0 5ex;
    width: 75vmin;
    text-align: left;
}

.square {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25vmin;
    height: 25vmin;
    background-color: white;
    border: 3px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 8vw;
    font-weight: bold;
    color: #333;
    box-sizing: border-box;
    margin: 10px;
    transition: transform 0.3s ease;
}

.square:hover {
    transform: scale(1.05);
}

.square:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.box-number {
    font-size: x-large;
    text-align: center;
    margin: 20px 0;

}

.square:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.threshold-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

.threshold-input-group input[type="number"] {
    width: 30%;
    padding: 10px;
    margin-top: 3ex;
    font-size: large;
    border: 2px solid #ccc;
    border-radius: 8px 0 0 8px;
    text-align: center;
}

.threshold-input-group button {
    padding: 10px 20px;
    margin-top: 3ex;
    font-size: large;
    color: white;
    background-color: #007bff;
    border: 2px solid #007bff;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.threshold-input-group button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.threshold-input-group button:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Result screen styling */
#result-screen {
    text-align: center;
    margin-top: 3ex;
}

#result-message {
    font-size: large;
    margin-bottom: 20px;
}

#result-screen button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: large;
    color: white;
    background-color: #ffc107;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#result-screen button:hover {
    background-color: #e0a800;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input[type=number] {
    -moz-appearance: textfield;
}


