@keyframes bgColorChange {
  0% {
    background-color: black;
    color: rgb(0, 175, 0);
    border-color: rgb(0, 175, 0);
  }

  100% {
    background-color: rgb(0, 175, 0);
    color: black;
    border-color: black;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0px;
  padding: 0px;
  background-color: black;
  color: rgb(0, 255, 0);
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: bgColorChange 45s infinite alternate;
}

/* Header */
.site-header {
  width: 100%;
  font-size: 25px;
  animation: bgColorChange 45s infinite alternate;
}

.site-title {
  margin-bottom: 0px;
  font-size: 3rem;
  animation: bgColorChange 45s infinite alternate;
}

/* Navigation */
.main-nav ul {
  width: fit-content;
  display: flex;
  gap: 20px;
  padding: 10px 0px 10px 0px;
  margin: 0 auto;
  list-style: none;
  justify-content: center;
  border: 3px dashed rgb(0, 255, 0);
  border-radius: 10px;
  background-color: black;
  color: rgb(0, 255, 0);
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 10px;
  background-color: inherit;
  color: inherit;
  transition: 1s;
}

.main-nav a:hover {
  background-color: rgb(0, 255, 0);
  color: black;
}

/* Active route */
.main-nav a.active {
  padding: 3px 6px;
  border-radius: 4px;
}

/* Content area */
.site-content {
  width: 66%;
  font-size: large;
  background-color: black;
  color: rgb(0, 255, 0);
  margin-top: 20px;
  padding: 2rem;
  border: 3px rgb(0, 255, 0);
  border-style: dashed dashed none dashed;
  border-radius: 10px;
  overflow-y: scroll;
}

/* Home Page */
.home-page {
  font-size: large;
}
.home-page a {
  text-decoration: none;
  color: rgb(0, 255, 0);
  border: 1px solid rgb(0, 255, 0);
  border-radius: 10px;
  padding: 5px;
  transition: 1s;
}
.home-page .backend-skills,
.frontend-skills {
  display: inline-flex;
  list-style: none;
  max-width: 100%;
  margin: 5px;
  padding: 0px;
}

.home-page a:hover {
  color: black;
  background-color: rgb(0, 255, 0);
}

/* About page */
.about-page {
  font-size: large;
}

.about-section h2 {
  font-style: italic;
  text-decoration: underline;
}

.about-page a {
  text-decoration: none;
  color: rgb(0, 255, 0);
  border: 1px solid rgb(0, 255, 0);
  border-radius: 10px;
  padding: 5px;
  transition: 1s;
}

.about-page a:hover {
  color: black;
  background-color: rgb(0, 255, 0);
}

/* Interests page */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.interest-section {
  padding-top: 20px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.card {
  padding: 15px;
  border: 1px solid #0f0;
  border-radius: 8px;
}

.card img {
  width: 100%;
  border-radius: 6px;
}

#opera-list,
#sports-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#opera-list .card {
  width: 220px;
  background-color: black;
  border: 2px dashed rgb(0, 255, 0);
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s;
}

#opera-list .card:hover {
  transform: translateY(-8px);
}

#opera-list .card h3 {
  color: rgb(0, 255, 0);
}

#opera-list .card a {
  color: rgb(0, 255, 0);
  text-decoration: none;
  border: 1px solid rgb(0, 255, 0);
  border-radius: 10px;
  padding: 5px;
}

#opera-list .card a:hover {
  color: black;
  background-color: rgb(0, 255, 0);
}

/* Projects page */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 280px;
  transition: transform 0.2s;
}

.project-card a {
  border: 1px solid black;
  border-radius: 10px;
  padding: 5px;
}

.project-card a:hover {
  background-color: black;
  color: white;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-title a {
  text-decoration: none;
  color: #333;
}

.project-description {
  margin: 10px 0;
  color: #555;
}

.project-details {
  font-size: 0.85rem;
  color: #888;
}

.videos-section {
  margin-top: 40px;
  text-align: center;
}

.videos-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: rgb(0, 255, 0);
}

.videos-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.video-card {
  width: 500px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px dashed rgb(0, 255, 0);
  background-color: black;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.site-footer {
  min-height: 10vh;
  width: 100%;
  margin: 0px;
  padding: 0px;
  font-size: large;
  border-top: 2px solid rgb(0, 255, 0);
  animation: bgColorChange 45s infinite alternate;
}

.site-footer p {
  margin: 0px;
  padding: 0px;
}

.footer-icons {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-icons a {
  color: rgb(0, 255, 0);
  font-size: 1.8rem;
  transition: 0.5s;
  animation: bgColorChange 45s infinite alternate;
}

.footer-icons a:hover {
  color: black;
  background-color: rgb(0, 255, 0);
  padding: 6px;
  border-radius: 8px;
}

/* Scrollbar styling */
.site-content::-webkit-scrollbar {
  width: 12px;
}

.site-content::-webkit-scrollbar-track {
  background: black;
  border-left: 2px dashed rgb(0, 255, 0);
  border-radius: 10px;
  animation: bgColorChange 45s infinite alternate;
}

.site-content::-webkit-scrollbar-thumb {
  background-color: rgb(0, 255, 0);
  border: 2px solid black;
  border-radius: 10px;
  animation: bgColorChange 45s infinite alternate;
}

.site-content::-webkit-scrollbar-thumb:hover {
  background-color: rgb(0, 200, 0);
}

/* Firefox */
.site-content {
  scrollbar-width: thin;
  scrollbar-color: rgb(0, 255, 0) black;
}

@media (max-width: 768px) {
  html,
  body {
    flex-direction: column;
    height: auto;
    width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .site-content,
  .site-footer {
    height: auto;
  }

  .site-title {
    font-size: 2rem;
  }

  .main-nav ul {
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 0px;
    padding-right: 0px;
    flex-direction: column;
    gap: 20px;
  }

  .site-content {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    overflow-x: hidden;
    margin: 0px;
    font-size: medium;
  }

  .site-content img {
    width: 100%;
  }

  .site-content a {
    border: 0px;
    text-decoration: underline;
  }

  .home-page .backend-skills,
  .frontend-skills {
    display: inline-flex;
    list-style: none;
    max-width: 100%;
    margin: 5px;
    padding: 0px;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  #opera-list .card {
    width: 100%;
    max-width: 100%;
  }

  .video-card {
    width: 100%;
    max-width: 100%;
    margin: 0px 10px 0px 10px;
    height: 200px;
  }

  * {
    animation: none !important;
  }

  .site-content::-webkit-scrollbar {
    display: none;
  }

  .site-content {
    scrollbar-width: none; /* Firefox */
  }
}
