/* =================================================
 Variables
================================================== */
:root {
    --font-title: 'Bangers';
    --font-text: 'Dosis Variable';

}

/* =================================================
 Fonts
================================================== */
@font-face {
    font-family: 'Bangers';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/bangers@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/bangers@latest/latin-400-normal.woff) format('woff');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: 'Dosis Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/dosis:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* =================================================
 Reset
================================================== */
html {
    box-sizing: border-box;
    font-family: var(--font-text);
}

*, *:before, *:after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    max-height: 100%;
}

b {
    text-transform: uppercase;
}



/* =================================================
 Global
================================================== */
body {
    margin: 0;
    background-color: #09868B;
    color: #fff;
    text-align: center;
}

.wrapper {
    margin: 16px;
    padding: 16px;
    border: 1px solid #fff;
    border-radius: 8px;
}

h1,
h2 {
    font-family: var(--font-title);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 400;
}

h1 {
    font-size: 64px;
    color: #f9e753;
}

h2 {
    font-family: var(--font-title);
    font-size: 28px;
}

p {
    margin-top: 0;
}

.screen {
    display: none;
    min-height: calc(100vh - 66px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 64px;
}

.screen--is-active {
    display: flex;
}

.button {
    display: inline-block;
    clip-path: polygon(15% 9%, 100% 0%, 86% 90%, 0 100%);
    padding: 24px 96px;
    font-family: var(--font-title);
    font-size: 32px;
    color: #347292;
    background-color: #fff;
    cursor: pointer;
    border: none;
    transition: all .15s ease-in-out;
    white-space: nowrap;
}

.button:hover {
    background-color: #003e5e;
    color: #fff;
    transform: scale(1.1);
}

.button--is-danger {
    background-color: #F34040;
    color: #fff;
}

.button--is-danger:hover {
    background-color: #F34040;
    color: #fff;
    transform: scale(1.05);
}

.button--is-success {
    background-color: #2DB01C;
    color: #fff;
}

.button--is-success:hover {
    background-color: #2DB01C;
    color: #fff;
    transform: scale(1.05);
}

/* =================================================
 Start Screen
================================================== */
.screen--is-start {
    gap: 40px;
}

.screen--is-start p {
    font-size: 32px;
    max-width: 800px;
}

.screen--is-start .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bag-container {
    position: relative;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 480px;
    background-color: rgba(255, 255, 255, .1);
    border-radius: 50%;
    aspect-ratio: 1/1;
    margin-top: -32px;
    margin-bottom: -40px;
}

.bag-container img {
    max-height: 340px;
}

.screen--is-start button {
    animation: shadowAnimation2 .5s infinite alternate;
}

/* =================================================
 Quiz Screen
================================================== */
.screen--is-quiz {
    gap: 80px;
}

.timer {
    position: fixed;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    font-size: 40px;
    font-family: var(--font-title);
}

.timer .time {
    font-size: 64px;
    line-height: .9;
}

.progress {
    width: 800px;
    height: 24px;
    background-color: #fff;
    padding: 4px;
}

.progress__value {
    background: #32BF61;
    height: 100%;
    position: relative;
}

.progress__value::before {
    content: '';
    position: absolute;
    right: -23px;
    background-color: #32BF61;
    clip-path: polygon(0 0, 100% 0%, 44% 100%, 0% 100%);
    width: 24px;
    height: 100%;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0;
}

figure img {
    object-fit: contain;
    width: 440px;
    height: 440px;
}

.question-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

.shadow {
    position: absolute;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 640px;
    background-color: rgba(255, 255, 255, .05);
    border-radius: 50%;
    aspect-ratio: 1/1;
    animation: shadowAnimation 8s infinite alternate;
}

.shadow .shadow {
    width: 80%;
}

.shadow .shadow .shadow {
    width: 60%;
}

.shadow .shadow .shadow .shadow {
    width: 60%;
}

figcaption {
    font-family: var(--font-text);
    font-size: 64px;
    max-width: 800px;
    font-weight: 600;
}

.buttons {
    display: flex;
    gap: 120px;
}

.screen--is-quiz .buttons button {
    background-color: #fff;
    clip-path: polygon(16% 9%, 100% 0%, 85% 90%, 0 100%);
    width: 100%;
    height: 100%;
    border: none;
    padding: 5px 12px;
}

/* =================================================
 Result Screen
================================================== */
.screen--is-result p {
    font-family: var(--font-text);
    font-size: 48px;
    margin: 0;
}

.screen--is-result p > span {
    display: block;
}

.screen--is-result p > span:last-child {
    font-size: 104px;
    font-weight: 600;
}

.screen--is-result .buttons {
    gap: 40px;
}

.screen--is-result .bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
	background-position: center;
    background-repeat: no-repeat !important;
	background-size: 100% 100%;
    margin: 0;
	text-align: center;
	height: 0;
	line-height: 1;
    padding: 40px;
    padding-bottom: 104px;
    font-family: var(--font-text);
    background-image: url(img/bubble.svg); 
    width: 320px;
    height: 184px;
}

.screen--is-result .bubble p {
    color: #003e5e;
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
}

.screen--is-result .bubble:nth-child(1) {
    transform:scaleX(-1);
    left: -55%;
    top: -120px;
}

.screen--is-result .bubble:nth-child(1) p {
    transform:scaleX(-1);
}

.screen--is-result .bubble:nth-child(2) {
    right: -65%;
    top: 0px;
}

@keyframes shadowAnimation {
    0% {
      transform: scale(1);
    }
    25% {
        transform: scale(1.08);
    }
    75% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes shadowAnimation2 {
    0% {
      transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* =================================================
 Correction Screen
================================================== */
.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

.columns > div {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.columns figure {
    position: relative;
    gap: 8px;
    width: 240px;
    height: 200px;
    background-color: rgba(255, 255, 255, .1);
    padding: 8px;
    border-radius: 8px;
}

.columns figcaption {
    display: flex;
    flex-direction: column;
    font-family: var(--font-text);
}

.columns figcaption span:nth-child(1) {
    font-size: 20px;
    font-weight: 600;
}

.columns figcaption span:nth-child(2) {
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
}

.columns img {
    max-width: 72px;
    max-height: 72px;
}

.screen--is-correction {
    height: calc(100vh - 66px);
    overflow-y: auto;
    justify-content: flex-start;
}