header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

main {
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

@media screen and (max-width: 900px) {
    main {
        margin: 0;
        max-width: none;
        box-shadow: none;
        padding: 20px;
        border-radius: none;
    }
}

h1 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 2.5em;
    margin: auto;
}

h2 {
    font-size: 1.5em;
}

p {
    font-family: "Georgia", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    font-size: 1em;
    line-height: 1.6;
    margin: 0 0 15px 0;
    color: #555;
}

b {
    font-weight: bold;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

label {
    font-weight: bold;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: inline-block;
    margin-top: 20px;
}

#rating1 label,
#rating2 label,
#rating3 label {
    margin: 0;
}

#section2,
#section3,
#section4,
#section5,
#section6,
#section7 {
    display: none;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    resize: vertical;
}

input[type="radio"] {
    display: none;
}

input[type="radio"] + label {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

input[type="radio"]:checked + label {
    background-color: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

input[type="radio"] + label:hover {
    background-color: #5ed162;
}

#buttonrow {
    max-width: 800px;
    margin: auto;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: flex-end;
}

#errorrow {
    max-width: 800px;
    margin: auto;
    display: flex;
    justify-content: flex-end;
}

#error {
    display: block;
    float: left;
    color: red;
    display: none;
}

button {
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 3px;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button#next {
    background-color: #4caf50;
}

button#next:hover {
    background-color: #45a049;
}

button#next:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button#previous {
    background-color: #008cba;
}

button#previous:hover {
    background-color: #007a9b;
}

button#previous:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button#submit {
    background-color: #ff9800;
    display: none;
}

button#submit:hover {
    background-color: #e68a00;
}

button#submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

ul {
    list-style-type: disc;
    margin: 20px 0;
    padding-left: 40px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
}

small {
    font-size: 0.6em;
    color: #666;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

audio {
    width: 100%;
    margin: 20px 0;
    display: block;
    outline: none;
    border: 2px solid #ccc;
    border-radius: 100rem;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

audio:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border-color: #4caf50;
}

audio::-webkit-media-controls-panel {
    background-color: #f1f1f1;
    border-radius: 100rem;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-volume-slider {
    color: #4caf50;
    transition: color 0.3s ease;
}

audio::-webkit-media-controls-play-button:hover,
audio::-webkit-media-controls-volume-slider:hover {
    color: #45a049;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 40px;
    height: 20px;
    --c: no-repeat radial-gradient(farthest-side, #000 93%, #0000);
    background: var(--c) 0 0, var(--c) 50% 0;
    background-size: 8px 8px;
    position: relative;
    clip-path: inset(-200% -100% 0 0);
    animation: l6-0 1.5s linear infinite;
}
.loader:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 12px;
    background: #000;
    left: -16px;
    top: 0;
    animation: l6-1 1.5s linear infinite, l6-2 0.5s cubic-bezier(0, 200, 0.8, 200) infinite;
}
.loader:after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000;
    animation: l6-3 1.5s linear infinite;
}
@keyframes l6-0 {
    0%,
    30% {
        background-position: 0 0, 50% 0;
    }
    33% {
        background-position: 0 100%, 50% 0;
    }
    41%,
    63% {
        background-position: 0 0, 50% 0;
    }
    66% {
        background-position: 0 0, 50% 100%;
    }
    74%,
    100% {
        background-position: 0 0, 50% 0;
    }
}
@keyframes l6-1 {
    90% {
        transform: translateY(0);
    }
    95% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(15px);
        left: calc(100% - 8px);
    }
}
@keyframes l6-2 {
    100% {
        top: -0.1px;
    }
}
@keyframes l6-3 {
    0%,
    80%,
    100% {
        transform: translate(0);
    }
    90% {
        transform: translate(26px);
    }
}

#loading {
    display: none;
}
