body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.topnav {
    overflow: hidden;
    background-color: #333;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-image: linear-gradient(to right, #ff6b6b, #4ecdc4, #45b7d1);
    color: white;
}

.post1 {
    background-color: rgb(249, 246, 62);
    width: 300px;
    border: 15px solid rgb(238, 199, 26);
    box-shadow: 8px 8px 5px #444444;
    margin: 20px;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    transform-origin: top left;
}

.post {
    background-color: rgb(249, 246, 62);
    width: 300px;
    border: 15px solid rgb(238, 199, 26);
    box-shadow: 8px 8px 5px #444444;
    margin: 20px;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    transform-origin: top left;
}

.post:hover {
    transform: scale(1.5);
}

html {
    background-image: url("media/Konachan.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@font-face {
    font-family: myFont;
    src: url(media/Pixel.ttf);
}

* {
    font-family: myFont;
}

a {
    color: rgb(47, 134, 255);
}

.main {
    background: radial-gradient(circle farthest-corner at center center, rgba(255, 94, 247, 1) 17.8%, rgba(2, 245, 255, 1) 100.2%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 40px;
    transition: font-size 0.2s ease-in-out;
}

.post-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.side-img {
    width: 300px;
    height: auto;
    border: 15px solid rgb(238, 199, 26);
    box-shadow: 8px 8px 5px #444444;
    object-fit: cover;
    position: fixed;
    right: 20px;
    top: 80px;
}

@media (max-width: 768px) {
    .topnav {
        display: flex;
        flex-wrap: wrap;
    }

    .topnav a {
        float: none;
        flex: 1 1 auto;
        font-size: 14px;
        padding: 10px 8px;
        text-align: center;
    }

    .post,
    .post1 {
        width: calc(100% - 70px);
        display: block;
        margin: 10px auto;
    }

    .post:hover {
        transform: scale(1.05);
    }

    .main {
        font-size: 24px;
    }

    .post-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .side-img {
        position: static;
        width: calc(100% - 70px);
        display: block;
        margin: 10px auto;
        border: 10px solid rgb(238, 199, 26);
    }

    html {
        background-attachment: scroll;
    }
}