@font-face {
    font-family: 'Kongtext';
    src: url("./fonts/KongtextModified.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lowres-Pixel';
    src: url("./fonts/LowresPixel-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pixelify-Sans';
    src: url("./fonts/PixelifySansModified.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Pixelify-Sans', monospace;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-family: 'Lowres-Pixel';
    color: rgb(185, 185, 185);
    font-size: 20px;
    margin: 0;
    padding: 0;
}

body {    
    margin: 0;
    background: rgb(20, 20, 22);
    min-height: 100vh;

    color: white;
    display: flex;
    flex-direction: column;
}

.menu {
    width: 100%;
    height: fit-content;
    background-color: rgb(29, 29, 33);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: fit-content;
    color: white;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fumos {
    display: flex;
    align-items: flex-start;
}

.fumo {
    height: 64px;
    width: 64px;
    margin-right: -5px;
}

.fumo img {
    height: 100%;
    width: 100%;
    display: block;
}

#menu {
    display: none;
}

.items {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 5px 7px;
}

.item {
    width: 120px;
    height: 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    position: relative;
    font-size: 20px;
}

.item.active {
  color: #d94a5b;
}

.item.active::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 3px;
  width: 80%;
  height: 4px;
  background: #d94a5b;
  border-radius: 2px;
}

.item:hover {
    background-color: rgb(44, 44, 54);
}

.menu-toggle {
    width: 36px;
    height: 36px;
    display: block;
    cursor: pointer;
    background-image: url("images/ui/hamburger.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: none;
}

@media screen and (max-width: 650px) {
    .menu {
        flex-direction: column;
    }
    .menu .logo {
        width: 100%;
    }
    .menu .items {
        margin: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .menu .item {
        width: 100%;
        border-radius: 0;
        border-top: 0.5mm solid rgb(55, 56, 64);
    }
    .menu-toggle {
        display: block;
    }
    #menu:checked ~ .items {
        max-height: 500px;
    }
    #menu:checked ~ .logo .menu-toggle {
        background-image: url("images/ui/x.png");
    }
}

.title {
    font-size: 22px;
    font-weight: normal;
}

.panel {
    padding: 0;
    border: 22px solid transparent;
    border-image-source: url("images/ui/panel.png");
    border-image-slice: 7 fill;
    border-image-repeat: stretch;
    background: transparent;
}

.footer {
    display: flex;
    gap: clamp(8px, 2vw, 16px);
    width: 100%;
    height: clamp(32px, 6vw, 45px);
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.footer p {
    font-family: 'Kongtext';
    font-size: clamp(12px, 3.5vw, 16px);
    white-space: nowrap;
}

.footer img {
    height: clamp(12px, 3.5vw, 19px);
}