@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

html.theme-light {
    --description-color: #bbbbbb;
    --spin-button-border-color: #5b3e72;
    --container-color: rgba(240, 240, 240, 0.2);
    --transparent-bg-color: rgba(0, 0, 0, 0.7);
}

html.theme-dark {
    --description-color: #bbbbbb;
    --spin-button-border-color: #212121;
    --container-color: rgba(31, 31, 31, 0.7);
    --transparent-bg-color: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
    transition: color 0.2s ease-in-out, background 0.2s ease-in-out;

    -webkit-tap-highlight-color: transparent;

    -webkit-touch-callout: none;
        -webkit-user-select: none;    
            -moz-user-select: none;
                -ms-user-select: none;
                    user-select: none;
}

/* Remove scrollbar */
::-webkit-scrollbar {
    width: 0;
}
/* Set custom selection color+ */
::selection {
    color: white;
    background: #bc74f5;
}

/* Ripple effect */
span.ripple {
    z-index: 0;
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    animation: ripple 300ms linear forwards;
}
@keyframes ripple {
    to {
        transform: scale(3);
        opacity: 1;
    }
}
@keyframes remove-ripple {
    from {
        transform: scale(3);
        opacity: 1;
    }
    to {
        transform: scale(3);
        opacity: 0;
    }
}


body .loader-display {
    z-index: 999;
    width: 100vw;
    height: 100vh;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, 
        rgba(62,0,125,1) 0%, 
        rgba(63,24,65,1) 100%
    );
}
body .loader-display .loader {
    position: relative;
    width: 130px;
    height: 100px;
    background-repeat: no-repeat;
    background-image: linear-gradient(#a73efd, #a73efd),
    linear-gradient(#af5df2, #bc74f5), linear-gradient(#af5df2, #bc74f5);
    background-size: 80px 70px, 30px 50px, 30px 30px;
    background-position: 0 0, 80px 20px, 100px 40px;
}
body .loader-display .loader:after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-sizing: content-box;
    border: 10px solid #000;
    box-shadow: 78px 0 0 -10px #fff, 78px 0 #000;
    animation: wheelSk 0.75s ease-in infinite alternate;
}
body .loader-display .loader:before {
    content: "";
    position: absolute;
    right: 100%;
    top: 0px;
    height: 70px;
    width: 70px;
    background-image: linear-gradient(#fff 45px, transparent 0),
        linear-gradient(#fff 45px, transparent 0),
        linear-gradient(#fff 45px, transparent 0);
    background-repeat: no-repeat;
    background-size: 30px 4px;
    background-position: 0px 11px, 8px 35px, 0px 60px;
    animation: lineDropping 0.75s linear infinite;
}
@keyframes wheelSk {
    0%, 50%, 100% { transform: translatey(0) }
    30%, 90% { transform: translatey(-3px) }
}  
@keyframes lineDropping {
    0% {
        background-position: 100px 11px, 115px 35px, 105px 60px;
        opacity: 1;
    }
    50% { background-position: 0px 11px, 20px 35px, 5px 60px }
    60% { background-position: -30px 11px, 0px 35px, -10px 60px }
    75%, 100% {
        background-position: -30px 11px, -30px 35px, -30px 60px;
        opacity: 0;
    }
}


body {
    display: flex;
    min-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(145deg, 
        rgba(62,0,125,1) 0%, 
        rgba(63,24,65,1) 100%
    );
}


body header {
    width: 100%;
    height: 60px;
    display: flex;
    padding: 0 15px;
    position: fixed;
    align-items: center;
}
body header .logo {
    height: 100%;
    display: flex;
    align-items: center;
}
body header .logo i {
    color: white;
    font-size: 1.6rem;
}
body header .logo h1 {
    color: white;
    margin-left: 10px;
    font-size: 1.6rem;
}
body header button {
    width: 45px;
    height: 45px;
    border: none;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    background: none;
    border-radius: 50%;
    position: relative;
}
body header button.refresh {
    margin-left: auto;
    margin-right: 5px;
}
body header button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
body header button i {
    color: white;
    font-size: 1.4rem;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}


body .result {
    z-index: 2;
    opacity: 0;
    top: -25vh;
    scale: 0.92;
    left: -25vw;
    width: 150vw;
    height: 150vh;
    display: flex;
    position: fixed;
    padding: 25vh 25vw;
    align-items: center;
    pointer-events: none;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    background-color: var(--transparent-bg-color);
}
body .result.show {
    scale: 1;
    opacity: 1;
    pointer-events: all;
}
body .result .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(90vw, 600px);
}
body .result .container .title {
    color: white;
    font-weight: 500;
    text-align: center;
    font-size: 1.85rem;
    margin-bottom: 20px;
}
body .result .container .description {
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    color: var(--description-color);
}


body > .content {
    width: 100%;
    display: flex;
    min-height: 100vh;
    max-width: 1920px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
body > .content .container {
    width: 92%;
    max-width: 600px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    min-height: min(90vw, 600px);
    background-color: var(--container-color);
}
body > .content .container .title {
    width: 100%;
    color: white;
    margin-top: 15px;
    font-size: 1.6rem;
    text-align: center;
}
body > .content .container .navigation {
    width: 100%;
    height: 60px;
    display: flex;
    padding: 0 10px;
    position: absolute;
    align-items: center;
}
body > .content .container .navigation button {
    width: 45px;
    height: 45px;
    border: none;
    display: flex;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    background: none;
    position: relative;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
body > .content .container .navigation button:last-of-type {
    margin-left: auto;
}
body > .content .container .navigation button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
body > .content .container .navigation button i {
    color: white;
    font-size: 1.4rem;
}
body > .content .container .wheel {
    width: 100%;
    margin-top: 30px;
    position: relative;
    padding: 20px 12.5% 20px 12.5%;
}
body > .content .container .wheel canvas {
    transition: rotate 6.7s ease-out;
}
body > .content .container .wheel button {
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: #bc74f5;
    transform: translate(-50%, -50%);
    border: 5px solid var(--spin-button-border-color);
    transition: all 0.2s ease-in-out, scale 0.1s ease-in-out;
}
body > .content .container .wheel button:active i {
    scale: 0.85;
}
body > .content .container .wheel button i {
    color: white;
    font-size: 2rem;
    pointer-events: none;
    transition: all 0.2s ease-in-out, scale 0.1s ease-in-out;
}
body > .content .container .wheel .pointer {
    top: 0;
    width: 0;
    height: 0;
    left: 50%;
    z-index: 1;
    position: absolute;
    border-style: solid;
    transform: translateX(-50%);
    border-width: 43.3px 25px 0 25px;
    border-color: #bb74f5 transparent transparent transparent;
}


@media only screen and (max-width: 500px) {
    body header button:hover {
        background-color: unset;
    }
    body > .content .container .navigation button:hover {
        background-color: unset;
    }
    body .result .container .title {
        font-size: 1.6rem;
    }
    body > .content .container .wheel {
        padding: 5% 6.5% 5% 6.5%;
        margin-top: 10px;
    }
    body > .content .container .wheel .pointer {
        border-width: 39.3px 25px 0 25px;
    }
    body > .content .container .wheel button {
        width: 75px;
        height: 75px;
    }
    body > .content .container .wheel button i {
        font-size: 1.6rem;
    }
}