/* general */
body {
    padding: 0 3%;
    width: 90%;
    min-width: 350px;
    height: 95vh;
    min-height: 250px;
}

button {
    display: flex;
    font-size: clamp(1em, 2.8vw, 3em);
    width: 100%;
    border-radius: 12px;
}

/* header */
#headline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    height: 15vh;
}

#level div {
    height: 50%;
}

#levelDescription {
    display: flex;
    flex-direction: column;
    width: 100%; 
    white-space: nowrap;
    color: black;
    font-size: clamp(1em, 2.8vw, 3em);
}

#levelDescription div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    white-space: nowrap;
    font-size: clamp(2.5em, 5vw, 5em);
    width: auto;
}

.chooseLevelButton {
    text-align: center;
    font-size: clamp(1em, 2.5vw, 2em);
    justify-content: left;
    background-color: lightgray;
    border-radius: 5px;
    width: max-content;
}

#levelButtons {
    background-color: lightgray;
    border: 1px solid #111;
    border-radius: 5px;
    width: max-content;
    padding: 2px;
    position: relative;
}

#levelButtons button {
    display: flex;
    white-space: nowrap;
    font-size: clamp(1em, 2vw, 1.5em);
    width: 100%;
    justify-content: left;
    text-align: center;
    padding: 2px 10px 0px 10px;
    border-radius: 5px;}

/* statistics */
#statistics {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 50%;
    font-size: clamp(0.5em, 3vw, 3em);
    /*margin-bottom: 5%;*/
}

.statisticsHeader {
    display: flex;
    justify-content: center;
    color:black;
    font-weight: bold;
}

.StatisticColumn {
    display: flex;
}

.StatisticColumn div {
    padding: 2%;
    margin: 2%;
}

#statisticDetails {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 1px solid #888;
    /*width: auto;*/
    width: 80%;
    font-size: clamp(0.5em, 3vw, 3em);
    padding: 1%;
}

.statisticsGood {
    display: flex;
    justify-content: center;
    color:green;
    font-weight: lighter;
}

.statisticsBad {
    display: flex;
    justify-content: center;
    color:red;
    font-weight: lighter;
}

/* counter */
#counters {
    display: flex;
    flex-direction: row-reverse;
    font-size: clamp(2em, 3.8vw, 4em);
    width: 15%;
}

#counters div {
    display: flex;
    margin-left: 5%;
    margin-right: 5%;
}

#firstTryCounter {
    color: green;
}

#totalCounter {
    color: black;
}

/* content */
#content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 65vh;
}

/* footer */
#footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 15vh;
}

/* control buttons */
#controlButtons {
    display: flex;
    justify-content: space-between;
    gap: 5%;
    width: 100%;
}

#controlButtons button {
    display: flex;
    justify-content: center;
    white-space: nowrap;
    font-size: clamp(1em, 5vw, 3em);
    width: 100%; 
    margin-top: 5%;
    margin-bottom: 5%;
    background-color: lightgreen;
}

/* answer buttons */
#answerButtons {
    display: flex;
    justify-content: stretch;
    gap: 1%;
    font-size: clamp(1em, 5vw, 3em);
    width: 100%; 
}

#answerButtons button {
    background-color: #eee;
}

.popup {
    background: #fff;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    padding: 0 30px 30px;
    color: #333;
    visibility: hidden;
}

/* modal popups */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(0,0,0,0);
    top: 25%;
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: aliceblue;
    margin: auto;
    padding: 20px;
    border: 2px solid #888;
    border-radius: 10px;
    width: 60%;
}

.modal-content p {
    font-size: clamp(1em, 2.8vw, 2em);
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0;
    font-family: 'Patrick Hand', sans-serif;
}

.modal-content button {
    width: auto;
    height: auto;
    justify-content: center;
    padding: 10px;
    background-color: #0069d9;
    color: #fff;
    font-size: clamp(1em, 2.8vw, 3em);
}

/* misc */
.close {
    color: #aaa;
    float: right;
    font-size: clamp(1em, 2.8vw, 2em);
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

