body {
    text-align: center;
    font-size: 1.5em;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps the background in place */
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    margin: 0;
}

h1 {
    margin: 0;
    padding: 2vh 0;
    background-color: rgba(0, 0, 0, 0.5);
}

section {
    color: white;
    width:75vw;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.75);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

section:hover {
    background-color: rgba(0, 0, 0, 0.75);
    transform: translateY(-5px);
}

input[type="radio"]+label{
    border: none;
    outline: none;
    font-size: 1.5rem;
    display: inline-block;
    padding: 6px 12px;
    margin: 30px 20px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s ease;
    background-color: rgba(255, 255, 255, 0.75);
    color: black;
}

input[type="radio"]+label:hover{
    background-color: rgba(0, 255, 0, 0.75);
    transform: translateY(-5px);
}

input[type="radio"]:checked+label {
    background-color: rgba(0, 200, 0, 0.75);
    color: white;
    transform: scale(1.1);
}

input[type="radio"]:checked+label:hover{
    transform: translateY(-5px) scale(1.1);
}

input[type="radio"] {
    display: none;
}

button {
    background-color: rgba(0, 150, 255, 0.75);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    transition: 0.3s ease;
}

button:hover {
    background-color: rgba(0, 150, 255, 0.5);
}


#authorInfo {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    text-align: left;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
}

.authorInfoContainer {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on narrow viewports */
    gap: 20px; /* Adds space between columns */
    align-items: flex-start; /* Aligns items at the top */
}

.bio {
    flex: 1; /* Takes up remaining space */
    min-width: 250px; /* Ensures bio column doesn't shrink too much */
}

.authorImage {
    flex-shrink: 0; /* Prevents the image from shrinking */
    max-width: 300px;
    width: 100%; /* Ensures image scales down on narrow viewports */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.input-group {
    align-content: center;
    margin: 0 0 20px;
    gap: 30px;
}


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;
}

.custom-number-input {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.custom-number-input input[type="number"] {
    text-align: center;
    font-size: 1.5rem;
    border: none;
    border-bottom: 3px solid green;
    background-color: transparent;
    color: white;
}

input[type="number"]:focus {
    border-color: lightgreen;
    outline: none;
}

.custom-number-input button {
    width: 25px;
    height: 25px;
}

.custom-number-input button:hover {
    background-color: #0056b3;
}

#retrievedQuotesSection {
    display: none;
}

#author {
    margin: 20px 0 0;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

input[type="number"].shake {
    animation: shake 0.3s ease-in-out;
}

#numberOutOfBounds {
    display: none;
    margin: 10px 0 0 0;
}

.flagImage {
    width: 200px;
    height: auto;
}

footer {
    font-size: 1.0rem;
    text-decoration: none;
    color: white;
}

footer a {
    font-size: 1.0em;
    text-decoration: underline;
    color: white;
}