body {
    min-height: 100vh;
    margin: 0;
    background: #121212;
    color: rgba(255, 255, 2555, 0.78);
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    --hover_opacity: 0.8;
}

#topic_choice {
    width: 95%;
    max-width: 800px;
    border-radius: 10px;
    height: 40px;
    margin: 10px auto 20px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    padding: 5px 1% 5px 2%;
    font-size: larger;
    line-height: 30px;
    background: #444;
    overflow-y: visible;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#dropdown_wrapper {
    font-size: smaller;
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#dropdown_upper {
    display: flex;
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding-left: 10px;
    background: #272727;
    border-radius: 10px 0 0 10px;
    justify-content: space-between;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#dropdown_text {
    margin: 0;
    overflow: hidden;
}

#dropdown_icon {
    display: block;
    height: 30px;
    border-left: 3px solid #121212;
    opacity: 0.8;
    padding: 5px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#dropdown_icon:hover {
    opacity: 0.6;
}

#dropdown_menu {
    display: none;
    z-index: 10;
}

.dropdown_option {
    height: 30px;
    line-height: 30px;
    padding-left: 10px;
    background: #555;
    overflow: hidden;
    z-index: 10;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.dropdown_option:hover {
    background: #666;
    color: rgb(74, 165, 221);
}

#progress_bar {
    width: 100%;
    height: 20px;
    background:rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 15px;
    color: black;
    font-size: smaller;
    text-align: center;
    display: none;
}

#correct_progress, #wrong_progress{
    height: 100%;
    background-color: rgba(70, 255, 70, 0.8);
}

#wrong_progress {
    background-color: rgba(255, 70, 70, 0.9);
}

#skip_button {
    width: fit-content;
    height: fit-content;
    padding: 10px 15px;
    margin: 10px auto;
    border-radius: 20px;
    font-weight: bold;
    font-size: larger;
    color: black;
    background-color: rgb(74, 165, 221);
}

#skip_button:hover {
    opacity: var(--hover_opacity);
}

#skip_button:active {
    opacity: 0.9;
}

.wrapper {
    margin: 40px auto;
    width: 95%;
    min-height: 120px;
    background: #3a3a3a;
    padding: 15px 20px 10px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

 #question_wrapper {
    margin-top: 0;
}

h1 {
    text-align: center;
    font-size: 1.8em;
    margin: 0 auto 20px;
    color: rgb(74, 165, 221);
}

p {
    max-height: 1000px;
    margin: 0;
    overflow-y: auto;
}

textarea {
    resize: none;
}

#send_button {
    width: 40px;
    height: 40px;
}

#send_button:hover {
    opacity: var(--hover_opacity);
}

#input_form {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
}

#answer_input {
    font-size: 1em;
    flex-grow:1;
    min-height: 60px;
    max-height: 200px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    color: black;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* loading animation */
.line {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    margin: 0 2px;
    margin-top: 5px;
    background-color: rgb(74, 165, 221);
}

.loading {
    padding-left: 10px;
    margin-bottom: 10px;
    height: 40px;
    width: calc(100% - 40px);
    background: inherit;
}

.loading .line:nth-last-child(1) {
    animation: loading 0.6s 0.1s linear infinite;
}
.loading .line:nth-last-child(2) {
    animation: loading 0.6s 0.2s linear infinite;
}
  .loading .line:nth-last-child(3) {
    animation: loading 0.6s 0.3s linear infinite;
}

@keyframes loading {
    0% {
      transform: translate(0, 0px);
    }
    50% {
      transform: translate(0, 15px);
    }
    100% {
      transform: translate(0, 0px);
    }
}

@media screen and (orientation:portrait) {
    body {
      font-size: 14px;
    }
    .wrapper {
        margin: 20px auto;
        padding: 10px 15px;
        min-height: 100px;
    }
    h1 {
        margin-bottom: 10px;
    }
}