@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

@font-face {
    font-family: Whitney;
    src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-400.woff);
    font-weight: 400;
}

:root {
    --main: #2a72df;
    --main-lg: #1951a6;
    --background: #0a0a10;
    --lighter-bg: #232338;
    --light-bg: #1c1c28;
    --secondary: #2d2d33;
    --secondary-lg: #262637;
    --chart-bg: #4d4d70;
    --correct: #57F287;
    --incorrect: #ed4245;
    --yellow: #FEE75C;
    --magenta: #EB459E;
    --funny: #ff8c45;
}

body {
    margin: 0;
    background-color: var(--background);
}

.container {
    color: white;
    font-family: "Poppins", sans-serif;
    padding: 100px 60px 0 60px;
}

@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.pie {
    --p: 20;
    --b: 12px;
    --c: var(--main);
    --w: 60px;

    width: var(--w);
    height: var(--w);
    aspect-ratio: 1;
    position: relative;
    display: inline-grid;
    margin: 5px;
    place-content: center;
    font-size: 25px;
    font-weight: bold;
    font-family: sans-serif;
}

.pie.top {
    background: radial-gradient(50% 50% at center, var(--secondary-lg) 0% 60%, #0000 0% 100%), var(--chart-bg);
    border-radius: 50%;
}

.pie:before,
.pie:after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.pie:before {
    inset: 0;
    background:
        radial-gradient(farthest-side, var(--c) 98%, #0000) top/var(--b) var(--b) no-repeat,
        conic-gradient(var(--c) calc(var(--p)*1%), #0000 0);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
    mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
}

.pie:after {
    inset: calc(50% - var(--b)/2);
    background: var(--c);
    transform: rotate(calc(var(--p)*3.6deg)) translateY(calc(50% - var(--w)/2));
}

.animate {
    animation: p .5s .25s both;
}

.no-round:before {
    background-size: 0 0, auto;
}

.no-round:after {
    content: none;
}

@keyframes p {
    from {
        --p: 0
    }
}

.group {
    min-height: 70px;
    cursor: pointer;
    margin: 0 0 10px 0;
    padding: 0 4px;
    display: flex;
    align-items: center;
    background-color: var(--secondary-lg);
    border-radius: 16px;
    justify-content: space-between;
}

.text-container {
    margin-left: 16px;
}

.text-container p {
    margin: 0;
}

.text-container .title {
    font-weight: bold;
}

.group:hover .text-container .title {
    color: var(--main);
}

.text-container .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.wrongimg {
    height: 60px;
    width: 60px;
    margin: 5px;
}

@media (max-width: 600px) {
    .text-container .subtitle {
        font-size: 12px;
    }
}

@media (max-width: 1000px) {
    .container {
        padding: 100px 30px 0 30px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 100px 15px 0 15px;
    }
}