@font-face {
  font-family: Coustard;
  src: url(coustard.ttf);
}

@font-face {
  font-family: Nunito;
  src: url(nunito.ttf);
}

@-webkit-keyframes scroll {
  from { background-position: 0 0, 50px 50px, 50px 0; }
  to { background-position: -100px -100px, -50px -50px, -50px -100px; }
}

@keyframes background-slide {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
    
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #E5FFB3;
  --background-accent: #d9fa9d;
  --background-accent-2: #e6ffbe;

  --light-green: #92DE34;
  --dark: #69BC22;
  --text: #025600;

  --marquee-background: #92DE34;
  --marquee-text: #025600;

  --toggle-shadow: rgba(0, 0, 0, 0.1);
  --toggle-background: #e9ecef;
  --toggle-circle: #495057;

  --sections: #FFFAE4;
  --headers: #01B7D4;
  --paragraphs: #7A694F;
  --links: #f39e00;
  --span: #FF7DC8;
  --icons: #025600;

  --more: #FFFAE4;

  --gallery: #EEEEEE;

  --footer-background: #FFFAE4;
  --footer-text: #7A694F;
  --footer-link: #FF7DC8;

  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode {
  --background: #26282B;
  --background-accent: #303338;
  --background-accent-2: #282b30;

  --light-green: #92DE34;
  --dark: #69BC22;
  --text: #025600;

  --marquee-background: #585858;
  --marquee-text: #AAAAAA;

  --toggle-shadow: rgba(0, 0, 0, 0.3);
  --toggle-background: #495057;
  --toggle-circle: #f8f9fa;

  --sections: #585858;
  --headers: #01B7D4;
  --paragraphs: #AAAAAA;
  --links: #ffcf00;
  --span: #FF7DC8;
  --icons: #025600;

  --more: #FFFAE4;

  --gallery: #EEEEEE;

  --footer-background: #585858;
  --footer-text: #AAAAAA;
  --footer-link: #FF7DC8;
}

body {
  cursor: url("cursor.png"), auto;
  font-family: Nunito;
  line-height: 1.6;
  position: absolute;
  margin: 0 auto;
  padding: 300px 20px 20px 20px;
  min-height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  background-image:
  linear-gradient(45deg, var(--background-accent) 25%, transparent 25%, transparent 75%, var(--background-accent) 75%, var(--background-accent)), 
  linear-gradient(45deg, var(--background-accent) 25%, transparent 25%, transparent 75%, var(--background-accent) 75%, var(--background-accent)),
  linear-gradient(45deg, transparent, transparent 50%, var(--background-accent-2) 50%, var(--background-accent-2));
  background-size: 100px 100px;
  background-position: 0 0, 50px 50px, 50px 0px;
  -webkit-animation: scroll 5s linear infinite;
}

.sprite1 {
  top: 55px;
  width: 320px;
  position: absolute;
  right: calc(50% - 325px);
  z-index: 1;
}

.sprite2 {
  top: 65px;
  width: 350px;
  position: absolute;
  right: calc(50% - 10px);
  z-index: 1;
}

.sprite3 {
  top: 240px;
  width: 350px;
  position: absolute;
  right: calc(50% + 380px);
  z-index: 1;
}

header {
  margin: 0 auto;
  max-width: 1440px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

marquee {
  font-size: smaller;
  letter-spacing: 0.5px;
  padding: 4px;
  background-color: var(--marquee-background);
  border-radius: 25px;
  color: var(--marquee-text);
  margin-right: 20px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-button {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--toggle-background);
  border-radius: 30px;
  border: none;
  cursor: url("cursor.png"), auto;
  outline: none;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 0 5px var(--toggle-shadow);
}

.toggle-circle {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: var(--toggle-circle);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px var(--toggle-shadow);
}
        
.dark-mode .toggle-circle {
  transform: translateX(30px);
}

.toggle-button::before,
.toggle-button::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}
        
.toggle-button::before {
  content: "☀️";
  left: 8px;
}
        
.toggle-button::after {
  content: "🌙";
  right: 8px;
}

.container {
  margin: 0 auto;
  max-width: 1440px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 35px;
  padding-bottom: 25px;
}

.main-content {
  display: flex;
  flex-direction: column;
}

.preview-container {
  margin-top: 15px;
  display: flex;
}

.preview-images {
  display: flex;
  gap: 30px;
  flex: 1;
}

.preview-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.preview-more {
  background-size: cover;
  background-position: 92% 10%;
  text-decoration: none;
}

.blur-layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.5);
}

.more-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--more);
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 3px;
  z-index: 2;
}

.preview-more:hover .more-text {
  transform: scale(1.1);
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.column {
  flex: 33.333%;
  max-width: 33.333%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  width: 100%;
  transition: opacity 0.2s;
  border-radius: 16px;
  display: block;
  cursor: url("cursor.png"), auto;
  transition: all 0.2s ease;
}

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

@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  background: transparent;
}

.modal-image {
  display: flex;
  line-height: 0;
  font-size: 0;
}

.modal-image img {
  border-radius: 24px;
  height: auto;
  max-height: 90vh;
  width: auto;
}

.info-panel {
  width: 420px;
  color: var(--headers);
  overflow-y: auto;
  padding-left: 10px;
  display: grid;
  grid-template-rows: repeat(7, auto) 1fr;
}

.info-panel h2 {
  text-align: center;
  font-size: 22px;
  font-weight: normal;
}

.info-row {
  text-align: center;
  margin-bottom: 10px;
}

.info-label {
  flex: 0 0 50%;
}

.description {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 30px;
  color: var(--gallery);
}

.color-samples {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0 0 0;
  justify-content: center;
  padding-top: 20px;
}

.color-sample {
  text-align: center;
  flex: 0 0 auto;
}

.color-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.color-rgb {
  font-size: 9px;
  color: #aaa;
  margin-bottom: 2px;
}

.color-cmyk {
  font-size: 8px;
  color: #777;
}

.color-name {
  font-size: 11px;
  color: var(--gallery);
  margin-top: 4px;
}

.original-image {
  text-align: center;
}

.close {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 32px;
  z-index: 2;
  transition: all 0.3s ease;
}

.close:hover {
  transform: rotate(90deg);
}

.loading, .error {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  color: #ff6b6b;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.content-section, .sidebar-section {
  background-color: var(--sections);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  margin-top: 50px;
}

.section-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-5deg) translate(2rem, -1.25rem);
  background-color: var(--light-green);
  color: var(--text);
  outline: 8px solid var(--sections);
  padding: 8px 12px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 25px;
  z-index: 10;
  min-width: 100px;
  text-align: center;
}

.polaroid {
  background: var(--light-green);
  padding: 15px 15px 5px;
  border-radius: 10px;
  transform: rotate(3deg);
  margin: 0 auto 30px;
  max-width: 250px;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.polaroid-caption {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text);
  background-color: var(--light-green);
  padding: 10px 0 10px 0;
}

.bio {
  width: 100%;
  border-radius: 5px;
  outline: 2px dashed var(--dark);
  padding: 10px;
}

.bio p {
  text-align: center;
}

.flags {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}

.flags img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-button {
  cursor: url("cursor.png"), auto;
  outline: 12px solid var(--sections);
  border: none;
  background-color: var(--light-green);
  width: 100%;
  padding: 15px 25px 15px 25px;
  border-radius: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 0 0 7px var(--light-green) inset;
  overflow: hidden;
  transition: all 0.3s ease;
}
        
.menu-button:hover {
  background-image: linear-gradient(
    145deg,
    transparent 10%,
    var(--dark) 10% 20%,
    transparent 20% 30%,
    var(--dark) 30% 40%,
    transparent 40% 50%,
    var(--dark) 50% 60%,
    transparent 60% 70%,
    var(--dark) 70% 80%,
    transparent 80% 90%,
    var(--dark) 90% 100%
  );
  background-size: 340px 100%;
  animation: background-slide 7s linear infinite;
}

.menu-button:hover {
  transform: scale(1.05);
}

.menu-button:active {
  transform: scale(0.98);
}

.icons {
  width: 24px;
  height: auto;
  vertical-align: middle;
  margin-top: -5px;
  margin-right: 5px;
  fill:var(--icons);
}

.neocities-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.neocities-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(to right, #ff8a00, #da1b60);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.neocities-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(218, 27, 96, 0.4);
}

.neocities-btn img {
  height: 30px;
  width: auto;
}

.code-snippet h4 {
  color: #4ec9b0;
  margin-bottom: 10px;
  font-size: 1rem;
}

.code-snippet textarea {
  width: 100%;
  height: 80px;
  background-color: #2d2d2d;
  color: #d4d4d4;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: none;
  margin-bottom: 10px;
}

.copy-btn {
  width: 100%;
  padding: 10px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: url("cursor.png"), auto;
  font-weight: bold;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #005a9e;
}

.section-content {
  margin-top: 15px;
}

.section-content h3 {
  color: var(--headers);
  font-size: 1.5rem;
}

.section-content p {
  color: var(--paragraphs);
  margin-bottom: 10px;
}

.section-content a {
  cursor: url("cursor.png"), auto;
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--links);
  transition: color 0.3s ease;
}

.section-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 5px;
  background-color: var(--links);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-content a:hover::after {
  width: 100%;
}

.section-content span {
  color: var(--span);
}

footer {
  max-width: 1440px;
  margin: 0 auto;
  height: 40px;
  padding: 10px;
  text-align: center;
  color: var(--footer-text);
  background-color: var(--footer-background);
  border-radius: 24px 24px 0 0;
}

footer a {
  color: var(--footer-link);
}

footer a :hover{
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .modal-container {
    flex-direction: column;
    margin: 20px;
  }
}

@media (max-width: 960px) {

  .sprite1 {
    display: none;
  }

  .sprite2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sidebar {
    order: 1;
  }
}

@media (max-width: 480px) {
  .content-section, .sidebar-section {
    padding: 20px;
  }
  
  .section-label {
    font-size: 1rem;
    padding: 6px 15px;
    min-width: 120px;
  }
}