/* Body */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* background-color: rgb(48, 31, 0); */
    background-color: rgb(255, 228, 138);
    color: rgb(48, 31, 0);
    margin: 0;
    padding: 0;
    height: 1700px;
}

/* menu */
.menu {
    display: grid;
    grid-template-columns: auto auto;
    padding-top: 15px;
    font-size: 20px;
}

.menu_left {
    display: flex;
}

.menu_button {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 5px;
    color:  rgb(48, 31, 0);
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.menu_button::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 0;
    height: 4px;
    background-color:  rgb(48, 31, 0);
    transition: width 0.3s ease-out;
}

.menu_button:hover {
    font-size: 22px;
}

.menu_button:hover::after {
    width: 100%;
}

.menu_right {
    display: flex;
    padding-left: 30%;
    justify-content: space-evenly;
}

.back_button {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin-left: 5%;
    color:  rgb(48, 31, 0);
    text-decoration: none;
    font-size: 25px;
    left: 0;
    transition: left 0.3s ease-out;
}

#m-b-1 {
    margin-left: 10%;
}

.back_button_img {
    margin-top: 30px;
    height: 40px;
    width: auto;
}

.back_button:hover {
    left: -7px;
}

/* content header */
.header {
    margin-top: 140px;
    margin-left: 200px;
}

.header_name {
    font-size: 100px;
    font-family:'Times New Roman', Times, serif;
}

.header_content {
    padding-top: 35px;
    padding-left: 10px;
    margin-right: 320px;
    font-size: 21px;
}

/* Dash */
.dash-container {
    margin-top: 250px;
    width: 100%;
    height: 5px;
    place-items: center;
}
  
.dash {
    width: 1200px;
    border: 2px solid  rgb(48, 31, 0);
}

/* Content */
.content {
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pic_content {
    width: 1400px;
    margin: 0 auto;
    gap: 5px;
}

.pic {
    display: block;
    height: auto;
    object-fit: cover;
    background-color: #f1f1f1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pic.loaded {
    opacity: 1;
    transform: translateY(0);
    background-color: transparent;
}

/* pile of clothes */
#pile_of_clothes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

#pile_of_clothes .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* candle */
#candle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

#candle .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* hand */
#hand {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

#hand .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* working_1 */
#working_1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

#working_1 .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* working_2 */
#working_2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

#working_2 .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* break */
#break {
    display: flex;
    gap: 5px;
    height: auto;
    width: 1400px; /* Match container width exactly */
}

/* First layer */
.b-1l-1 {
    width: 600px; /* Keeping exact width */
    height: auto;
    flex-shrink: 0; /* Prevent shrinking */
}

#p-13 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-1l-2 {
    width: 795px; /* Slightly reduced to account for gap (800px - 5px) */
    height: auto;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Second layer */
.b-2l-1 {
    height: auto;
    width: 100%;
    margin-bottom: 5px;
}

#p-14 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fixed b-2l-2 to prevent overflow */
.b-2l-2 {
    display: flex;
    gap: 5px;
    height: 365px;
    width: auto;
}

/* closing_door, sleep */
#closing_door {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

#closing_door .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sleep .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* back button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#up_button_img {
    width: 60px;
    height: 60px;
}

#backToTopBtn:hover {
    background-color: rgb(185, 185, 185);
}