/* Fonts */
@font-face {
    font-family: 'Fixedsys';
    src: url('fonts/FSEX300.ttf');
}
@font-face {
    font-family: 'Glamour';
    src: url('fonts/Glamour.ttf');
}
@font-face {
    font-family: 'Hillside';
    src: url('fonts/HillsideCalligraphy_PERSONAL_USE_ONLY.otf');
}
@font-face {
    font-family: 'Milton';
    src: url('fonts/Milton_One.otf') format('opentype');
}
@font-face {
    font-family: 'coolvetica';
    src: url('fonts/Coolvetica\ Rg.otf') format('opentype');
}

/*hide scroll bar*/
html, body {
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
}
body::-webkit-scrollbar {
  display: none;
}

/* Body & Background */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    
    /* Desktop Default */
    background-image: url('media/beksnski.jpg');
    background-position: center top;
    background-repeat: repeat-y; /* Allows vertical tiling if content is long */
    background-size: cover;      /* Fills screen on wide monitors */
}

/* Mobile/Thin Screen Optimization */
@media (max-width: 768px) {
    body {
        /* Forces the image to be exactly as wide as the screen (no side cropping) */
        /* 'auto' height maintains the original image proportions */
        background-size: 100% auto; 
        
        /* Ensures the tiling starts from the very top */
        background-position: top center;
        
        /* Keeps the image repeating as long as the page goes */
        background-repeat: repeat-y;
    }
}

/* Fix for the Studs banner to prevent side-scrolling issues */
.studs {
    display: block; /* Ensures it's treated as a full-width container */
    width: 100%; 
    height: 9vh;
    background: url('media/studs.png') repeat-x;
    background-size: auto 100%;
    position: relative; 
    z-index: 1;
}

/* Title */
.TitleMessages {
    overflow-x: hidden;
}
.titleText {
    text-align: center;
    transform: scale(2.5,1);
    line-clamp: (2rem, 6vw, 5rem);
}
.large-text {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: bold;
    line-height: 0.9;
    margin: 0.5rem 0;
}
.lovelysweetdreams {
    font-family: 'Milton', sans-serif;
    font-size: clamp(2rem, 8vw, 8rem);
    line-height: 1.1;
    margin: 0.5rem 0;
    padding-top: 3vh;   
    padding-bottom: 3vh; 
    font-weight: 300;
}
.binary {
  font-size: clamp(0.35rem, 0.6vw, 0.6rem);
  color: rgb(119, 119, 119);
}

/* Buttons */
.mainmenu {
  z-index: 2;
    display: flex;
    flex-wrap: wrap;        
    justify-content: center; 
    gap: 12px;              
    padding: 1.5rem;
    width: 98%;             /* Use almost the full screen width */
    margin: 0 auto;         
    box-sizing: border-box;
}

.nav-btn {
    z-index: 2;
    /* MAGIC CHANGE: 
       0 1 auto = Don't grow by default, only shrink if needed.
       This keeps them on one line as long as there is physical space. */
    flex: 0 1 auto;         
    
    /* Ensure they have a nice minimum size so text doesn't overlap */
    min-width: 140px;       
    
    /* Allow them to grow slightly if there's a tiny bit of extra space */
    flex-grow: 1;           

    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgb(204, 204, 204), rgb(119, 119, 119));
    color: rgb(96, 99, 80);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    font-size: 0.85rem;     /* Slightly smaller font helps them fit on one line */
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: nowrap;    /* Prevents the text inside from wrapping to 2 lines */
}
/*nav buttons on mobile*/
@media (max-width: 600px) {
  .mainmenu {
    z-index: 2;
    display: grid;
    /* This creates 2 equal columns. Use '1fr 1fr 1fr' for 3 columns */
    grid-template-columns: 1fr 1fr; 
    gap: 10px;      /* Space between buttons */
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    justify-items: center;
  }

  /* 2. Fix the button margins so they don't overlap or push the grid out */
  .nav-btn {
    z-index: 2;
    margin: 0;       /* Remove that huge 2.5rem margin for mobile */
    padding: 0.4rem 0.35rem; 
    font-size: 0.6rem; /* Smaller text so it fits in the columns */
    width: 90%;     /* Make buttons fill their grid slot */
    transform: scale(1.12,1);
  }

  .menu {
    width: 90%;
  }
}

.nav-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(0, 0, 0, 0.6);
}

.nav-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.menu {
    position: relative;
    display: none;         /* none to hide it for now, flex to reveal */
    flex: 1 1 auto;        /* Allows it to grow/shrink with the rest of the row */
    min-width: 140px;      /* Matches your regular buttons */
}

/* Ensure the main button inside the dropdown fills the whole container */
#menuBtn {
    width: 100%;
    margin: 0;
}

.submenu {
    display: none;         /* Hidden by default */
    position: absolute;
    top: 100%;             /* Appears directly below the button */
    left: 0;
    width: 100%;           /* Matches the width of the 'GAMES' button */
    flex-direction: column;
    gap: 5px;              /* Small gap between the sub-buttons */
    padding-top: 10px;     /* Gap between the main button and the list */
    z-index: 100;
}

/* Show the submenu when the 'show' class is added via JS */
.menu.show .submenu {
    display: flex;
}

/* Style for the buttons inside the submenu */
.submenu .nav-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgb(204, 204, 204), rgb(119, 119, 119));
    color: rgb(96, 99, 80);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    font-size: 0.85rem;     /* Slightly smaller font helps them fit on one line */
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: nowrap; 
    width: 100%;
}

#twitteradmin {
  display: none;
}
.technologo {
    position: s;
    z-index: 1;
    width:70vw; 
    height:30vh;
    transform: scale(1,2.4); 
    margin: 1rem auto;
    display: block;  
}
@media (max-width: 600px) {
  .technologo {
    margin: -2rem auto;
  }
}
/* Main layout */

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(168, 168, 161, 0.863);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    align-self: flex-start;
    height: auto;
    position: sticky;
    top: 2rem;
}

.sidebar img {
  width: 100%;
  border: 3px solid rgb(255, 255, 255,0.7);
}

.sidebar h2 {
  margin-top: 1rem;
  text-align: center;
}

.dominn1o {
  font-family: 'coolvetica';
  transform: scale(1.24,1);
  font-weight: 500;
  letter-spacing: 0.2rem;
  color: #f0f0f0;
}
.dream {
  font-style: italic;
  text-align: center;
  margin: 2rem 0;
  color: rgb(255, 35, 35);
  display: block;
  margin-bottom: 0.8rem;
  line-height: 1.4;

}
.dream b {
  display: block;
  margin: 0rem 0;
}

/*dreams sidebar*/
.layered-text-container {
    position: relative; /* Anchor for the absolute kanji */
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    line-height: 1.6;
}
.kanji-bg {
    position: absolute;
    top: 1.3rem;
    left: 0;
    width: 90%;
    z-index: 1;
    
    /* The semi-transparent effect */
    color: rgba(255, 152, 241, 0.932);
    font-size: 1.2rem; 
    font-family: "Sawarabi Mincho", serif; 
    
    pointer-events: none; 
    user-select: none;
}
.english-top {
    position: relative;
    z-index: 2; 
    color: #ebebeb;
    font-size: 1.14rem;
    font-family: 'Segoe UI', sans-serif;
    
    /* Adds a slight glow to the English to keep it sharp over the Kanji */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
}

.about ul {
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
}

.links a {
  color: #77bde6;
  text-decoration: none;
  text-align: center;
}

.links a:hover {
  text-decoration: underline;
}


.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem;
}
.left, .right {
    flex: 1 1 300px;
}

/* Image over text */
.image-container img {
    text-align: center;
    position: relative;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 1rem 0;
    margin-left: 35px;
}

/* Videos & Images */
.technomusic {
    border-radius: 4.2%;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 1rem 0;
}
.technomusicDiv {
        text-align: center;
}
.stickynote {
  max-width: 100%;
  height: auto;
}

.musicIpod {
  position: relative;
  max-width: 300px;      /* controls overall size */
  margin: 0 auto;        /* center on screen */
  text-align: center;
}

.musicIpod img {
  width: 100%;           /* iPod always scales with .musicIpod */
  transform: scale(1,1.55);
  display: block;
}

.songs {
  position: absolute;
  top: -27%;              /* adjust to line up with iPod screen */
  left: -0.1%;             /* adjust to line up with iPod screen */
  width: 71.5%;            /* % width of iPod screen area */
  height: 156%;           /* % height of iPod screen area */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.one, .two, .three {
  font-size: larger;
}
.player-container {
  width: 100%;           /* fills the "screen" */
  border: 2px solid black;
  background: rgba(255,255,255,0.9); /* light background for contrast */
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}

.player-time-current, .player-time-duration {
  font-size: larger;
}
.ipodMsg {
  position: relative;
  top: -8%;
  font-size: larger;
}

/* Wallpaper */
.phone-split {
    max-width: 100%;
    height: auto;
    text-align: right;
}
.phone-splitInv {
    max-width: 100%;
    height: auto;
    text-align: right;
}

.phones {
  position: relative;   /* establish positioning context */
  max-width: 100%;         /* container width */
  height: auto;        /* container height */
}

.phone-splitInv {
  object-fit: cover;    /* optional, keeps aspect ratio */
}

.phone-split {
  position: absolute;   /* position relative to container */
  top: 0%;            /* distance from top */
  left: 0%;           /* distance from left */
  width: 100%;         /* size of overlay */
  height: auto;
}

.bottom-bar {
  margin-top: auto;        /* pushes it to the bottom */
  height: 10vh;
  background-color: rgba(55,55,55,0.7);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.Instagram, .Tiktok, .Facebook {
    border-radius: 50%;
    height: 8vh;
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .eternalpeace {
        font-size: clamp(1.5rem, 10vw, 3rem);
    }
}


