:root {
    --main-bg-color: #1a1a1a;
    --main-text-color: #e0e0e0;
    --link-color: #32CD32;
    --link-hover-color: #228B22;
    --nav-bg-color: linear-gradient(to bottom, #4a4a4a, #2d2d2d);
    --nav-hover-color: linear-gradient(to bottom, #555555, #383838);
    --window-border-color: #666;
    --window-title-bg: linear-gradient(to bottom, #4a4a4a, #2d2d2d);
}

.wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 13.5px;
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    background-image: url('bg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

a, a:visited, a:active {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.2s ease;
    text-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
}

a:hover {
    color: var(--link-hover-color);
}

*::selection {
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
}

.post-separator {
    height: 5px;
    background: linear-gradient(to right, transparent, #888, transparent);
    margin: 20px 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.more-posts-btn {
    display: inline-block;
    width: auto;
    padding: 8px 15px;
    background: var(--nav-bg-color);
    border: 1px solid #777;
    color: var(--main-text-color);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 3px rgba(0,0,0,0.3);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

.more-posts-btn:hover {
    background: var(--nav-hover-color);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 3px rgba(0,0,0,0.4);
}

.more-posts-btn:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(1px);
}

.logo {
    max-width: 500px;
    margin: 0 auto;
    display: block;
    position: relative;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3));
}

.logo img {
    width: 100%;
    max-width: 500px;
    margin: auto;
    display: block;
}

.splash {
    text-shadow: 
        2px 2px 0 rgba(0,0,0,0.5),
        0 0 20px rgba(255,255,0,0.4);
    display: inline-block;
    position: absolute;
    color: yellow;
    text-align: center;
    font-size: 24px;
    bottom: 45px;
    right: 25px;
    transform: rotate(-40deg) translate(50%, 50%);
    animation: splash-animation 0.25s linear infinite alternate;
}

nav {
    text-align: center;
    margin: 20px;
}

nav a {
    font-family: 'Courier New', monospace;
    background: var(--nav-bg-color);
    font-weight: bold;
    width: 100px;
    margin: 0 5px;
    border: 1px solid #777;
    border-radius: 5px;
    display: inline-block;
    padding: 5px 0;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 2px 4px rgba(0,0,0,0.3);
}

nav a:hover {
    background: var(--nav-hover-color);
}

nav a:active {
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(1px);
}

.left, .right {
    width: 200px;
    flex-shrink: 0;
}

.main {
    width: 680px;
    max-width: 680px;
    min-height: 735px;
    background: linear-gradient(145deg, #272727, #222);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 45px;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.guestbook-message {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.2), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.guestbook-message strong {
    font-weight: bold;
    color: var(--link-color);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    display: block;
    margin-bottom: 10px;
}

.guestbook-message img {
    width: 64px;
    height: 64px;
    float: right;
    margin: 0 0 10px 10px;
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.3), 
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.guestbook-message p {
    color: var(--main-text-color);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    margin: 0 0 10px;
    line-height: 1.5;
}

.guestbook-message p small {
    color: #888;
    font-size: 0.9em;
}

.guestbook-message form {
    display: inline-block;
    margin-top: 10px;
}

.guestbook-message input[type="submit"] {
    display: inline-block;
    padding: 5px 10px;
    background: var(--nav-bg-color);
    border: 1px solid #777;
    color: var(--main-text-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.guestbook-message input[type="submit"]:hover {
    background: var(--nav-hover-color);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.4);
}

.guestbook-message input[type="submit"]:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.window {
    border: 1px solid #555;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(145deg, #272727, #222);
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.win-title {
    font-family: 'Courier New', monospace;
    text-align: center;
    font-weight: bold;
    background: var(--window-title-bg);
    text-transform: uppercase;
    padding: 8px 0;
    color: var(--link-color);
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid #444;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 1px 3px rgba(0,0,0,0.2);
}

.win-content {
    background-color: rgba(34, 34, 34, 0.9);
    color: #bbb;
    padding: 10px;
    border-radius: 0 0 7px 7px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.post-content img {
    float: right;
    margin: 0 0 10px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

.blog-post {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.1);
}

.blog-post h3 {
    margin: 0 0 10px 0;
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.blog-post .post-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.blog-post-link {
    display: inline-block;
    width: auto;
    padding: 8px 15px;
    background: var(--nav-bg-color);
    border: 1px solid #777;
    color: var(--main-text-color);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 3px rgba(0,0,0,0.3);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

.blog-post-link:hover {
    background: var(--nav-hover-color);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 3px rgba(0,0,0,0.4);
    color: var(--main-text-color);
}

.blog-post-link:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(1px);
}

.latest-posts {
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

footer {
    position: absolute;
    bottom: 7px;
    padding-top: 0px;
    width: 97%;
}

footer hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
    margin-right: 0px;
}

@keyframes splash-animation {
    from {
        transform: rotate(-40deg) translate(50%, 50%) scale(1);
    }
    to {
        transform: rotate(-40deg) translate(50%, 50%) scale(1.1);
    }
}

@media screen and (max-width: 828px) {
    .wrap {
        flex-direction: column;
        padding: 10px;
    }

    .right, .left, .main {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 10px 0;
    }

    .main {
        order: 1;
    }

    .left {
        order: 2;
    }

    .right {
        order: 3;
    }

    footer {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }
}

@media screen and (max-width: 660px) {
    nav {
        max-width: 400px;
        margin: 20px auto;
    }

    nav a {
        width: calc(50% - 20px);
        margin: 5px;
    }

    .wrap {
        padding: 5px;
    }

    .logo {
        max-width: 100%;
    }

    .logo img {
        max-width: 100%;
    }
}
