/* FONT */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: white;
    text-align: center;
    image-rendering: pixelated;
    background-size: cover;
    background-attachment: fixed;
}


/* NAVBAR */

nav {
    background: black;
    padding: 15px;
    border-bottom: 3px solid white;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    background: white;
    color: black;
    padding: 5px;
}

/* HERO */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin: 0;
    padding: 0 20px;
}

.hero .intro {
    margin: 0 0 15px 0;
    font-size: 12px;
    line-height: 1;
}

.hero h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.hero .desc {
    margin-top: 15px;
    font-size: 10px;
    line-height: 1.4;
}


/* BUTTON */

.btn {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    background: black;
    color: white;
    border: 2px solid white;
    text-decoration: none;
}

.btn:hover {
    background: white;
    color: black;
}


/* BLOG */

.blog-list a {
    display: block;
    width: 80%;
    margin: 15px auto;
    padding: 10px;
    background: black;
    border: 2px solid white;
}

.blog-list a:hover {
    background: white;
    color: black;
}


/* GALLERY */

.gallery img {
    border: 3px solid white;
    image-rendering: pixelated;
    transition: 0.2s;
}

.gallery img:hover {
    border-color: gray;
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(-4px, 2px);  
    }
    20% {
        transform: translate(3px, 4px);  
    }
}


/* CONTACT PAGE */
	
.contact-container {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
}

.contact-box {
    background: rgba(0, 0, 0, 0.88);
    border: 4px solid white;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 8px 8px 0 black;
}

.contact-box h2 {
    margin-bottom: 25px;
    font-size: 16px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    border: 2px solid white;
    text-align: left;
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: white;
    text-decoration: none;
    line-height: 1.6;
    word-break: break-word;
}

.contact-item a:hover {
    background: white;
    color: black;
    padding: 3px;
}


/* ARTICLE PAGE */

.article-container {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
}

.article-box {
    background: rgba(0, 0, 0, 0.88);
    border: 4px solid white;
    padding: 35px;
    box-shadow: 8px 8px 0 black;
    text-align: left;
}

.article-box h1 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.article-box h2 {
    font-size: 14px;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.7;
    padding-bottom: 10px;
    border-bottom: 3px solid white;
}

.article-box p {
    margin-bottom: 18px;
    line-height: 1.9;
}

.article-box ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-box li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-image {
    text-align: center;
    margin: 25px 0;
}


/* RESPONSIVE DESIGN */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Tablet */
@media (max-width: 1024px) {
    h1 {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 15px;
    }

    .desc {
        font-size: 9px;
        line-height: 1.6;
        padding: 0 15px;
    }

    .gallery img {
        max-width: 90%;
        height: auto;
    }
}

/* HP */
@media (max-width: 768px) {
    body {
        font-size: 10px;
        background-attachment: scroll;
        background-position: center;
    }

    nav {
        padding: 10px;
    }

    nav a {
        display: block;
        width: 90%;
        margin: 8px auto;
        padding: 8px;
        border: 2px solid white;
    }

    .hero {
        min-height: calc(100vh - 180px);
        padding: 0 15px;
    }

    .hero .intro {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 13px;
        line-height: 1.8;
        margin: 0;
        word-break: break-word;
    }

    .hero .desc {
        font-size: 8px;
        line-height: 1.8;
        margin-top: 12px;
    }

    .blog-list a {
        width: 90%;
        font-size: 9px;
        line-height: 1.8;
    }

    .gallery {
        width: 100%;
        padding: 0 10px;
    }

    .gallery img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .article-container,
    .contact-container {
        width: 92%;
        margin: 30px auto;
    }

    .article-box,
    .contact-box {
        padding: 20px;
        box-shadow: 5px 5px 0 black;
    }

    .article-box h1 {
        font-size: 13px;
        line-height: 1.8;
    }

    .article-box h2 {
        font-size: 11px;
    }

    .article-box p,
    .article-box li {
        font-size: 9px;
        line-height: 1.9;
    }

    .contact-item {
        flex-direction: column;
        font-size: 9px;
    }
}