* {
  box-sizing: border-box;
}

body {
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Pixelify Sans", sans-serif;
}

header {
  width: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  width: 100%;
  margin-top: 0;
  padding: 20px 22px;

  border: 2px solid white;
  border-radius: 15px;

  color: white;
  font-family: "Aldrich", sans-serif;
  font-size: 30px;
  font-weight: bold;
  text-align: center;

  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    lime,
    cyan,
    blue,
    magenta,
    red
  );

  background-size: 400% 400%;
  animation: rgbBackground 6s linear infinite;

  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

h1:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes rgbBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.rainbow-mode {
  animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
  0% {
    background: #ff0000;
  }

  16% {
    background: #ff8000;
  }

  33% {
    background: #ffff00;
  }

  50% {
    background: #00ff00;
  }

  66% {
    background: #00bfff;
  }

  83% {
    background: #8a2be2;
  }

  100% {
    background: #ff0000;
  }
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  padding: 0 20px;
}

nav a {
  padding: 11px 12px;

  border: 2px solid white;
  border-radius: 15px;

  background-color: black;
  color: white;

  font-family: "Pixelify Sans", sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;

  box-shadow: 0 0 8px rgba(218, 100, 100, 0.1);
  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

nav a:hover {
  background-color: white;
  color: black;
  text-decoration: underline;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

main {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  flex: 1;
}

.hero {
  padding: 35px 25px;
  margin-bottom: 40px;

  background-color: #111;
  border: 2px solid white;
  border-radius: 15px;

  text-align: center;

  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.hero h2 {
  margin-top: 0;
  color: white;
  font-family: "Aldrich", sans-serif;
  font-size: 30px;
}

.hero p {
  max-width: 750px;
  margin: 0 auto;
  color: white;
  font-size: 18px;
  line-height: 1.7;
}

.tips-section {
  margin-bottom: 45px;
}

.tips-section > h2 {
  padding: 16px;
  margin-bottom: 22px;

  background-color: #111;
  border: 2px solid white;
  border-radius: 15px;

  color: white;
  font-family: "Aldrich", sans-serif;
  text-align: center;

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  padding: 22px;

  background-color: #111;
  border: 2px solid white;
  border-radius: 15px;

  color: white;

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);

  transition:
    transform 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}

.tip-card:hover {
  background-color: #1c1c1c;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.35);
}

.tip-card h3 {
  margin-top: 0;
  color: white;
  font-family: "Aldrich", sans-serif;
  font-size: 21px;
}

.tip-card p,
.tip-card li {
  color: white;
  font-size: 16px;
  line-height: 1.7;
}

.tip-card ol {
  padding-left: 22px;
}

.works-for {
  padding-top: 12px;
  margin-top: 15px;

  border-top: 1px solid rgba(255, 255, 255, 0.35);

  color: #d4d4d4 !important;
  font-size: 14px !important;
}

.impact {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 0;

  border: 2px solid white;
  border-radius: 15px;

  background-color: black;
  color: white !important;

  font-size: 13px !important;
  font-weight: bold;
}

.high-impact {
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.35);
}

.medium-impact {
  box-shadow: 0 0 12px rgba(255, 255, 0, 0.3);
}

.warning-box {
  padding: 25px;
  margin-bottom: 40px;

  background-color: #111;
  border: 2px solid white;
  border-radius: 15px;

  color: white;

  box-shadow: 0 0 18px rgba(255, 0, 0, 0.25);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.warning-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.45);
}

.warning-box h2 {
  margin-top: 0;
  color: white;
  font-family: "Aldrich", sans-serif;
}

.warning-box p {
  color: white;
  line-height: 1.7;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 25px;

  background-color: #111;
  border: 2px solid white;
  border-radius: 15px;

  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.checklist h2 {
  margin-top: 0;
  color: white;
  font-family: "Aldrich", sans-serif;
  text-align: center;
}

.checklist label {
  padding: 14px;

  background-color: black;
  border: 2px solid white;
  border-radius: 12px;

  color: white;
  cursor: pointer;

  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.checklist label:hover {
  background-color: white;
  color: black;
  transform: scale(1.02);
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: white;
  cursor: pointer;
}

footer {
  width: 100%;
  padding: 20px;

  background-color: black;
  border-top: 2px solid rgba(255, 255, 255, 0.2);

  color: white;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 12px;
  text-align: center;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.tips-section,
.warning-box,
.checklist {
  animation: fadeIn 0.5s ease;
}

@media (max-width: 900px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px 12px;
  }

  h1 {
    font-size: 24px;
  }

  nav {
    flex-direction: column;
    width: 100%;
  }

  nav a {
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  main {
    width: 92%;
    margin: 30px auto;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  h1 {
    padding: 16px;
    font-size: 21px;
  }

  .hero,
  .tip-card,
  .warning-box,
  .checklist {
    padding: 18px;
  }

  .hero p,
  .tip-card p,
  .tip-card li {
    font-size: 15px;
  }
}