body {
    font-family: "Tahoma", sans-serif;
    overflow-x: hidden;
}

h1 {
    font-weight: normal;
    font-size: x-large;
    text-align: center;
    margin-top: 2em;
}

.nut-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: 0 auto;
}

.nut-image img {
    max-width: 90%;
    max-height: 500px;
    border-radius: 30px;
    height: auto;
    object-fit: contain;
}

.guess-box {
    width: 90%;
    max-width: 720px;
    justify-content: center;
    align-items: center;
    margin: 2em auto;
}

#guess-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#guess {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid orange;
    border-radius: 5px;
    box-shadow: 0.1em 0.3em rgba(0, 0, 0, 0.1);
}

#guess-form button {
    width: 100%;
    padding: 10px;
    background-color: orange;
    border: none;
    border-radius: 5px;
    box-shadow: 0.1em 0.2em rgba(0, 0, 0, 0.1);
}

#info-text {
    font-size: small;
}

#share-button {
    padding: 5px 10px;
    background-color: orange;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0.1em 0.2em rgba(0, 0, 0, 0.1);
    transform: translateY(0%);
}

.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
}

.image-credits-text {
    font-size: x-small;
    text-align: center;
    margin: 0.25em auto -1em;
}

.nut-image img.correct {
    transform: rotateY(180deg);
    transition: transform 0.6s;
}

.correct-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 8px;
    display: none;
    z-index: 1;
}

.nut-image.correct .correct-message {
    display: block;
}

#result-message {
    font-size: 1.5rem;
    color: forestgreen;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.5s ease;
    margin-top: -1em;
}

#share-button-finished {
    display: none;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: -1em auto 0em;
}

#result-text {
    display: none;
}

.brick {
    font-size: 3rem;
    margin: auto;
}



.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.8); 
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.flash-overlay.show {
    opacity: 1;
}
