/* *, *::before, *::after {
    box-sizing: border-box;
  }
  * {
    margin: 0;
  }
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  input, button, textarea, select {
    font: inherit;
  }
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  #root, #__next {
    isolation: isolate;
  }

   */

   body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
  }
   
.topnav {
  display: none; /* Hide the entire topnav by default */
}

@media only screen and (max-width: 700px) {
  .topnav {
    overflow: hidden;
    background-color: rgba(79, 75, 128);
    position: relative;
    display: block;
  }

  /* Hide the links inside the navigation menu (except for logo/home) */
  .topnav #myLinks {
    display: none;
  }

  /* Style navigation menu links */
  .topnav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
  }

  /* Style the hamburger menu */
  .topnav a.icon {
    background: rgb(27, 26, 47);
    display: block;
    position: absolute;
    right: 10px;
    top: 15px;
    border-radius: 1rem;
  }

  /* Add a grey background color on mouse-over */
  .topnav a:hover {
    background-color: #9fa9df;
    color: rgb(53, 51, 91);
  }

  /* Style the active link (or home/logo) */
  .active {
    background-color: rgb(81, 83, 129);
    color: #9fa9df;
  }
}

@media only screen and (max-width: 700px) {
  #main-nav {
    display: none; /* Hide the entire navigation by default */
  }
}

.responsive-img {
  max-height: none; /* No max-height by default */
}

/* Media query for screens smaller than 700px */
@media (max-width: 699px) {
  .responsive-img {
    max-height: 650px; /* Set max-height for smaller screens */
    height: auto; /* Ensure height is adjusted automatically */
  }
}

@media (max-width: 767px) {
  .background-div {
    height: 140px;
  }
}

/* Media query for screens between 700px and 1025px */
@media (min-width: 768px) and (max-width: 1024px) {
  .background-div {
    height: 170px;
  }
}

@media (min-width: 1024px) {
  .background-div {
    height: 200px;
  }
}

@media (min-width: 1280px) {
  .background-div {
    height: 200px;
  }
}

.code-container {
  width: 600px;
  height: 500px;
  overflow: auto; /* Allows scrolling if content overflows */
  border: 4px solid #232246;
  background-color: #adacc9;
  padding: 10px;
  box-sizing: border-box; /* Includes padding and border in the element's total width and height */
  border-radius: 5px;
}

@media (max-width: 500px) {
  .code-container {
    width: 250px;
    height: 300px;
  }
}

@media (min-width: 501px) and (max-width: 700px) {
  .code-container {
    width: 400px;
    height: 350px;
  }
}

@media (min-width: 701px) and (max-width: 950px) {
  .code-container {
    width: 400px;
    height: 450px;
  }
}

@media (min-width: 951px) and (max-width: 1386px) {
  .code-container {
    width: 400px;
    height: 450px;
  }
}

pre {
  margin: 0; /* Remove default margin */
  white-space: pre-wrap; /* Allows the code to wrap within the container */
  background-color: #adacc9;
}

code {
  font-family: "Courier New", Courier, monospace;
  color: black;
}

@media (max-width: 500px) {
  .self-picture {
    width: 150px;
    height: 200px;
  }
}

@media (min-width: 501px) and (max-width: 700px) {
  .self-picture {
    width: 250px;
    height: 300px;
  }
}

@media (min-width: 701px) and (max-width: 950px) {
  .self-picture {
    width: 400px;
    height: auto;
  }
}

@media (min-width: 1280px) {
  .hero-links {
    gap: 4rem;
  }
}

@media (min-width: 1700px) {
  .hero-links {
    gap: 6rem;
  }
}

@media (min-width: 1700px) {
  .hero-links {
    padding-left: 8rem;
  }
}

@media (max-width: 500px) {
  .code-statement {
    font-size: 15px;
  }
}

@media (min-width: 501px) and (max-width: 700px) {
  .code-statement {
    font-size: 15px;
  }
}

@media (min-width: 701px) and (max-width: 1200px) {
  .code-statement {
    font-size: 25px;
  }
}

@media (min-width: 1201px) {
  .code-statement {
    font-size: 30px;
  }
}

@media (max-width: 500px) {
  .code {
    font-size: 20px;
  }
}

@media (min-width: 501px) and (max-width: 700px) {
  .code {
    font-size: 25px;
  }
}

@media (min-width: 701px) and (max-width: 1200px) {
  .code {
    font-size: 30px;
  }
}

@media (min-width: 1201px) {
  .code {
    font-size: 35px;
  }
}

/* Specifically Portfolio Below */

.flex {
  display: flex;
}

.flex-grid {
  flex-wrap: wrap;
}

.container {
  width: auto;
  /* Adjust width for the number of items per row */
  padding: 2vw;
  background-color: white;
}

.container img {
  width: 20rem;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.container h1 {
  font-family: monospace;
  padding-top: 1rem;
  font-weight: 700;
}

@media (max-width: 500px) {
  .container img {
    width: 10rem;
  }
}

.container:hover img {
  opacity: 0.4;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;

  padding-top: 2rem;
  padding-bottom: 5rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: white;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 640px) {
  .close {
    font-size: 35px;
    right: 10px;
  }
}

@media (max-width: 330px) {
  .close {
    font-size: 25px;
    right: 10px;
  }
}

.modal img {
  display: block;
  margin: auto;
  width: 50rem;
  height: auto;
}

.nav-hidden {
  position: fixed; /* Ensure it's positioned properly */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  z-index: 500; /* Ensure it's behind the modal */
  display: none; /* Hide the navigation bar */
}

/* Optional: Adjust navbar opacity */
.nav-opacity {
  opacity: 0.2; /* Reduce opacity to make it less visible */
  pointer-events: none; /* Prevent interaction */
  transition: opacity 0.4s ease; /* Smooth transition */
}
/* Specifically Portfolio Above */

.arrow {
  animation: shakeY;
  animation-duration: 4s;
  animation-delay: 3s;
  animation-iteration-count: 50;
}

@media (max-width: 600px) {
  .arrow {
    left: 10px;
    top: 65%;
    width: 60px;
  }
}

@media (min-width: 601px) and (max-width: 799px) {
  .arrow {
    left: 10px;
    top: 60%;
    width: 70px;
  }
}

@media (min-width: 800px) and (max-width: 1000px){
  .arrow {
    left: 10px;
    top: 70%;
    width: 90px;
  }
}

@media (min-width: 1001px) {
  .arrow {
    left: 40px;
    top: 70%;
    width: 100px;
  }
}

.arrow2{
  animation: shakeY;
  animation-duration: 4s;
  animation-delay: 2s;
  animation-iteration-count: 50;
}

@media (max-width: 600px) {
  .arrow2 {
    left: 10px;
    top: 75%;
    width: 50px;
  }
}

@media (min-width: 601px) and (max-width: 799px) {
  .arrow2 {
    left: 10px;
    top: 70%;
    width: 70px;
  }
}

@media (min-width: 800px) and (max-width: 1000px){
  .arrow2 {
    left: 10px;
    top: 70%;
    width: 90px;
  }
}

@media (min-width: 1001px) {
  .arrow2 {
    left: 40px;
    top: 70%;
    width: 100px;
  }
}

@media (max-width: 500px) {
  .curve {
    clip-path: polygon(0% 79%, 0% 0%, 100% 0%, 100% 78%, 67% 88%);
  }
}

@media (min-width: 501px) and (max-width: 799px) {
  .curve {
    clip-path: polygon(0% 79%, 0% 0%, 100% 0%, 100% 78%, 67% 88%);
  }
}

@media (min-width: 800px) {
  .curve {
    clip-path: polygon(0% 83%, 68% 99%, 100% 81%, 100% 0%, 0% 0%);
  }
}
