* {
    margin: 0px;
    padding: 0px;
}

:root {
    color: white;
    font-family: "Rubik", sans-serif;
}

body {
    min-width: 100vw;
    min-height: 100vh;
    background: linear-gradient(to bottom, #FFCD17, #99560E);
    background-size: 100% 100%;
    position: relative;
}

main {
    min-width: 100vw;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem;
    box-sizing: border-box;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: transparent;
    border-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0px;
    opacity: 0;
    transition: opacity 3s;
}

#particles-js.show {
    opacity: 1;
}

section.home p {
    font-size: 2rem;
}

h1 {
    font-family: "Roboto", sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    font-size: 4rem;
    margin-bottom: .5rem;
}

section.home button {
    margin-top: 1rem;
}

section {
    display: none;
}

main.home section.home {
    display: block;
}

main.guess section.guess {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main.result section.result {
    display: block;
}

main.done section.done {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

button {
    padding: 1rem 3rem;
    border-radius: 10px;
    border: none;
    background-color: #99450E;
    color: white;
    box-shadow: 0px 10px 0px #6C310A;
    font-family: "Rubik", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.5s;
}

button:hover {
    transform: translateY(3px);
    box-shadow: 0px 8px 0px #6C310A;
}

button:active {
    transform: translateY(9px);
    box-shadow: 0px 1px 0px #6C310A;
}

main div {
    background-color: #1E1E1E;
    border: 1px solid #FFFFFF;
    border-radius: 10px;
    position: relative;
    padding: 3rem;
    width: 120%;
    box-sizing: border-box;
}

button.sound {
    background-color: transparent;
    color: grey;
    box-shadow: none;
}

button.sound:hover {
    color: white;
    transform: none;
}

button.sound:active {
    transform: none;
}

section.guess form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

section.guess form button {
    position: absolute;
    bottom: -2rem;
    /* left: 50%; */
    justify-self: center;
}

section.guess form input {
    width: 50%;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    font-family: "Rubik", sans-serif;
    color: #1E1E1E;
}

section.guess p {
    font-size: 1.5rem;
}

section.result img {
    width: 300px;
    height: 300px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

main.result section.result span {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

main.result h1 {
    margin-bottom: 1.5rem;
}

main.result section.result p {
    font-size: 1.5rem;
}

main.result.fail section.result span.fail {
    display: flex;
}

main.result.success section.result span.success {
    display: flex;
}

main.done section.done p {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

main.done section.done p img {
    width: 50px;
    height: 50px;
}

section.done span {
    display: none;
}

main.done.page-1 section.done span.page-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 700px;
    gap: 1rem;
}

main.done.page-1 section.done span.page-1 p {
    font-size: 1rem;
}

main.done.page-2 section.done span.page-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 700px;
    gap: 1rem;
}

span.page-2 p {
    font-size: 1rem;
    margin-top: 1rem;
}

@media screen and (max-width: 700px) {
    main {
        padding: 4rem;
    }

    main div {
        width: 100%;
    }
}