*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
}
html {
	height: 100%;
	font-size: 1vw;
    scroll-behavior: smooth;
}
body{
     background-color: var(--background-color);
}
h6{
    font-size: 15px;
    color: var(--text-color);
    font-family:Oldnewspapertype;
}
p{
    font-family: Fragment;
}

li{
    font-family: Junigarden;
}
i{
    font-weight: bold;
    color:var(--heading-text) ;
}
/* Roots */
:root{
    --heading-text:#155c15;
    --text-color: #341704;
    --background-color:#faebd7;
}

/* Fonts */

@font-face{
    font-family: Fragment; src:url(font/fragment_core/Fragmentcore.otf)
}
@font-face{
    font-family:Junigarden; src:url(font/junigarden_swash/JunigardenSerif_PERSONAL_USE_ONLY.otf)
}
@font-face{
    font-family:Amoria; src:url(font/amoria/AMORIA.otf)
}
@font-face{
    font-family:Kaoly; src:url(font/kaoly/Kaoly\ Demo-Regular.ttf)
}
@font-face{
    font-family:Magic; src:url(font/magic_retro/Magic\ Retro.ttf)
}
@font-face{
    font-family:Oldnewspapertype; src:url(font/oldnewspapertypes/OldNewspaperTypes.ttf)
}
@font-face{
    font-family:retroguard; src:url(font/retroguard/Retroguard.ttf)
}
@font-face{
    font-family:retrobeach; src:url(font/retro_beach/RetroBeach.otf)
}
/* Main Page */
.header{
    position: relative;
    margin:50px auto;
    width: 625px; 
    height: 350px;
    text-align: center;
}
.header h1{
    position: absolute; 
    top: 5%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    z-index: -1;
    text-align: center;
    font-size:150px;
    font-family:Magic;
    color:var(--text-color);
    white-space: nowrap;
}
.headerimg{
    width: 250px;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index:5;
    pointer-events: none;
}

.nav-image {
    position: absolute; 
    z-index: 10;
    cursor: pointer;  
}

.nav-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; 
}
.nav-image:hover img {
    transform: scale(1.1); 
    z-index: 20; 
}

.label {
    display: none; 
    position: absolute; 
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap; 
    font-size: 14px;
    z-index: 30; 
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%);
}

.nav-image:hover .label {
    display: block;
}

.nav-1 {
    width: 120px; 
    top: 210px;   
    right: 100px;
    z-index: 15;
    transform: rotate(-10deg); 
}
.nav-2{
    width: 230px; 
    top: 190px;
    left:40px;
    z-index: 15; 
}
.nav-3{
    width: 250px;
    top: 20px;
    z-index: 1;
}
.nav-4{
    width: 150px; 
    top: 250px;
    left:230px;
    z-index: 15;
}

.nav-5{
    width: 250px; 
    top: 60px;
    left:60px;
    z-index: 1;
}
.nav-6{
    width: 150px; 
    top: 250px;
    left:360px;
    z-index: 15;
}
.about-me{
    display: flex; 
    align-items: flex-start;
    height: auto;
    padding: 20px 0;
}
.home-intro{
    width:400px;
    height:400px;
}
.home-intro h2{
    font-size: 30px;
    font-family: Amoria;
    color: var(--text-color);
}
.home-img{
    text-align: center;
    margin-bottom: 10px;
}

.home-img p{
    font-family:Amoria;
    color: var(--text-color);
}
.intro-images img{
    display:block;
    align-items: right;
    width:120px;
    height:auto;
    object-fit: contain;
}

 /* Screen Container Styling. Linked to JS 
    DON'T TWEAK!
 */
.screen-container{
    display:block;
    padding-top: 20px;
    margin: auto;
    width: 625px;
    height:100vh;
}

/* Travel Page */
#holiday-vlogs{
    background-image: url(images/travel-background.jpg);
    height: 100vh;
    background-size: cover;
    background-position: center;
}
.package img{
    position: absolute;
}
.img1{
    width:170px;
    top:1px;
    left:280px;
    z-index:1;
}
.img2{
    width:600px;
    height:400px;
    top:110px;
    left:350px;
}
.img3{
    width:200px;
    bottom:70px;
    right:300px;
    z-index:1;
}
.img4{
    width:200px;
    bottom:50px;
    left:280px;
    z-index:1;
}
.img5{
    width:220px;
    top:20px;
    right:230px;
    z-index:1;
}
.explaination{
    position: absolute;
    max-width:550px;
    max-height:370px;
    top:140px;
    left:380px;
    padding:5px;
    z-index:0;
    text-align: center;
    overflow-y: auto;
}
.explaination h6{
    font-family: Magic;
    font-size: 70px;
    color:#3185cd;
}
.explaination p{
    font-size:20px;
    margin-bottom: 15px;
}
.explaination::-webkit-scrollbar{
     width: 8px;
     z-index:0;
}
.explaination::-webkit-scrollbar-track{
    background: transparent;
    border-radius: 10px;
}
.explaination::-webkit-scrollbar-thumb {
    background: #3185cd;
    border-radius: 10px;
}

/* Image carousel */
.carousel2{
    width:530px;
    height:200px;
    overflow: hidden;
    user-select: none;
}
.carousel2 ul{
   list-style: none;
   display: flex;
   flex-shrink: 0;
   min-width: 100%;
   justify-content: space-between;
   align-items: center;
   gap: 20px;
   padding:0;
   margin:0;
   animation: scroll 20s linear infinite;
}
.carousel2 img{
    display: flex;
    width: 150px;
    height: 120px;
    object-fit: contain;
    overflow: hidden;
}

 /* Diary  */
.imgheader{
    width:100%;
    height:auto;
    object-fit: contain;
}

.mini-menu{
    display: flex;
    z-index: 4;
    position: sticky;
    top: 0px; 
    background-color: var(--background-color);
    border-bottom: 1px dotted var(--text-color);
    border-right: 1px dotted var(--text-color);
}
.menu-left {
  display:flex;
  padding: 5px 0;
  width: 150px;
  border-left: 1px dotted var(--text-color);
  justify-content: space-between;
  align-items: center;
}
.menu-left a{
    font-family: Fragment;
    color:var(--text-color);
    text-align: center;
    text-decoration: none;
    padding: 0 5px;
}
.menu-left a:hover{
    color:var(--heading-text);
}
.menu-right {
  border-left: 1px dotted var(--text-color);
  color:var(--text-color);
  padding: 5px 0;
  width: 475px;
  text-align: right;
  justify-content: space-between;
}

.d-content{
    display: flex;
}
.d-content main{
    display:flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 5px;
    box-sizing: border-box;
    width: 475px;
    border-left: 1px dotted var(--text-color);
    
}
.d-content.diary-content{
    display: block;
}
.d-content nav{
    z-index: 2;
    position: sticky;
    top: 24px;
    height: min-content;
}
.d-content a{
    display:block;
    width:150px;
    height:min-content;
    padding:5px;
    text-align:center;
    border-bottom:1px dotted var(--text-color);
    border-left: 1px dotted var(--text-color);
    color:var(--text-color);
    font-family: fragment;
    text-decoration: none;
    overflow: visible;
    transition: 0.25s;
}
.d-content a:hover{
    background-color: var(--text-color);
    color: var(--background-color);
}
.d-content a:active{
    background-color: var(--text-color);
    color: var(--background-color);
    overflow: visible;
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
    text-decoration: none;
    min-width: 150px;
}
.d-content article{
    padding-top: 25px;
    padding-left: 5px;
    text-align: justify;
    padding-bottom: 10px;
    border-bottom: 1px dotted var(--text-color);
}
.date{
    display: block;
    margin-bottom: 10px;
    text-align: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color:var(--heading-text);
}
.diary-content p{
    margin: 14px 0 14px 0;
}
.diary-entry img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Book Recommendations*/
/* Carousel */
.momo3{
    max-height:300px;
    padding: 0;
    margin:0;
}
.momo-b{
    position:relative;
    height:200px;
    left:200px;
}
.bookj{
    position:relative;
    width:300px;
    right:200px;
    bottom:10px;
    z-index:-1;
}
.plane{
    position:relative;
    width:120px;
    left:300px;
    bottom:500px;
    z-index:1;
}
.bstack{
    position:relative;
    width:160px;
    left:320px;
    bottom:270px;
    z-index:1;
}
.penh{
    position:relative;
    width:160px;
    left:160px;
    bottom:400px;
    z-index:1;
}
.easel{
   position:relative;
   width:160px;
   right:450px;
   bottom:260px;
   z-index:-1;
}

















.currently{
    display: block;
    margin:20px;
    padding:10px;
    color:var(--background-color);
    justify-content:center;
    text-align:center;
    font-size: 20px;
}
.currently h4{
  font-family: Moonstar;
  font-size:20px;
}
.currently p{
  font-family:Fragment;
  font-size: 15px;
}
.home-link a{
    font-family: Fragment;
    text-decoration: none;
    color: var(--text-color);
}
.home-link a:hover{
    border-bottom: 1px dotted var(--text-color);
}
.title h1{
    text-align: center;
    margin:5px;
    padding: 10px;
    font-family: Kaoly;
    color:var(--text-color);
}
.carousel{
    font-size: 15px;
    padding-block: 8px;
    background-color: var(--text-color);
    overflow: hidden;
    user-select: none;
    display: flex;
    --gap: 20px;
    gap:var(--gap);
    margin: 10px;
}

.carousel ul{
   list-style: none;
   display: flex;
   flex-shrink: 0;
   min-width: 100%;
   justify-content: space-between;
   align-items: center;
   gap: 2rem;
   color: var(--background-color);
   animation: scroll 20s linear infinite;
}

.b-media{
    display:flex;
    gap:10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dotted var(--text-color);
    width: 625px;
}
/* Media HTML Page Styles*/
.momonav2{
    max-height:300px;

}

.momo-2{
    position: relative;
    top:20px;
    left:100px;
    width:400px;
    z-index:1;
    transition: transform 0.3s ease; 
}
.v2{
    position: relative;
    max-height:350px;
    width:350px;
    bottom:300px;
    left:330px;
    z-index:-1;
}
.ms{
    position:relative;
    width:200px;
    bottom:400px;
    right:350px;
    z-index:-1;
}
.boom{
    position:relative;
    width:140px;
    bottom:420px;
    left:50px;
    z-index:-1;
}
.indie{
    position:relative;
    width:150px;
    bottom:550px;
    left:100px;
    z-index:-1;
}
.nav2{
    display:flex;
    width:625px;
    text-align: center;
    justify-content: space-between;
    justify-items: center;
    align-items: center; 
    border-top: 1px dotted var(--text-color);
    border-left:1px dotted var(--text-color) ;
}
.nav2 a{
    width:311.5px;
    text-decoration: none;
    width: 100%;
    text-align: center;
    color:var(--text-color);
    list-style: none;
    border-right: 1px dotted var(--text-color);
   border-bottom: 1px dotted var(--text-color);
}
.nav2 a:hover{
    background-color: var(--text-color);
    color: var(--background-color);
}

.article{
    display: flex;
 }
.article main{
    display:flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 5px;
    box-sizing: border-box;
    width: 475px;
    border-top: 1px dotted var(--text-color);
    border-left: 1px dotted var(--text-color);
 }
.article nav{
    z-index: 2;
    position: sticky;
    height: min-content;
    border-top: 1px dotted var(--text-color);
}
.article a{
    display:block;
    width:156px;
    height:min-content;
    padding:5px;
    text-align: left;
    border-bottom: 1px dotted var(--text-color);
    color:var(--text-color);
    font-family: fragment;
    text-decoration: none;
    overflow: visible;
}
.article a:hover{
    background-color: var(--text-color);
    color: var(--background-color);
    transition: 0.25s;
}
.mini-headings a{
    padding:10px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    font-family: "Playfair Display", serif; 
    color:var(--text-color);
}
.mini-headings2 a{
    padding:5px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    font-family: "Playfair Display", serif; 
    color:var(--text-color);
}
.media{
    display:flex;
    gap:10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dotted var(--text-color);
    width: 475px;
}
.b-left img{
  display:block;
  width:100px;
  height:auto;
}
.stars{
    margin-top: 10px;
    font-size: 20px;
    text-align: center;
}
.censor{
    background-color: var(--text-color);
    color:var(--text-color);
}
.censor:hover{
    background-color: var(--background-color);
    color:var(--text-color);
    transition: 0.25s;
}
.atthemoment p{
    padding:10px;
    font-size:13px;
    font-style: italic;
    font-weight: bold;
    color:var(--heading-text);
    font-family:Fragment;
}

/*Read button */
.read-btn{
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    background-color: transparent;
    border: none;
    font-family: Fragment;
}
.mybox1 {
    display: none;
}


/* Music HTML Page Styles*/
.grid{
    display:grid;
    grid-template-rows:1fr 1fr 1fr;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
}
.resize-drag {
  width: 150px;
  height: 150px;
  border-radius: 2px;
  margin: 1rem;
  background-color: var(--text-color);
  color: var(--background-color);
  font-size: 20px;
  font-family: sans-serif;
  cursor:pointer;
}
.module-image{
  overflow: hidden;
  height:110px;
}
.module-image img{
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.modal-head{
    object-fit: cover;
    width: 100%;
    height: 100%;
    padding:10px;
    text-align: center;
    font-size: 12px;
}
.text-ani{
    font-family: Kaoly;
    display: inline-block;
    
}
.modal-head:hover{
    background-color: var(--background-color);
    color: var(--text-color);
    transition: 0.15s;
}
.text-ani:hover{
    animation: pulse 1s ease-in-out infinite;
}
/* --- NEW MODAL STYLES --- */
.modal {
    display: none;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: transparent;
}
.modal-head{
     font-family:Amoria;
}
.modal-content {
    background-color: var(--background-color);
    border: 2px dashed var(--text-color);
    padding: 20px;
    width: 80%; 
    max-width: 600px;
    border-radius: 10px;
    font-family: sans-serif;
    scroll-behavior: smooth;
}
.module-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.junigarden-text{
    font-size: 60px;
    font-family: Junigarden;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: cover; 
    background-position: center;
}
.close-button {
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--background-color);
    text-decoration: none;
    cursor: pointer;
}
.modal-content img{
    display: block;
    width: 100%;
    height:auto;
    object-fit: contain; 
}
.second-text{
    text-align: center;
    padding: 10px;
    margin:10px;
}
.second-text h6{
    font-family: Amoria;
    font-weight: 100px;
    font-size: 20px;
    color: var(--text-color);
}
.second-text p{
    font-size: 15px;
}
.wrap {
    border-bottom: 1px dashed var(--text-color);
    padding:10px;
    margin:10px;
    height:200px;
}

.wrap h6{
    font-family: Kaoly;
    font-weight: 50px;
    font-size: 20px;
    padding-bottom: 10px;
    color: var(--text-color);
}
.wrap img{
    width:200px;
    height:150px;
    padding:5px;
    object-fit: contain;
}
.wrap h6{
    text-align: center;
}
.wrap-1 img{
    float: left;
}
.wrap-2 img{
    float: right;
}


/* End Notes */
/* Footer for all pages */
.footer{
   height:50px;
   text-align: end;
}
/* Animation for book currently reading */
@keyframes scroll{
    to{
        transform: translateX(calc(-100% - 20px));
    }
}
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05); /* Slightly bigger */
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* Text Highlighting.*/
::selection{
    background-color: var(--text-color);
    color: var(--background-color);
}