/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Easy customization */
:root {
  --site-background: url(https://file.garden/ZWlUCY4S7Xz2vypS/archived%20backgrounds/colours/multicolour%20%26%20rainbow/mlti022.gif);
  --header-image: url("assets/WP_BANNER.png");
  --sidebar-image: url("assets/side_bar.png");
  --main-background:linear-gradient(#690707, #89040400); /*url("assets/WP_BANNER.png");*/
  --page-tag-image: url("assets/bgfern.gif");
  --sidebar-heading-image: url(https://cmdonovann.neocities.org/shitty-gifs/floppy-disk.gif);
  --sidebar-button-image:  linear-gradient(#c27e7e, #890404, #890404, #740404); /*url("assets/bgfern.gif"); */
  --year-button-image: url("assets/Year.png");

  --blue: #75D0F4;
  --dark-blue: #044389;
  --light-blue: #71C7E9;
  --content-text: #262C52;
}


body {
  margin: 0;
  padding: 0;
  background: var(--site-background) repeat;
  
  font-family:cursive;
  color: #fff;
  overflow: auto; 
  flex-direction: column;
  display: flex;
}

/* Layout Grid */
.container {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-areas:
    "header header header"
    "sidebar-left main sidebar-right"
    "footer footer footer";
  grid-template-columns: 130px 890px 130px;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}


/* Sections */
header {
  grid-area: header;
  background: var(--header-image) no-repeat center center;
  background-size: 100% 100%;
 /* height: 180px; Adjust based on your header's visual height */
  text-align: center;
  flex-shrink: 0;
}

.sidebar-left {
  grid-area: sidebar-left;
  background-image: var(--sidebar-image);
  background-size: 100% 100%;
  padding-top: 10px;
  align-items: center;
}


.sidebar-right {
  grid-area: sidebar-right;
  background-image: var(--sidebar-image);
  background-size: 100% 100%;
  padding-top: 10px;
  align-items: center;
}

main {
  font-family:cursive;
  font-size: 16px;
  letter-spacing: 0.2px;
  grid-area: main;
  padding: 20px;
  background-image: var(--main-background);
  background-repeat: repeat;
  background-position: center;
  
  flex: 1;
  
}

main, .box {
  overflow: visible;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #03326C #71c7e9; /* For Firefox */
}

.box a {
  word-break: break-word;
}

.welcome-box {
  background: #f4757563;
  border: 0 px solid white;
  border-radius: 30px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.welcome-box h2 {
  background: linear-gradient(#c27e7e, #890404, #890404, #740404);
  color: white;
  padding: 10px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-family:cursive;
  font-size: 24px;
  margin: -20px -20px 20px -20px;
}

/* Row holding the two boxes */
.content-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Daily Sketch and Pixel Dailies */
.info-box {
  display: flex;
  flex-direction: column;
  background: #f4757563;
  border: 0px solid white;
  border-radius: 30px;
  padding: 20px;
  flex: 1;
  font-size: 18px;
}

.info-box h3 {
  background: linear-gradient(#c27e7e, #890404, #890404, #740404);
  color: white;
  padding: 10px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-family:cursive;
  font-size: 18px;
  text-align: center;
  margin: -20px -20px 20px -20px;
}

.box-content {
  display: block;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  flex-wrap: wrap;
  word-break: break-word;
}

.preview-image {
  float: left;
  margin: 0 15px 10px 0;
  width: 80px;
  height: 80px;
  background: lightgray;
  border: 2px solid white;
  border-radius: 10px;
}

.tab-tag {
  position: relative;
  top: -20px;
  left: -21px; /* match your sidebar's width */
  width: 892px; /* Adjust this based on your actual image */
  height: 64px;
    
  background-image: var(--page-tag-image);
  background-size: contain;
  background-repeat: no-repeat;
  
  display: flex;
  align-items: stretch;
  justify-content: left;
  padding-left: 20px; /* Spacing for text inside */
  
  color: white;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 63px;
  text-align: left;
  text-shadow: 1px 1px 2px #11005f;
  z-index: 10;
}

.box {
  background: #f4757563;
  border: 0px solid white;
  border-radius: 50px;
  padding: 30px 50px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  font-size: 20px;
  color:#000000;
}

.box a img {
  margin: 10px;
  transition: transform 0.2s ease;
}

.box a:hover img {
  transform: scale(1.1);
}

.box ul {
  margin-bottom: 20px;
}

.box h3, .box h4 {
  margin-top: 30px;
}


.sidebar-left img {
  box-shadow: 0 4px 8px #000000;
}

.sidebar-section {
  width: 130px;
  height: auto;
  background-image: var(--sidebar-heading-image);
  background-size: contain;
  background-repeat: no-repeat;
}

.sidebar-section h3 {
  font-size: 16px;
  color: white;
  font-family: 'Orbitron', Arial, sans-serif;
  /*text-shadow: 1px 1px 2px #000;*/
  margin: 0;
  text-align: left;
  padding-left: 42px;
}

.sidebar-section a {
  display: block;
  width: 115px;
  height: 28px;
  background-image: var(--sidebar-button-image);
  background-repeat: no-repeat;
  background-size: contain; /* or set to exact height if scaling */
  text-align: center;
  color:#ffb8b8;
  font-family:cursive;
  font-size: 14px;
  text-decoration: none;
  margin: 6px auto;
  border: none;
  background-position: center;
  line-height: 24px;
  transition: transform 0.1s ease, filter 0.2s ease, color 0.2s ease;
}

.sidebar-section ul {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}

.sidebar-section li {
  margin: 4px 0;
}

.sidebar-section ul li a:hover {
  transform: translateY(-5px) scale(1.05); /* makes it pop up */
  filter: brightness(1.3);                 /* brightens the image */
  color: rgb(62, 0, 0);                 /* text color change */
}

.software-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.software-icons a img {
  transition: transform 0.2s ease;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.software-icons a:hover img {
  transform: scale(1.1);
}

.link-icons a img {
  transition: transform 0.2s ease;
  border-radius: 15px;
}

.link-icons a:hover img {
  transform: scale(1.1);
}

.link-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

/* Footer */
footer {
  grid-area: footer;
  text-align: center;
  padding: 0px;
  background: transparent;
  color: white;
  font-size: 10px;
  flex-shrink: 0;
}

.year-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem; /* spacing between buttons */
  max-width: 600px; /* 2 buttons * width + gaps */
  margin: 0 auto;
}

.year-button {
  background: var(--year-button-image) no-repeat center center;
  background-size: contain;
  width: 260px;
  height: 50px;
  color: white;
  font-size: 30px;
  text-shadow: 1px 1px 0 black;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin: 0.5rem;
  transition: transform 0.1s ease, filter 0.2s ease, color 0.2s ease;
}

.year-button:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
  color: yellow;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.pagination {
  margin-top: 2rem;
  text-align: center;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.pagination a {
  margin: 0 0.3rem;
  padding: 0.4rem 0.7rem;
  background: #ffffff00;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.clock-wrapper {
  width: 130px;   /* final size */
  height: 130px;
  overflow: hidden; /* hide overflow if needed */
}

.clock {
  transform: scale(0.866); /* 130 / 150 = 0.866 */
  transform-origin: top left; /* keeps alignment */
}

/* Text Box */
textarea {
  width: 100%;
  height: auto; /* Static height for the text box */
  padding: 5px;
  font-family: inherit;
  font-size: 10px;
  box-sizing: border-box;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #FFF;
  border-radius: 5px;
  resize: none; /* Prevents resizing of the text box */
  overflow-y: scroll; /* Enables vertical scrolling */
  outline: none; /* Remove default outline */
}

.blog-archive summary {
  cursor: pointer;
  font-weight: bold;
  margin: 4px 0;
  text-align: center;
}

.blog-archive ul {
  margin: 4px 0 4px 16px;
  padding: 0;
  list-style: square;
}

.blog-archive li {
  margin: 2px 0;
}

.tag-cloud {
  text-align: center;
  line-height: 2;
}

.tag-cloud a {
  text-decoration: none;
  color: #03326C;
  margin: 0 6px;
  transition: color 0.3s;
}

.tag-cloud a:hover {
  color: #71c7e9;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.snowflake {
  position: fixed;
  top: -10px; /* Start slightly above the viewport */
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none; /* Allows interaction with content below */
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

#snowToggle {
  font-family: 'Pixelify Sans', sans-serif;

  padding: 5px 10px;
  background-color: #e48c8c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}
#snowToggle:hover {
  background-color: #ACCFD5;
} 

/* Responsive layout */
@media (max-width: 900px) {
  .container {
    max-width: 100%;
    grid-template-areas:
      "header"
      "main"
      "sidebar-left"
      "sidebar-right"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  header {
    min-height: 120px;
  }

  .sidebar-left,
  .sidebar-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  main {
    width: 100%;
  }

  .tab-tag {
    width: calc(100% + 41px);
  }
}

@media (max-width: 600px) {
  .content-row {
    flex-direction: column;
  }

  .box {
    padding: 25px 20px;
  }

  .year-button {
    width: 220px;
  }
}
