/* styles.css */
@font-face {
    font-family: 'Butler Bold';
    src: url('fonts/Butler_Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Butler Regular';
    src: url('fonts/Butler_Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Butler Medium';
    src: url('fonts/Butler_Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Baton Turbo';
    src: url('fonts/BatonTurboWeb-Regular.woff') format('woff');
}

body {
    font-family: 'Baton Turbo', sans-serif;
    background: #B3CDC5;
    color: #3D3E3C;
    max-height: 100vh;
    overflow: hidden;
    transition: max-height 0.5s;
}

h1 {
    font-family: 'Butler Medium';
    font-size: 3em;
    color: #fff;
}

h2 {
    font-size: 1.5em;
}

.question {
    font-size: 1.1em;
    font-weight: 700;
    margin: 20px 0;
    text-align: end;
}

.radio-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    ;
}

.radio-right input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #3D3E3C;
    border-radius: 20%;
    margin-right: 10px;
    position: relative;
}

.custom-radio::after {
    content: "";
    width: 25px;
    aspect-ratio: 1/1;
    background-image: url('./checkmark.png');
    /* Path to your PNG image */
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -55%);
    opacity: 0;
    transition: opacity 0.2s;
}

.radio-right input[type="radio"]:checked+.custom-radio::after {
    opacity: 1;
}

.answer-text {
    text-align: end;
    width: 100%;
    font-weight: 500;
    margin-right: 10px;
}

#quiz-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: start;
}

#quiz-container,
#progress-container,
#speedometer-container {
    min-width: 300px;
}

#progress-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    left: 20%;
    top: 5%;
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    justify-content: center;
}

#speedometer-container {
    height: 100%;
    display: flex;
    position: relative;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    transform-origin: 50% 100%;
}

#speedometer-container {
    display: none;
    top: -50%;
    max-height: 500px;
}

#speedometer {
    position: relative;
    left: 0;
    height: 100%;
    width: auto;
}

#speedometer-needle {
    position: absolute;
    left: 0;
    height: 100%;
    width: auto;
    transform-origin: 50% 50%;
    transition: transform 0.5s;
    transform: translateY(16%) rotate(-93deg);
}

#progress-circle {
    height: 120px;
    aspect-ratio: 1/1;
    border: 5px solid #3D3E3C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#progress-inner-circle {
    height: 100px;
    aspect-ratio: 1/1;
    background-color: #B3CDC5;
    border-radius: 50%;
    position: absolute;
}

#progress-text {
    position: absolute;
    font-size: 1.2em;
}

#question-container {
    margin: 20px auto;
    position: relative;
    opacity: 1;
    height: fit-content;
    transition: opacity 0.3s, height 0.3s;
}

#navigation-buttons {
    display: flex;
    justify-content: center;
    margin: 20px;
}

#introduction {
    display: none;
    text-align: justify;
    margin: 0 auto;
}

#result-container{
    margin: 0 auto;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 0%;
    border: none;
    background-color: #899e98;
    font-family: 'Segoe UI', sans-serif;
    color: #f1f1f1;
}

iframe {
    border: none;
    height: 100vh;
}

@media (max-width: 768px) {
    #quiz-wrapper {
        grid-template-columns: 1fr;
    }

    #progress-container {
        grid-column: 1;
        grid-row: 2;
        height: 135px;
        justify-content: center;
        left: 0;
        margin: 20px;
        align-items: center;
    }

    #speedometer-container {
        grid-column: 1;
        grid-row: 2;
        height: 300px;
        justify-content: center;
        left: 0;
        top: 0;
        margin: 20px;
    }

    #speedometer, #speedometer-needle {
        width: auto;
        height: 100%;
    }

    #quiz-container {
        grid-column: 1;
        grid-row: 1;
    }
}