
.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: #66edff; /* fallback */
}

.bg-layer {
  
    position: absolute;

    /* Oversize it in every direction */
    left: -410px;
    top: -408px;

    width: calc(100% + 820px);
    height: calc(100% + 816px);

    background-image: url("/assets/410408.jpg");
    background-repeat: repeat;
    background-size: 410px 408px;

    will-change: transform;
    transform: translate3d(0,0,0);

    animation: diagonal-scroll 47s linear infinite;
}

@keyframes diagonal-scroll {
    from {
        transform: translate3d(0,0,0);
    }
    to {
        transform: translate3d(-410px,-408px,0);
    }
}





  
/* Basics */

body {
margin: 0;
padding:10px;
display: flex;
justify-content: center;  /* horizontal center */
align-items: flex-start;      /* flex center */
min-height: 100vh;       
font-family: 'lato', calibri, sans-serif;
color: #666;
font-size: 9px;
letter-spacing: 1px;
text-shadow: 0px 0px 1px #bbb;
  
/* Links */

a:link,a:visited,a:active {
color: #222;
text-decoration: none;}

a:hover {
color: #888;}
  
  
/* Scrollbar */  

  
::-webkit-scrollbar-thumb {
background-color: #fff; 
border:1px solid #888;
border-radius: 3px;}
::-webkit-scrollbar {
width: 5px; height: 0px; 
background: transparent;}
  
  
/* Flex layout */

.container {
  
  margin-top: 75px;
  
display: flex;
flex-direction: column;
width: 730px; 
max-width: 100%;
background: #e6e6e6;
border-radius: 5px;
box-shadow: 0 12px 24px rgba(0,0,0,0.2), inset 0 -4px 10px rgba(255,255,255,0.5);
overflow: hidden;
border:1px solid #888;}
  
.layout {
display: flex;
gap: 5px;}
  
  
  
/* Top section */
.sitename {
width: 100%;
text-align: left;
font-family: 'doto', sans-serif; 
font-size: 20px;
line-height:30px;
letter-spacing: 5px;
color: #333;
padding: 8px 15px;
border-bottom: 2px solid #ccc;
text-shadow: 5px 5px 5px #fff;
background: linear-gradient(145deg, #dcdcdc, #fff);}  

  
  
/* Navigation Bar */
.navigation {
display: flex;
justify-content: center;
gap: 5px;
padding: 5px 0;
background: linear-gradient(145deg, #dcdcdc, #dedede);
border-bottom: 2px solid #ccc;
box-shadow: inset 0 2px 5px rgba(255,255,255,0.4);}

.navigation a {
display: inline-block;
padding: 2px 20px 2px 20px;
letter-spacing:1px;
font:8px 'silkscreen';
color:#444;
border-radius: 5px;
border: 1px solid #ccc;
background: linear-gradient(145deg, #ffffff, #dcdcdc);
box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(255,255,255,0.5);
cursor: pointer;
transition: all 0.3s ease;}

.navigation a:hover {
box-shadow: 0 4px 6px rgba(0,0,0,0.12), inset 0 -2px 4px rgba(255,255,255,0.6);}   
  
     
      
/* Sidebar */
.sidebar {
flex: 0 0 220px; 
background: linear-gradient(145deg, #f7f7f7, #e0e0e0);
border-radius: 5px;
border:1px solid #ccc;
padding: 5px;
box-shadow: inset 0 -2px 4px rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.05);}

  
/* Main area: banner + main section */
.banner-img {
flex: 0 0 170px;
background: #f5f5f5 url(https://itinerae.neocities.org/premium/5banner.webp) bottom;
margin-top:5px;
border-bottom: 2px solid #ccc;
border-radius:5px;}

/* Main area: banner video + main section */
.banner-vid {
    padding: 4px;
    background: linear-gradient(145deg,#fff,#dcdcdc);
    border:1px solid #bbb;
    border-radius:6px;
}

.banner-vid iframe{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    border:none;
    box-shadow:
        inset 0 0 8px rgba(0,0,0,.35);
}

.main-area {
display: flex;
flex-direction: column;
gap: 5px;
flex: 0 0 490px;}
      
.main {
flex: 1;
background: linear-gradient(145deg, #f7f7f7, #e0e0e0);
border-radius: 5px;
border:1px solid #ccc;
padding: 5px;
box-shadow: inset 0 -2px 4px rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.05);}
  
/* Link buttons in main section */

.main-button a {
display: inline-block;
margin-top: 5px;
padding: 2px 20px;
font-weight: bold;
letter-spacing:2px;
font:9px ms gothic, 'silkscreen';
color:#444;
border-radius: 5px;
border: 1px solid #ccc;
background: linear-gradient(145deg, #ffffff, #dcdcdc);
box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(255,255,255,0.5);
cursor: pointer;
transition: all 0.3s ease;
text-align: center;}

.main-button a:hover {
box-shadow: 0 4px 6px rgba(0,0,0,0.12), inset 0 -2px 4px rgba(255,255,255,0.6);}

.main-button img {
vertical-align: middle;
margin-right: 3px;}
  
  
 
/* Boxes inside sidebar + main */
.box {
background: linear-gradient(145deg, #ffffff, #eee);
border-radius: 5px;
padding: 5px;
margin-bottom: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.08), inset 0 -2px 4px rgba(255,255,255,0.6);
transition: transform 0.3s ease;}

.box:hover { transform: translateY(-2px); }

  
  
/* Titles */
.title {
font:10px 'orbitron';
text-transform: uppercase;
letter-spacing:4px;
background: linear-gradient(145deg, #f5f5f5, #dcdcdc);
padding: 1px 2px;
border-radius: 5px;
margin-bottom: 2px;
box-shadow: inset 0 -1px 2px rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.05);}
  
  
  
/* Footer */
.footer {
background: linear-gradient(145deg, #ffffff, #dcdcdc);
text-align: center;
font:9px ms gothic, calibri;
padding: 5px;
border-top: 2px solid #ccc;
text-shadow: 0 1px 2px rgba(0,0,0,0.1);}
  
  
  
/* Responsive layout */


@media (max-width: 640px) {
.layout {
flex-direction: column;
align-items: center;}
    
.navigation { flex-wrap: wrap; }

.main-area {
width: 100%;
flex: 1;}
    
.sidebar {width:100%;
order:2;}


  }
  
  
  
  
  
  
  
  /* ========================================
   NEUTRAL PAGE TEMPLATE
   ======================================== */

.template-content {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}


/* Main content boxes */

.template-content .box {
  width: 100%;
  box-sizing: border-box;
}


/* Comfortable reading text */

.template-content p {
  max-width: 700px;
  margin: 8px auto;
  line-height: 1.7;
}


/* Single large image */

.content-image {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  background: linear-gradient(145deg, #ffffff, #eeeeee);
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    inset 0 -2px 4px rgba(255,255,255,0.6);
}

.content-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}


/* Flexible photo grid */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}


/* Mobile */

@media (max-width: 640px) {

  .container {
    width: 100%;
    max-width: 730px;
  }

  .sitename {
    font-size: 16px;
    letter-spacing: 3px;
    padding: 8px 10px;
  }

  .navigation {
    padding: 5px;
    gap: 4px;
  }

  .navigation a {
    padding: 4px 10px;
  }

  .template-content {
    padding: 4px;
  }

  .template-content p {
    line-height: 1.6;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

}


/* Very small phones */

@media (max-width: 380px) {

  body {
    padding: 5px;
  }

  .sitename {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .navigation a {
    padding: 4px 8px;
    font-size: 7px;
  }

}
  