@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-primary: #00b0f0;
    --color-secondary: #fdd20b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", serif;
    color: white;
}

img {
    width: 100%;
}

button {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

hr {
    display: block;
    margin-block: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    background: var(--color-primary);
    height: 48px;
    color: white;
    padding: 0 2rem;
    border-radius: 500px;
}

a.btn {
    text-decoration: none;
    font-size: 0.8rem;
}

.wrapper {
    min-height: 100dvh;
    background-image: url('/images/bg-main.png');
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    width: 80vw;
    margin-inline: auto;
    padding-block: 2rem;
}

.footer {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer img {
    width: 100px;
}

.footer p {
    font-size: 0.7rem;
}

.logo {
    margin-inline: auto;
    width: 100vw;
}

.text-center {
    text-align: center;
}

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.v-padding {
    padding-block: 2rem;
}

.v-margin {
    margin-block: 2rem;
}

.active {
    display: inline-block;
    padding: 0.5rem;
    background: var(--color-secondary);
    font-weight: 700;
    border-radius: 8px;
    color: black;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
}

.quiz-list li {
    margin-bottom: 1.5rem;
}

.quiz-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 160px 4fr 80px 150px;
}

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

input[type="radio"]:checked + span {
    display: inline-block;
    padding: 0.5rem;
    background: var(--color-secondary);
    font-weight: 700;
    border-radius: 8px;
    color: black;
    transition: all 0.3s ease;
}

.add-quiz-form input, .add-quiz-form select {
    display: flex;
    width: 100%;
    padding: 0.5rem;
    color: #333;
    border-radius: 0.5rem;
    margin-top: 0.3rem;
    outline: none;
    border: none;
}

.add-quiz-form input:focus, .add-quiz-form select:focus {
    outline: #00b0f0 solid 1px;
    box-shadow: 0 0 8px #00b0f0;
}

.add-quiz-form label {
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.message.success {
    background: #ebffd3;
    padding: 0.5rem;
    color: #009688;
    margin-bottom: 2rem;
    font-weight: 700;
}

.message.error {
    background: #ecb8b8;
    padding: 0.5rem;
    color: #a50000;
    margin-bottom: 2rem;
    font-weight: 700;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 500px) {
    .main {
        width: 80vw;
    }

    .logo {
        width: 60vw;
    }

    .footer {
        padding: 2rem 4rem;
    }
}