/* ----------------------- BASIC ELEMENTS ----------------------- */

div {
    display: block;
    unicode-bidi: isolate;
}

body {
    background-image: url('heart.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
    color: black;
}

h1 {
    font-size: 25px;
}

ul {
    display: block;
    list-style-type: disc;
    margin: 1em 0;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

aside ul {
    color: white;
}

aside p {
    color: black;
}

footer {
    background-color: black;
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
}

:root {
    --header-image: url(banner.png);
    --body-bg-image: url(bg.jpg);
}

/* ----------------------- HEADER ----------------------- */

#header {
    width: 100%;
    height: 90px;
    background-image: url("redflower.jpg");
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.headerpic {
    height: 100px;
    width: auto;
}

/* ----------------------- NAVBAR ----------------------- */

#navbar {
    height: 40px;
    background: white;
    width: 100%;
    display: flex;
    align-items: center;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0 auto;
    list-style-type: none;
    justify-content: center;
    align-items: center;
    gap: 200px;
}

#navbar li a {
    color: black;
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: red;
    text-decoration: underline;
}

/* ----------------------- DECORATIVE IMAGE ----------------------- */

.image {
    background: url("https://myspace.windows93.net/u/83667/avatar.jpg") no-repeat;
    background-size: 100% !important;
    position: fixed;
    right: 0;
    bottom: -40px;
    height: 260px;
    width: 300px;
    z-index: 2000;
    opacity: 1;
}

@media (max-width: 600px) {
    .image { display: none; }
}

/* ----------------------- WINDOWS 7 BOXES ----------------------- */

.box,
.boxg {
    border: 2px solid #808080;
    padding: 10px;
    background-color: #dcdcdc;
    box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #000;
}

.box {
    width: 100%;
    max-width: 220px;
}

.boxg {
    width: fit-content;
}

.boxg img,
.welcome-img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* ----------------------- LAYOUT ----------------------- */

#container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    padding: 0 15px;
    box-sizing: border-box;
    margin-top: 20px;
}

#container a {
    color: #97205c;
    font-weight: bold;
}

#flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 20px auto;
    max-width: 1300px;
}

#leftSidebar {
    width: 250px;
    margin-right: 20px;
}

#leftSidebar p,
#leftSidebar li,
#leftSidebar a {
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: bold;
    color: black;
}

#leftSidebar a {
    text-decoration: underline;
}

#leftSidebar img {
    display: block;
    margin: 0 auto;
}

main {
    flex: 1;
}

/* ----------------------- RESPONSIVE ----------------------- */

@media only screen and (max-width: 800px) {
    #flex {
        flex-direction: column;
        flex-wrap: wrap;
    }
    #leftSidebar {
        width: 100%;
        margin-right: 0;
    }
}

/* ----------------------- VHS SCANLINES ----------------------- */

body::before {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    z-index: 2;
    background-size: 100% 2px;
    pointer-events: none;
}

/* ----------------------- BUTTONS PAGE ----------------------- */

#buttons .section {
    background-color: #dcdcdc;
    border: 2px solid #808080;
    padding: 12px;
    margin: 20px auto;
    width: 90%;
    max-width: 500px;
    box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #000;
}

#buttons .section h2 {
    font-family: "Courier New", monospace;
    font-size: 18px;
    margin-bottom: 10px;
    color: black;
    text-decoration: underline;
    text-align: center;
}

#buttons .button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#buttons .button-link {
    display: inline-block;
    border: 2px solid #999;
    padding: 5px;
    background-color: #efefef;
    transition: 0.3s ease-in-out;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
}

#buttons .button-link:hover {
    background-color: #c0c0c0;
    transform: scale(1.05);
}

#buttons .button-link img {
    width: 150px;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ----------------------- INTRO BOX ----------------------- */

#introSection {
    height: 290px;
    width: 400px;
    border: 2px solid #808080;
    padding: 5px;
    background-color: #dcdcdc;
    box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #000;
}

#introSection h1 {
    color: #333;
    font-size: 28px;
}

#introSection p {
    color: #222;
    font-size: 18px;
    line-height: 1.5;
    font-family: "Trebuchet MS", sans-serif;
}

/* ----------------------- BLOG ----------------------- */

#blog-entries {
    width: 100%;
    margin-top: 12px;
}

.blog-entry {
    display: none;
    margin: 0 auto 18px;
    max-width: 740px;
    text-align: left;
}

.blog-entry.active {
    display: block;
}

.nav-btn {
    background: #efefef;
    border: 2px solid #999;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
}

.nav-btn:active {
    transform: translateY(1px);
}

@media (max-width: 700px) {
    #blog-controls {
        flex-direction: column;
        gap: 6px;
        padding: 8px;
    }
    .nav-btn {
        width: 100%;
    }
}

/* ----------------------- ALBUM / BOOK ----------------------- */

#album {
    width: 400px;
    height: 400px;
    padding: 10px;
    margin: 40px auto;

    /* Windows 7 box style */
    background-color: #dcdcdc;
    border: 2px solid #808080;
    box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #000;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}


#page-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.page {
    display: none;
    position: relative;
    width: 100%;
    padding: 20px;
    font-family: "Times New Roman", serif;
    font-size: 16px;
    color: black;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page.active {
    display: block;
}

.controls {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.controls button {
    background-color: #dcdcdc;
    border: 2px outset #999;
    font-size: 14px;
    padding: 6px 14px;
    cursor: pointer;
}

.controls button:hover {
    background-color: #f0f0f0;
}

/* ----------------------- AUDIO BUTTONS ----------------------- */

#playBtn,
#playPauseBtn {
    background-color: #dcdcdc;
    border: 2px outset #999;
    font-size: 14px;
    padding: 6px 14px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
}

#playBtn:hover,
#playPauseBtn:hover {
    background-color: #f0f0f0;
}

#volumeControl {
    width: 200px;
    display: block;
    margin: 10px auto;
}
