@charset "utf-8";
@font-face {
    font-family: Handwriting;
    src: url(/fonts/Handwriting.ttf);
}
@font-face {
    font-family: Winkle;
    src: url(/fonts/Winkle-Regular.ttf);
}

*, *::before, *::after {
    box-sizing: border-box;
  }

body {
    background-image: url(/images/puzzleswapbg.webp);
    background-size: 100% cover;
    background-position-y: -95px;
    font-family: Handwriting, Winkle;
    overflow: auto;
}

header {
    display: flex;
    align-items: center;
    justify-self: center;
    position: fixed;
    width: fit-content;
    z-index: 1;
}

main {
    display: flex;
    flex-flow: column;
    justify-self: center;
    position: fixed;
    max-width: 900px;
    width: 100%;
    height: 50%;
    margin-top: 80px;
    padding: 55px;
    font-size: 18px;
    overflow-y: auto;
    background-color: rgba(240, 248, 255, 0.65);
    border-radius: 1%;
    font-size: x-large;
    border: 2px solid #ffffff73;
}

.back {
    max-width: fit-content;
}

.cat {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #ffffffbb #ffffff00;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 16px;
  }

  *::-webkit-scrollbar-track {
    background: #000000;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #ffffffbb;
    border-radius: 10px;
    border: 3px none #ffffff;
  }

@media (max-width: 900px) {
    main {
        height: 80%;
        border-radius: 5%;
    }
}