@font-face {
    font-family: "Archivo";
    src: url("assets/fonts/Archivo.ttf");
}

* {
    margin: 0;
    padding: 0;
    font-family: "Archivo";
}

body {
    --primary: #800000;
    --secondary: #a00000;
    --light: #f4f4f4;
    --dark: #161618;
    --light-dark: #1c1c1e;

    background-color: var(--dark);
    color: var(--light);
}

/* Home */

.home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
}

.title {
    font-size: 3.5em;
    font-weight: bold;
    text-align: center;
    color: var(--light);
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}

.category-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.category-btn {
    border: none;
    padding: 0.8em 2.5em;
    outline: none;
    color: white;
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    cursor: pointer;
    background: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    width: 200px;
}
  
.category-btn:before, .category-btn:after {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10em;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 105%;
    height: 105%;
    content: "";
    z-index: -2;
    background-size: 400% 400%;
    background: linear-gradient(60deg, var(--primary), #b90000);
}
  
.category-btn:before {
    -webkit-filter: blur(7px);
    filter: blur(7px);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    -webkit-animation: pulse 10s infinite ease;
    animation: pulse 10s infinite ease;
}
  
.category-btn:after {
    -webkit-filter: blur(0.3px);
    filter: blur(0.3px);
}
  
.category-btn:hover:before {
    width: 115%;
    height: 115%;
}

/* Quiz */

.quiz {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.question {
    font-size: 3.5em;
    font-weight: bold;
    text-align: center;
    color: var(--light);
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}

.options {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 500px;
}

.options #not-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.5);
}

.options #not-selected:hover {
    cursor: pointer;
    background-color: rgba(255, 0, 0, 0.3);
}

.options #incorrect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.4);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.5);
}

.options #incorrect:hover {
    cursor: pointer;
    background-color: rgba(255, 0, 0, 0.3);
}

.options #correct {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 60px;
    background-color: rgba(0, 255, 0, 0.4);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(0, 255, 0, 0.5);
}

.options #correct:hover {
    cursor: pointer;
    background-color: rgba(0, 255, 0, 0.3);
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.play-btn {
    border: none;
    height: 60px;
    padding: 0em 2.5em;
    outline: none;
    color: white;
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    cursor: pointer;
    background: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}
  
.play-btn:before, .play-btn:after {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10em;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 105%;
    height: 105%;
    content: "";
    z-index: -2;
    background-size: 400% 400%;
    background: linear-gradient(60deg, var(--primary), #b90000);
}
  
.play-btn:before {
    -webkit-filter: blur(7px);
    filter: blur(7px);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    -webkit-animation: pulse 10s infinite ease;
    animation: pulse 10s infinite ease;
}
  
.play-btn:after {
    -webkit-filter: blur(0.3px);
    filter: blur(0.3px);
}
  
.play-btn:hover:before {
    width: 115%;
    height: 115%;
}

.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    border: none;
    outline: none;
    color: white;
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    cursor: pointer;
    background: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}
  
.reset-btn:before, .reset-btn:after {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 105%;
    height: 105%;
    content: "";
    z-index: -2;
    background-size: 400% 400%;
    background: linear-gradient(60deg, var(--primary), #b90000);
}
  
.reset-btn:before {
    -webkit-filter: blur(7px);
    filter: blur(7px);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    -webkit-animation: pulse 10s infinite ease;
    animation: pulse 10s infinite ease;
}
  
.reset-btn:after {
    -webkit-filter: blur(0.3px);
    filter: blur(0.3px);
}
  
.reset-btn:hover:before {
    width: 115%;
    height: 115%;
}

.reset-btn img {
    width: 45px;
    height: auto;
}

/* Back btn */

.button-container {
    position: absolute;
    left: 30px;
    top: 30px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0.5em;
    outline: none;
    color: white;
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    cursor: pointer;
    background: none;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}
  
.back-btn:before, .back-btn:after {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 105%;
    height: 105%;
    content: "";
    z-index: -2;
    background-size: 400% 400%;
    background: linear-gradient(60deg, var(--primary), #b90000);
}
  
.back-btn:before {
    -webkit-filter: blur(7px);
    filter: blur(7px);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    -webkit-animation: pulse 10s infinite ease;
    animation: pulse 10s infinite ease;
}
  
.back-btn:after {
    -webkit-filter: blur(0.3px);
    filter: blur(0.3px);
}
  
.back-btn:hover:before {
    width: 115%;
    height: 115%;
}

.back-btn img {
    width: 45px;
    height: auto;
}

@media screen and (max-width: 1000px) {
    /* Home */

    .home {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 40px;
    }

    .title {
        font-size: 3em;
        font-weight: bold;
        text-align: center;
        color: var(--light);
        text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    }

    .category-box {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 30px;
    }

    .category-btn {
        border: none;
        padding: 0.8em 2.5em;
        outline: none;
        color: white;
        font-size: 1.2em;
        position: relative;
        z-index: 1;
        cursor: pointer;
        background: none;
        text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.5);
        width: 200px;
    }
    
    .category-btn:before, .category-btn:after {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 10em;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        width: 105%;
        height: 105%;
        content: "";
        z-index: -2;
        background-size: 400% 400%;
        background: linear-gradient(60deg, var(--primary), #b90000);
    }
    
    .category-btn:before {
        -webkit-filter: blur(12px);
        filter: blur(12px);
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
        -webkit-animation: pulse 10s infinite ease;
        animation: pulse 10s infinite ease;
    }
    
    .category-btn:after {
        -webkit-filter: blur(0.3px);
        filter: blur(0.3px);
    }
    
    .category-btn:hover:before {
        width: 115%;
        height: 115%;
    }

    /* Quiz */

    .quiz {
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
    }

    .question {
        font-size: 3em;
        font-weight: bold;
        text-align: center;
        color: var(--light);
        text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    }

    .options {
        display: grid;
        grid: auto auto / auto auto;
        justify-content: center;
        gap: 40px;
        width: auto;
    }

    .options #not-selected {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 60px;
        background-color: rgba(255, 0, 0, 0.1);
        border: 2px solid rgba(255, 0, 0, 0.5);
        border-radius: 10px;
        box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.5);
    }

    .options #not-selected:hover {
        cursor: pointer;
        background-color: rgba(255, 0, 0, 0.3);
    }

    .options #incorrect {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 60px;
        background-color: rgba(255, 0, 0, 0.4);
        border: 2px solid rgba(255, 0, 0, 0.5);
        border-radius: 10px;
        box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.5);
    }

    .options #incorrect:hover {
        cursor: pointer;
        background-color: rgba(255, 0, 0, 0.3);
    }

    .options #correct {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 60px;
        background-color: rgba(0, 255, 0, 0.4);
        border: 2px solid rgba(0, 255, 0, 0.5);
        border-radius: 10px;
        box-shadow: 0 0 10px 5px rgba(0, 255, 0, 0.5);
    }

    .options #correct:hover {
        cursor: pointer;
        background-color: rgba(0, 255, 0, 0.3);
    }

    .buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .play-btn {
        border: none;
        height: 60px;
        padding: 0em 2.5em;
        outline: none;
        color: white;
        font-size: 1.2em;
        position: relative;
        z-index: 1;
        cursor: pointer;
        background: none;
        text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    }
    
    .play-btn:before, .play-btn:after {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 10em;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        width: 105%;
        height: 105%;
        content: "";
        z-index: -2;
        background-size: 400% 400%;
        background: linear-gradient(60deg, var(--primary), #b90000);
    }
    
    .play-btn:before {
        -webkit-filter: blur(7px);
        filter: blur(7px);
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
        -webkit-animation: pulse 10s infinite ease;
        animation: pulse 10s infinite ease;
    }
    
    .play-btn:after {
        -webkit-filter: blur(0.3px);
        filter: blur(0.3px);
    }
    
    .play-btn:hover:before {
        width: 115%;
        height: 115%;
    }

    .reset-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        width: 60px;
        border: none;
        outline: none;
        color: white;
        font-size: 1.2em;
        position: relative;
        z-index: 1;
        cursor: pointer;
        background: none;
        text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    }
    
    .reset-btn:before, .reset-btn:after {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        width: 105%;
        height: 105%;
        content: "";
        z-index: -2;
        background-size: 400% 400%;
        background: linear-gradient(60deg, var(--primary), #b90000);
    }
    
    .reset-btn:before {
        -webkit-filter: blur(7px);
        filter: blur(7px);
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
        -webkit-animation: pulse 10s infinite ease;
        animation: pulse 10s infinite ease;
    }
    
    .reset-btn:after {
        -webkit-filter: blur(0.3px);
        filter: blur(0.3px);
    }
    
    .reset-btn:hover:before {
        width: 115%;
        height: 115%;
    }

    .reset-btn img {
        width: 45px;
        height: auto;
    }

    /* Back btn */

    .button-container {
        position: absolute;
        left: 30px;
        top: 30px;
    }

    .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0.5em;
        outline: none;
        color: white;
        font-size: 1.2em;
        position: relative;
        z-index: 1;
        cursor: pointer;
        background: none;
        text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    }
    
    .back-btn:before, .back-btn:after {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        width: 105%;
        height: 105%;
        content: "";
        z-index: -2;
        background-size: 400% 400%;
        background: linear-gradient(60deg, var(--primary), #b90000);
    }
    
    .back-btn:before {
        -webkit-filter: blur(7px);
        filter: blur(7px);
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
        -webkit-animation: pulse 10s infinite ease;
        animation: pulse 10s infinite ease;
    }
    
    .back-btn:after {
        -webkit-filter: blur(0.3px);
        filter: blur(0.3px);
    }
    
    .back-btn:hover:before {
        width: 115%;
        height: 115%;
    }

    .back-btn img {
        width: 35px;
        height: auto;
    }
}