@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Itim&family=Klee+One:wght@600&family=Mali:wght@500&family=Nunito:wght@700&display=swap');

@font-face {
    font-family: 'MSGothicWeb';
    src: url('/fonts/MS Gothic.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body, button, input, textarea, select {
    font-family: 'MSGothicWeb', "MS Gothic", "MS PGothic", "Osaka", "MS UI Gothic", "Tahoma", "Verdana", sans-serif !important;
}

html {
    min-height: 100vh;
    cursor: url('/assets/hatchet.webp'), default !important;
}

*, *:hover, *:active, *:focus, *:focus-within {
    cursor: url('/assets/hatchet.webp'), default !important;
}

::selection {
    background: #6a0dad;
    color: #ffffff;
}

::-moz-selection {
    background: #6a0dad;
    color: #ffffff;
}

body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    color: #4a0080;
}

#container {
    width: 850px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: rgba(255, 255, 255, 0.85);
    border-left: 2px solid #6a0dad;
    border-right: 2px solid #6a0dad;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.2);
    background-image: linear-gradient(rgba(106, 13, 173, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 13, 173, 0.1) 1px, transparent 1px);
    background-size: 3px 3px;
    display: flex;
    flex-direction: column;
}

#banner {
    height: 180px;
    border-bottom: 2px solid #6a0dad;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;

    @font-face {
        font-family: 'Aribau Rounded';
        src: local('Aribau Rounded'),
        url('../fonts/AribauRounded.woff2') format('woff2');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
}

#banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/assets/kakera.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

#banner.banner-hanyuu::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/banner/hanyuu-header-top.webp');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 2;
}

#banner-text {
    position: relative;
    z-index: 3;
    padding-left: 30px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding-right: 20px;
    border-radius: 0 10px 10px 0;
}

#banner-text h1 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 34px;
    margin: 0;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: #6a0dad;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 1);
}

#flex-wrapper {
    display: flex;
    padding: 20px;
    gap: 20px;
    flex: 1;
}

#main-content {
    flex: 1;
    min-width: 0;
}

.welcome-box {
    border: 1px solid #6a0dad;
    margin-bottom: 20px;
    background: white;
}

.box-header {
    background: linear-gradient(180deg, #9b30d0 0%, #6a0dad 100%);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.15);
}

.box-body {
    padding: 15px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: #333;
}

.box-body a {
    color: #6a0dad;
    text-decoration: underline;
    font-weight: bold;
}

.box-body a:hover {
    color: #9b30d0;
}

#footer {
    border-top: 1px solid #6a0dad;
    padding: 10px 20px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DotGothic16', sans-serif !important;
}

#footer a {
    color: #6a0dad;
    text-decoration: none;
    font-weight: bold;
}

.debian-red {
    color: #ff0055 !important;
}

#dashboard-link {
    text-align: center;
    padding: 6px;
    font-size: 11px;
}

#dashboard-link a {
    color: #6a0dad;
    text-decoration: none;
    opacity: 0.4;
    font-family: 'DotGothic16', sans-serif !important;
}

#dashboard-link a:hover {
    opacity: 1;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
    #container {
        width: 100%;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    #banner {
        height: 120px;
    }

    #banner-text h1 {
        font-size: 22px;
    }

    #flex-wrapper {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .box-body {
        font-size: 12px;
        padding: 10px;
    }

    #footer {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        font-size: 9px;
    }
}