/* Z-PATTERN LAYOUT */

/* Container Utama */
/* .main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
} */

/* Pengaturan Baris */
.row-zl-layout {
    display: flex;
    align-items: center;
    /* Agar konten rata tengah secara vertikal */
    gap: 40px;
    /* Jarak antara kotak gambar dan teks */
    margin-top: 20px;
    margin-bottom: 20px;
}

.row-zr-layout {
    display: flex;
    align-items: center;
    /* Agar konten rata tengah secara vertikal */
    gap: 40px;
    /* Jarak antara kotak gambar dan teks */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Styling Kotak Gambar (Placeholder) */
.image-box-zl-layout {
    flex: 1;
    /* Ukuran fleksibel */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.image-box-zr-layout {
    flex: 1;
    /* Ukuran fleksibel */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

/* Styling Kotak Teks */
.text-zl-layout {
    flex: 1;
    text-align: left;
}

/* Styling Kotak Teks */
.text-zr-layout {
    flex: 1;
    text-align: right;
}


/* BUTTONS */

a.button {
    color: #ffffff;
    background-color: #dc7891;
    font-size: 19px;
    border: 3px solid #4E1E1B;
    border-radius: 30px;
    padding: 15px 50px;
    letter-spacing: 0px;
    cursor: pointer;
    display: block;
    /* Memungkinkan pengaturan lebar dan margin */
    width: fit-content;
    /* Lebar akan mengikuti panjang teks */
    min-width: 200px;
    /* Opsional: lebar minimal agar tidak terlalu kecil */
    margin: 0 auto;
    /* Memberikan jarak otomatis di kiri & kanan agar ke tengah */
    margin-bottom: 20px;
}

a.button:hover {
    color: #ffffff;
    background-color: #dc7891;
}

/* FOR MY-GAMES PAGE*/

/* Container utama untuk membatasi lebar halaman */
/* .main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
} */

/* Gunakan koma jika ingin mengatur dua class sekaligus */
.image-grid {
    display: grid !important;
    /* MEMAKSA 2 KOLOM: masing-masing lebarnya 1fr (seimbang) */
    grid-template-columns: 1fr 1fr !important;
    /* Batasi lebar total agar tidak melebar ke pinggir layar */
    max-width: 100%;
    /* Agar posisi seluruh grid ada di tengah halaman */
    margin: 20px auto !important;
    gap: 15px;
    justify-items: center;
}


.image-grid2 {
    display: flex !important;
    /* Paksa jadi flexbox */
    flex-direction: row;
    /* Pastikan arahnya ke samping */
    justify-content: center;
    /* Taruh di tengah */
    align-items: flex-end;
    /* Rata bawah */
    gap: 15px;
    /* Jarak antar gambar */
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Agar jika layar kecil, gambar turun ke bawah (tidak overflow) */
}

/* Mengatur ukuran gambar di dalam container tersebut */
.image-grid img {
    width: auto;
    /* Gambar akan mengikuti lebar kolom grid */
    max-width: 100%;
    /* Ukuran maksimal gambar agar tidak pecah */
    height: auto;
    object-fit: contain;
    cursor: pointer;
}


.image-grid2 img {
    width: 200px;
    max-width: 100%;
    /* Ubah angka ini untuk mengatur besar kecilnya gambar */
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

.spacer-text {
    margin: 40px 0;
    text-align: center;
    font-style: italic;
}

/* FOR MY-VIDEOS PAGES */

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Creates 3 columns of equal width */
    gap: 20px;
    /* Adds space between the video items */
    max-width: 1200px;
    /* Optional: Sets a max width for the gallery */
    margin: 2rem auto;
    /* Optional: Centers the gallery on the page */
}

.video-item iframe {
    width: 100%;
    /* Ensures the video takes the full width of its container */
    aspect-ratio: 16 / 9;
    /* Maintains a consistent 16:9 aspect ratio for videos */
    height: auto;
    /* Adjusts height automatically */
    display: block;
    /* Removes any default inline margins */
}

/* FOR MY-DRAWINGS PAGE */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.image-container {
    position: relative;
    width: 200px;
    height: 150px;
    /* Give it a specific height */
    margin: 100px auto;
    /* Adds space so it doesn't overlap text */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.7s;
    margin-bottom: 200px;
}

.image-container span {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    /* Keep the transformation */
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
    /* Reduced Z slightly to fit better on screens */
}

.image-container span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures images don't stretch */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Button Adjustments */
.btn-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    /* Give buttons their own space */
    margin-top: 50px;
}

.btn {
    position: absolute;
    top: 0;
    /* Changed from bottom -80px to keep it inside the wrapper */
    background: rgba(25, 111, 186, 0.8);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.5);
}

#prev {
    left: 20%;
}

#next {
    right: 20%;
}

.image-container2 {
    position: relative;
    width: 200px;
    height: 150px;
    /* Give it a specific height */
    margin: 100px auto;
    /* Adds space so it doesn't overlap text */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.7s;
    margin-bottom: 400px;
    display: flex;
}

.image-container2 span {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    /* Keep the transformation */
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
    /* Reduced Z slightly to fit better on screens */
}

.image-container2 span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures images don't stretch */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    position: relative;
}

/* Button Adjustments */
.btn-wrapper2 {
    position: relative;
    width: 100%;
    height: 50px;
    /* Give buttons their own space */
    margin-top: 50px;
}

.btn2 {
    position: absolute;
    top: 0;
    /* Changed from bottom -80px to keep it inside the wrapper */
    background: rgba(25, 111, 186, 0.8);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn2:hover {
    filter: brightness(1.5);
}

#prev2 {
    left: 20%;
}

#next2 {
    right: 20%;
}

.image-container3 {
    position: relative;
    width: 200px;
    height: 150px;
    /* Give it a specific height */
    margin: 100px auto;
    /* Adds space so it doesn't overlap text */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.7s;
    margin-bottom: 200px;
    display: flex;
}

.image-container3 span {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    /* Keep the transformation */
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
    /* Reduced Z slightly to fit better on screens */
}

.image-container3 span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures images don't stretch */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    position: relative;
}

/* Button Adjustments */
.btn-wrapper3 {
    position: relative;
    width: 100%;
    height: 50px;
    /* Give buttons their own space */
    margin-top: 50px;
}

.btn3 {
    position: absolute;
    top: 0;
    /* Changed from bottom -80px to keep it inside the wrapper */
    background: rgba(25, 111, 186, 0.8);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn3:hover {
    filter: brightness(1.5);
}

#prev3 {
    left: 20%;
}

#next3 {
    right: 20%;
}

.image-container4 {
    position: relative;
    width: 200px;
    height: 50px;
    /* Give it a specific height */
    margin: 100px auto;
    /* Adds space so it doesn't overlap text */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.7s;
    margin-bottom: 200px;
    display: flex;
}

.image-container4 span {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    /* Keep the transformation */
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
    /* Reduced Z slightly to fit better on screens */
}

.image-container4 span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures images don't stretch */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    position: relative;
}

/* Button Adjustments */
.btn-wrapper4 {
    position: relative;
    width: 100%;
    height: 50px;
    /* Give buttons their own space */
    margin-top: 50px;
}

.btn4 {
    position: absolute;
    top: 0;
    /* Changed from bottom -80px to keep it inside the wrapper */
    background: rgba(25, 111, 186, 0.8);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn4:hover {
    filter: brightness(1.5);
}

#prev4 {
    left: 20%;
}

#next4 {
    right: 20%;
}

/* POEM */

.poem-container {
    width: 80%;
    /* Control the width of the poem on the page */
    margin: 0 auto;
    /* Center the container itself */
    line-height: 1.5em;
    /* Increase space between lines for readability */
    text-align: left;
    /* Align the poem text to the left */
}

.verse {
    margin-bottom: 20px;
    /* Add space between stanzas */
    padding-left: 20px;
    /* Optional indentation for stanzas */
}

/* WEBSITE */

:root {
    --header-bg: url('images/header.png');
    --accent-color: #DC7891;
    --link-color: #DC7891;
    --bg-color: #EFC9BE;
    --bg-color2: #865A54;
    --text-color: #4E1E1B;
    --favorite-color: #FFE5E3;
    /* you can change the stripe colors easily from here */
    --stripe-color: #EFC9BE;
    --stripe-color2: #DFAD9F;
}
/* you can get hex codes from sites like this:
   https://palettes.shecodes.io/
   i just looked up "css color templates" to find that link! */

/* this applies to all the content */
* {
    color: var(--text-color);
/* change the font here, it's set up to all use the same one */
    font-family: monospace;
    border-radius: 1em;
}
/* this is for when you select text on the page */
::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

body {
    background-color: var(--bg-color2);
    margin: 0;
}

/* i think having better line spacing helps text to be more readable, but you can remove it if you want */
p {
    line-height: 1.5em;
    margin-bottom: 20px;
}

header {
    background-color: var(--accent-color);
/* you can add the image url in :root (at the top) if you want */
    background: var(--header-bg);
    background-size: 100%;
    background-position: center;
/* change the minimum height if you want it to take up more/less space */
    min-height: 200px;
/* can also limit the size of the header if you don't want to fill up the top. i recommend at least 800px tho! */
    /*max-width: 980px;*/
    margin: 0 auto;
    border-top: 4px solid var(--text-color);
    border-bottom: 4px solid var(--text-color);
/* i have a default border-radius set, but i didn't want rounded corners on this element */
    border-radius: 0;
}

/* this is your site title displayed at the top of the page */
header > h1 {
    margin: 20px auto;
    border-radius: .3em;
    max-width: 900px;
    padding: 12px;
    font-size: 4em;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    text-shadow: var(--bg-color2) 1px 1px 3px;
}

nav {
    padding: 1em;
    margin: 1em;
    font-weight: bold;
}

nav > ul {
    max-width: 960px;
    margin: auto;
    line-height: 3rem;
/* this line takes away the dot in front of the list items */
    list-style-type: none;
/* list items have default padding but we don't need it for these */
    padding-left: 0;
/* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
}
nav li {
    text-align: center;
}
nav li > a {
    background-color: var(--favorite-color);
    box-shadow: var(--accent-color) 4px 4px;
    padding: .5em 3em;
/* this takes away the link underline */
    text-decoration: none;
}
nav li > a:hover {
    box-shadow: var(--text-color) 4px 4px;
}

a {
    color: var(--link-color);
    border-radius: .3em;
    text-shadow: var(--bg-color) 1px 1px 2px;
    font-weight: bold;
    transition: background-color 400ms ease-out;
}
a:visited {
    color: var(--text-color);
}
a:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* you can change this to anything you want :) */
ul { list-style-type: "❤︎ "; line-height: 1.5em; margin-bottom: 20px;}

#sidebar {
    /* made the stripe bg with a generator:
    https://stripesgenerator.com/
     */
    background-image: linear-gradient(45deg, var(--stripe-color) 25%, var(--stripe-color2) 25%, var(--stripe-color2) 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, var(--stripe-color2) 75%, var(--stripe-color2) 100%);
    background-size: 65.05px 65.05px;
    min-width: 220px;
    margin: 1em;
    padding: 1em;
    border: 2px solid var(--text-color);
    box-shadow: var(--accent-color) 4px 4px;
}

#avatar {
    margin: .5em auto;
    box-shadow: var(--accent-color) 4px 4px;
/* image size is 160px so i made its container a little bigger to fit the borders */
    max-width: 164px;
    max-height: 164px;
    border-radius: 1.5em;
}
#avatar img {
    background: var(--lighter-color);
    max-width: 160px;
    border: 2px solid var(--text-color);
    border-radius: 1.5em;
}

#bio {
    margin: 1em;
    background: var(--favorite-color);
    border: 2px solid var(--text-color);
    box-shadow: var(--accent-color) 4px 4px;
    text-shadow: var(--bg-color2) 0 0 2px;
}
#bio p { margin: 1em; }

#content {
    display: flex;
    max-width: 960px;
    margin: auto;
}

main {
    background-color: var(--favorite-color);
    padding: 1em 2em;
    margin: 1em;
    border: 2px solid var(--text-color);
    box-shadow: var(--accent-color) 4px 4px;
    text-shadow: var(--bg-color2) 1px 1px 3px;
}

main > h1,
main > h2,
main > h3 {
    background-color: var(--bg-color);
    border-radius: .4em;
    padding: .2em .5em;
    text-shadow: var(--bg-color2) 1px 1px 3px;
}

/* a class for centering text and images */
.center {margin: auto; width: 300px; height: auto;}

footer {
    background-color: var(--bg-color);
    text-shadow: var(--bg-color2) 1px 1px 3px;
    text-align: center;
    font-size: small;
    padding: 1em;
    margin: 1em auto;
    max-width: 960px;
}

/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    /* #content {
        flex-wrap: wrap;
    } */

    /* 1. Make the layout stack vertically */
    #content {
        display: flex;
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        border: none;
    }

    header {
        min-height: 160px;
    }

    header>h1 {
        font-size: 3em;
        margin: .4em;
    }

    nav>ul {
        /* this stuff makes it wrap around on mobile */
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    #avatar {
        margin: 0 1em;
    }

    #bio {
        width: 50%;
    }

    main {
        margin: 0 1em;
    }

    #sidebar ul {
        margin: 0 1em;
        display: flex;
        flex-wrap: wrap;
        line-height: 2em;
    }

    #sidebar li {
        padding-left: 0;
        margin: .3em 1em;
    }

    footer {
        margin: 1em;
    }
}