@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; }
}

* {
  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;

  --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;

  --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;

  --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;

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

html, body {
  height: 100%;
}

body {
  font-family: Nunito;
  line-height: 1.6;
  margin: 0;
  padding: 0 20px;
  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;

  display: flex;
  flex-direction: column;
}

.cursor {
  width: 48px;
  height: 48px;
  background-image: url(cursor.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: fixed;
  z-index: 100000;
  cursor: none;
  pointer-events: none;
  transition-duration: 000ms;
}

* {
  cursor: none;
}

body {
  overflow-x: hidden;
}

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

.toggle-container {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 10;
}

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

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

.container {
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  padding: 20px 0;
}

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

.content-section {
  background-color: var(--sections);
  border-radius: 36px;
  padding: 32px;
  position: relative;
  margin-top: 30px;
  width: 100%;
}

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

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

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

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

.section-content a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--links);
}
.section-content a:hover {
  color: var(--footer-link);
  transform: scale(1.05);
  text-shadow: 0 0 10px var(--footer-link);
}
.section-content span {
  color: var(--span);
}

footer {
  max-width: 1440px;
  width: 100%;
  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;
  flex-shrink: 0;
}

footer a {
  color: var(--footer-link);
}
footer a:hover {
  text-decoration: underline;
}