/* Global Styles */
html {
  width: 100%;
}
body {
  background-color: rgb(0, 0, 0);
  text-align: center;
  font-family: sans-serif;
}

/* Navigation Bar */
.navBar {
  background-color: #12121200;
  color: whitesmoke;
  font-size: 30px;
  text-align: right;
  padding: 20px;
  margin: 10px;
}

.navBar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 5px;
}

.navBar a:hover {
  color: rgb(239, 205, 151);
}

/* Intro Section */
.intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0b0b00;
}

.introbox {
  display: block;
  width: 50%;
}

.introbox h1 {
  font-size: 70px;
}

.introbox p {
  font-size: 25px;
}

.introbox button {
  background-color: rgb(239, 205, 151);
  border: 2px solid rgb(239, 205, 151);
  border-radius: 10%;
  width: 100px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.introbutton a {
  text-decoration: none;
  display: flex;
  justify-content: center;
}

/* Panels */
.leftpanel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  width: 40%;
  background-color: rgba(255, 255, 255, 0);
}

.rightpanel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
}

.imagecontainer img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Jumbotron */
.jumbotron {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/images/hex.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 50%;
}

/* About Section */
.about-container {
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
}

.about {
  display: block;
  background-color: rgb(0, 0, 0);
  color: #ffffff;
  width: 60%;
}

.abitaboutme {
  color: rgb(239, 205, 151);
  display: flex;
  font-size: 40px;
}

.holder {
  display: flex;
  justify-content: center;
  align-items: center;
}

.description_container {
  display: flex;
  font-size: 27px;
}

.tech {
  color: rgb(239, 205, 151);
  display: flex;
  font-size: 40px;
}

.techdesc {
  display: flex;
  font-size: 27px;
}

/* Projects Section */
.projects {
  display: inline-block;
  justify-items: center;
  text-align: center;
  padding: 20px;
  width: 75%;
}

.projects h1 {
  color: #ddd;
  font-size: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.project-card {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Technologies Grid Section */
.techcontainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 69%;
}

.tech-card {
  display: flex;
  gap: 20px;
  background-color: #f2ecec;
  font-size: 10px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.tech-card img {
  width: 20%;
}

/* Snake Game Section */
.snake-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
}

.snake-game {
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

#snakeCanvas {
  background-color: #333;
  border: 2px solid #ddd;
  display: block;
  margin: 20px auto;
}

#startButton {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: limegreen;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#startButton:hover {
  background-color: darkgreen;
}

/* Leaderboard Section */
.leaderboard {
  color: white;
  font-size: 30px;
  text-align: center;
  margin-top: 20px;
  padding: 20px;
}

.leaderboard h2 {
  margin-bottom: 10px;
}

#topScores {
  list-style-type: none;
  padding: 0;
}

#topScores li {
  margin: 5px 0;
  font-size: 23px;
}

/* Mobile styles - for screens smaller than or equal to 600px */
@media (max-width: 800px) {
  /* Adjust Navigation Bar */
  .navBar nav {
    text-align: center;
    font-size: 33px;
    padding: 5px;
  }

  .introbox {
    width: 100%;
  }

  /* Reduce text size */
  .introbox h1 {
    font-size: 38px;
  }

  .introbox p {
    font-size: 15px;
  }

  /* Adjust the layout of Panels */
  .leftpanel,
  .rightpanel {
    width: 100%;
    padding: 10px;
  }

  .rightpanel {
    margin-top: 20px;
  }

  .abitaboutme {
    font-size: 24px;
  }

  .description_container p {
    font-size: 20px;
  }

  .tech {
    font-size: 24px;
  }

  .techdesc p {
    font-size: 20px;
  }

  /* Adjust Project Cards */
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 15px;
    font-size: 16px;
  }

  .techcontainer {
    width: 100%;
  }

  /* Adjust Technologies Grid */
  .technologies-grid {
    grid-template-columns: 2fr 2fr;
  }

  .tech-card {
    font-size: 7px;
    padding: 10px;
  }

  /* Snake Game Section */
  .snake-container {
    flex-direction: column;
    align-items: center;
  }

  /* Adjust Canvas Size for Snake Game */
  #snakeCanvas {
    width: 100%;
    height: auto;
  }

  /* Leaderboard Section */
  .leaderboard {
    padding: 10px;
    font-size: 18px;
  }
}
