/*styles */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/*----------------sidebar---------------------------*/
sidebar {
    width: 15%;
    height: 100vh;
    background-color: #984242;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    gap: 50px;
    padding: 0;
}

.logo {
    width: 100%;
}

nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.button {
    width: 90%;
    background-color: #b97b7b;
    border: none;
    color: white;
    font-style: normal;
    border-radius: 5px;
    text-align: center;
    text-decoration-line: none;
    cursor: pointer;
    font-size: 1.5vw;
    border-radius: 5px;
    padding: 10px 0;
}

.button:hover {
    background-color: #d79090;
    transform: scale(1.2);
}

.button:active {
    background-color: #d79090;
    transform: scale(1.2);
    border: #fffefe;
}

/* nav a {
    color: white;
    text-decoration-line: none;
    font-size: 1.1em;
    font-style: normal;
}

nav a:hover {
    transform: scale(1.2);
}

nav a:active {
    text-decoration-line: underline;
} */

/*---------------main part-----------------*/
main {
    margin-left: 15%;
    flex-direction: column;
    padding-top: 30px;
    padding-left: 50px;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    background-image: url("https://jingwei.neocities.org/image/back.png");
    background-repeat: repeat;
}

.portrait {
    height: auto;
    width: 80%;
    max-width: 350px;
    border-radius: 5%;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: last baseline;
    max-width: 1024px;
}

.container-small {
    flex: 1 1 50%;
    text-align: center;
}

@media (max-width: 1024px) {
    .container-small {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.container-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    gap: 5px;
}

.box {
    padding: 20px;
    background-color: #fbf5ef;
    border-style: double;
    border-color: #984242;
}

@media (max-width: 1024px) {
    .container-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 724px) {
    .container-box {
        grid-template-columns: 1fr;
    }
}

.hover-link {
    position: relative;
    display: inline-block;
}

.popup-image {
    position: absolute;
    width: 600px;
    display: none;
    border: 1px
}

.hover-link:hover .popup-image {
    display: block;
}

h1 {
    font-size: 80px;
    font-family: cursive;
    color: #984242;
}

h2 {
    font-size: 46px;
    text-align: center;
}

h3 {
    font-size: 26px;
    text-align: center;
}

p {
    font-size: 18px;
    line-height: 1.5em;
    margin-bottom: 40px;
}

a {
    color: #b04c4c;
    text-transform: capitalize;
    font-style: italic;
    font-weight: 500;
}

ul input:checked {
    accent-color: #c13039;
}

ul:has(input:checked) {
    border: 2px solid #c13039;
    transform: scale(1.1);
}

span.dropcap {
    font-size: 38px;
    font-weight: bold;
    color: #984242;
}

/*-------------gallery-------------*/
.gallery {
    display: grid;
    gap: 5px;
    align-items: center;
    background-color: rgb(212, 116, 97);
    padding: 10px;
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 724px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

/*-------------table--------------*/
.table-container {
    width: 100%;
}

table {
    border-collapse: collapse;
    font-size: 12px;
    border: 2px solid #892901;
    background-color: #fbf5ef;
}

th,
td {
    border: 1px solid rgb(49, 0, 0);
    padding: 5px;
}

tr:first-child th {
    height: 60px;
}

td:first-child {
    font-weight: bold;
    width: 60px;
    text-align: center;
}

td:not(:first-child),
th:not(:first-child) {
    width: 160px;
    height: 50px;
}

td:not(:first-child):not(:empty) {
    background-color: #f7e9be;
}

@media (max-width: 724px) {
    .text {
        display: none;
    }
}