body {
    font-family: serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    background-image: url("img/bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-origin: content-box;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 10px auto 10px auto;
    padding: 30px;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.marginTop {
    margin-top: 90px;
}

@media (max-width: 640px) {
    .marginTop {
        margin-top: 180px;
    }
}

.text {
    position: relative;
    text-align: left !important;
    z-index: 1;
    max-width: 800px;
    margin: 10px auto;
    padding: 30px;
    background: rgba(17, 17, 17, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

h1 {
    color: #ffffff;
    font-weight: 700;
}



p {
    font-size: 1em;
    line-height: 1.8;
    font-weight: 400;
}

.hbox {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.image-section {
    margin-left: 20px;
    align-items: end;
}

.portrait {
    max-width: 300px;
    height: auto;
}

.patch {
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

.left {
    text-align: left !important;
}

@media (max-width: 640px) {
    .hbox {
        flex-direction: column;
        align-items: flex-start;
    }

    .portrait {
        max-width: 100%;
    }
}

a,
a:visited {
    color: #916f4d;
}

a:hover {
    color: #f3bb76;
}

.box-img {
    max-width: 800px;
    height: auto;
    width: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.8);
    padding: 15px 0;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.navbar li {
    display: inline;
}

.navbar a {
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    padding: 5px 15px;
}

.navbar a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 40px;
    }
    .navbar li {
        display: block;
        margin: 5px 0;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.9);
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9em;
    display: none;
}

.scroll-to-top:hover {
    background: rgba(145, 111, 77, 0.9);
    border-color: #f3bb76;
}
