@font-face {
    font-family: 'RussianRail';
    src: url('RussianRail G Pro Regular_0.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

::selection {
    background-color: #e8d5b5;
    color: #443025;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #f6dfb3;
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

#topborder {
    background-image: url('https://64.media.tumblr.com/352dde0bac3be3bcb98135b62421f205/f03668631de77a31-99/s400x600/17971fa26a44e62d0683dbdb6e9b1b6be5d85a93.pnj');
    background-repeat: repeat-x;
    height: 90px;
    width: 100%;
    position: fixed;
    top: -12px;
    left: 0;
    z-index: 3;
}

.grid {
    padding-top: 30px;
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto auto 250px;
    gap: 10px;
    max-width: 1200px;
    width: 40%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    grid-template-areas:
        "header header"
        "sidebar content"
        "footer content";
}

.header {
    grid-area: header;
    display: flex;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 10px;
    flex-wrap: wrap;
}

.header-small-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 280px;
}

.box1 {
    width: 300px;
    height: 300px;
    border: 2px solid #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.box1 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 60%;
}

.png-image {
    display: block;
    width: 100px;
    height: auto;
}

.box-about-me {
    width: 100%;
    background-color: #919d85;
    border: 2px solid #ffffff;
    overflow: hidden;
    padding: 15px;
}

.box-about-me h1 {
    color: #443025;
    font-family: 'RussianRail';
    font-size: 25px;
    padding-left: 15px;
    margin: 10px 0;
    line-height: 1;
}

.box-about-me p {
    color: #443025;
    font-family: 'RussianRail';
    font-size: 20px;
    padding-left: 15px;
    margin: 10px 0;
    line-height: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.box-about-me img {
    display: inline-block;
    vertical-align: middle;
    max-width: 30px;
    height: auto;
}

.sidebar {
    grid-area: sidebar;
    background-color: #919d85;
    border: 2px solid white;
    padding: 15px;
    min-height: 200px;
}

.sidebar h1 {
    color: #fbfbfb;
    font-family: 'RussianRail';
    font-size: 25px;
    padding-left: 15px;
    margin: 10px 0;
    line-height: 1;
}

.sidebar a {
    display: block;
    color: #fbfbfb;
    font-family: 'RussianRail';
    font-size: 20px;
    padding-left: 15px;
    margin: 10px 0;
    line-height: 1;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #c0b092;
}

.content {
    grid-area: content;
    background-color: #d4c4a8;
    border: 2px solid #d4c4a8;
    padding: 15px;
    min-height: 300px;
    max-height: 480px;
    overflow-y: auto;
}

.content::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.content::-webkit-scrollbar-track {
    background: #3d725c;
    border: 1px solid white;
}

.content::-webkit-scrollbar-thumb {
    background: #c0b092;
    border: 2px solid white;
    height: 20px;
}

.content h1 {
    color: #443025;
    font-family: 'RussianRail';
    font-size: 25px;
    padding-left: 15px;
    margin: 10px 0;
    line-height: 1;
}

.content p {
    color: #443025;
    font-family: 'RussianRail';
    font-size: 15px;
    padding-left: 15px;
    margin: 10px 0;
    line-height: 1;
}

.post-image {
    width: 200px;
    height: 200px;
    border: 2px solid white;
    overflow: hidden;
    margin-bottom: 15px;
    margin-left: 20px;
}

.post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.footer {
    grid-area: footer;
    background-color: #c0b092;
    border: 2px solid white;
    text-align: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 250px;
}

.footer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

@media screen and (max-width: 900px) {
    .grid {
        width: 95%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .header {
        gap: 15px;
    }
    
    .box1 {
        width: 250px;
        height: 250px;
    }
    
    .box-about-me p {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 200px;
        grid-template-areas:
            "header"
            "sidebar"
            "content"
            "footer";
    }
    
    .header {
        flex-direction: column;
        align-items: center;
    }
    
    .header-small-container {
        width: 100%;
        min-width: auto;
    }
    
    .box1 {
        width: 280px;
        height: 280px;
    }
    
    .png-image {
        margin: 0 auto;
    }
    
    .sidebar {
        text-align: center;
    }
    
    .sidebar h1, .sidebar a {
        padding-left: 0;
    }
    
    .post-image {
        margin: 0 auto 15px;
    }
}

@media screen and (max-width: 480px) {
    .grid {
        width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .box1 {
        width: 240px;
        height: 240px;
    }
    
    .box-about-me p {
        font-size: 16px;
        padding-left: 10px;
    }
    
    .box-about-me h1 {
        font-size: 22px;
        padding-left: 10px;
    }
    
    .content h1 {
        font-size: 22px;
        padding-left: 10px;
    }
    
    .content p {
        font-size: 14px;
        padding-left: 10px;
    }
    
    .post-image {
        width: 180px;
        height: 180px;
    }
}