:root {
    --text-color: #ffffff;
    --border-color: #ffffff;
}

@font-face {
    font-family: 'Joe Font';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/HaoOuBa/BlogStatic/usr/uploads/2021/04/4134683798.woff') format('woff');
}

html {
    font-size: 16pt;
}

@media screen and (max-width: 1680px) {
    html { font-size: 12pt; }
}
@media screen and (max-width: 736px) {
    html { font-size: 11pt; }
}
@media screen and (max-width: 360px) {
    html { font-size: 10pt; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: #1b1f22;
    font-family: 'Joe Font', "Source Sans Pro", sans-serif;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('../image/cursor.cur'), auto;
    line-height: 1;
}

a {
    cursor: url('../image/cursor.link.cur'), pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000 url('../image/background.jpg') center center no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.0);
    transition: opacity 1.5s ease-out, transform 2.5s ease-out;
}

#bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
}

body.loaded #bg {
    opacity: 1;
    transform: scale(1.125);
}

#wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    max-width: 100%;
    padding: 4rem 2rem 5rem 2rem;
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded #wrapper {
    opacity: 1;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.logo, .content, nav, nav ul, .logo::after, .content::after {
    transition: all 0.5s ease;
}

.logo {
    width: 5.5rem;
    height: 5.5rem;
    line-height: 5.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.logo .icon {
    font-size: 2rem;
}

.logo::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    width: 1px;
    height: 3.5rem;
    background: var(--border-color);
}

.content {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 4rem;
    width: auto;
    min-width: 50%;
    text-align: center;
    position: relative;
    margin-bottom: 3.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.content::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3.5rem;
    left: 50%;
    width: 1px;
    height: 3.5rem;
    background: var(--border-color);
}

.content h1 {
    font-size: 2.25rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0;
    padding-left: 0;
    background: rgba(255, 255, 255, 0.02);
}

nav ul li {
    border-left: 1px solid var(--border-color);
}

nav ul li:first-child {
    border-left: none;
}

nav ul li a {
    display: flex;
    min-width: 9rem;
    height: 4rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0 1.5rem;
    text-transform: capitalize;
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a .icon {
    font-size: 1.6rem;
}

#footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    padding: 0 20px;
}

#footer .copyright {
    letter-spacing: 0.2rem;
    font-size: 0.6rem;
    opacity: 0.75;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 1.5;
}

@media screen and (max-width: 736px) {
    #wrapper { padding: 2rem 1rem 5rem 1rem; }
    
    .logo { margin-bottom: 2rem; width: 4.5rem; height: 4.5rem; font-size: 1.5rem; }
    .logo::after { height: 2rem; bottom: -2rem; }
    
    .content { 
        padding: 2rem 1rem; 
        margin-bottom: 2rem;
        width: 90%; 
        max-width: 90%;
        margin-left: auto; 
        margin-right: auto;
    }
    .content::after { height: 2rem; bottom: -2rem; }
    
    .content h1 { font-size: 1.5rem; line-height: 1.4; white-space: normal; }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    nav ul li {
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }
    nav ul li:first-child { border-top: 0; }
    
    nav ul li a {
        height: 4.5rem;
        width: 100%;
        flex-direction: row;
        gap: 1rem;
    }
    nav ul li a .icon { font-size: 1.4rem; }
}

@media screen and (max-width: 480px) {
    .content { width: 85%; } 
    
    #footer {
        bottom: 15px;
        font-size: 0.5rem;
    }
}
