@font-face {
    font-family: "Barlow Condensed SemiBold";
    src: url("/font/BarlowCondensed-SemiBold.ttf");
}
@font-face {
    font-family: "Nanum Square Round Light";
    src: url("/font/NanumSquareRoundL.otf");
}
@font-face {
    font-family: "Nanum Square Round Regular";
    src: url("/font/NanumSquareRoundR.otf");
}
@font-face {
    font-family: "Nanum Square Round Bold";
    src: url("/font/NanumSquareRoundB.otf");
}
@font-face {
    font-family: "Nanum Square Round Extra Bold";
    src: url("/font/NanumSquareRoundEB.otf");
}

@font-face {
    font-family: "Moneygraphy";
    src: url("/font/Moneygraphy-Pixel.otf");
}

@font-face {
    font-family: "Is Yun";
    src: url("/font/isyun.ttf");
}

@font-face {
    font-family: "Biscuitos";
    src: url("/font/Biscuitos.otf");
}

/* VARIABLES */
:root {
    --mysticviolet: #a193d8;
    --mysticblue: #7ea8e9;
    --frame: rgb(255, 253, 245);
    --border: #3c1053;
    --text: #1c1053;
    --link: #426aff;
    --nav: #afb3e6;
    --pageoutline: #9a9bbb;
    --pagebackground: url(images/bg/q07-bg-paper.png);
    --border-outline: solid 1px rgba(155, 155, 155, 0.5);

    --playlist-bg: #2c081d;
    --playlist-color: #b6daff;
    --playlist-shadow: 1px 1px 4px rgba(28, 72, 213, 0.77);

    --purple: #9a89f6;
    --green: #bfdfae;
    --pink: #ef9bae;
    --red: #e75254;
    --orange: #ef8c63;
    --yellow: #f8d655;
    --skyblue: #9ec7f9;

    --borderstyle: double 3px var(--border);
    --box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    font-display: swap;
    font-size: 15px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Nanum Square Round Regular", sans-serif;
    background: url(/images/bg/c20-bg-pattern.gif);
    padding-bottom: 50px;
    margin: 0;
    color: var(--text);
    cursor: url("/cursors/Cosmica-Angel-Lilac/default.cur"), default;
}

.overlay-bg {
    position: fixed;
    background: url(/images/bg/ha06-bg-lace.gif);
    background-repeat: repeat-y;
    height: 100vh;
    width: 100vw;
    z-index: -9999;
}

.full-flex {
    width: 100vw;
    margin-top: 30px;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-content: center;
    gap: 10px;
}

.top-container {
    background: var(--frame);
    border: var(--borderstyle);
    border-radius: 2px;
    padding: 10px;
    max-width: 600px;
    width: 100%;
}

.result-container {
    position: relative;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    font-size: 1.7rem;
    margin-top: 20px;
    padding: 0px 0px 10px 0px;
    text-align: center;
    font-family: "Moneygraphy", sans-serif;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--pageoutline);
}

h1:before,
h1:after {
    content: "⋆";
    margin: 0px 10px;
}

.canvasframe {
    border-radius: 3px;
    margin: 5px;
    display: flex;
    justify-content: center;
    align-content: center;
}

canvas {
    font-family: "Barlow Condensed SemiBold", sans-serif;
    filter: drop-shadow(1px 1px 1px rgba(47, 45, 59, 0.5));
    transition: filter 0.3s ease-in-out;
}

canvas:hover {
    filter: drop-shadow(1px 1px 10px rgba(47, 45, 59, 0.5));
    transition: filter 0.3s ease-in-out;
}

.controls {
    margin: 30px 30px 25px 30px;
    text-align: justify;
    justify-content: center;
    font-size: "Nanum Square Round Extra Bold", sans-serif;
    font-weight: bold;
}

input {
    width: 200px;
    cursor: url("/cursors/Cosmica-Angel-Lilac/link-select.cur"), pointer;
}

.button-flex {
    margin: 10px 30px 20px 30px;
    width: auto;
    height: fit-content;
    display: flex;
    align-content: center;
    justify-content: space-between;
}

button {
    height: fit-content;
    width: fit-content;
    font-family: "Nanum Square Round Regular";
    padding: 6px 10px 5px 10px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 3px;
    color: var(--text);
    text-shadow: 0.7px 0.7px 0 white;
    background-color: #eee;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#backbutton {
    margin-top: 50px;
}

#download {
    color: white;
    text-shadow: none;
    background-color: #6eb4cb;
}

#download:hover,
button:hover {
    color: var(--mysticblue);
    background: #ffffff;
    cursor: url("/cursors/Cosmica-Angel-Lilac/link-select.cur"), pointer;
}

/* ===== Scrollbar CSS ===== */
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background-color: #e4e4e4;
  -webkit-border-radius: 0px;
  border-radius: 0px;
}

*::-webkit-scrollbar-thumb {
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background: linear-gradient(-90deg, #b2bcdc, #eee);
  box-shadow: inset 0 0 0 1px #ffffff99;
  border: 1px solid #9698da;
}

*::-webkit-scrollbar-thumb:hover {
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background: #ceceff;
  box-shadow: none;
  border: 1px solid #9698da;
}

@media screen and (max-width: 600px) {
    * {
        box-sizing: border-box;
        font-size: 14px;
    }
    h1 {
        font-size: 1.2rem;
    }
    .overlay-bg {
        display: none;
    }
    .full-flex {
        margin: 0px 10px;
        display: flex;
        flex-flow: column;
        width: fit-content;
        align-content: center;
        gap: 10px;
    }

    .button-flex {
        margin: 10px 30px 20px 30px;
        width: auto;
        height: fit-content;
        display: flex;
        align-content: center;
        justify-content: space-between;
    }

    #backbutton {
        margin-top: 20px;
    }
}
