body{
    /*background: #1a1725;*/
    background: #4962d9;
    font-family: 'Press Start 2P', monospace;
    margin: 0;
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('./fonts/myfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@media screen and (max-width: 1300px) {
  .navbar__container {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0;
  }

  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    left: 0;
    right: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.3s ease;
    height: 50vh;
    z-index: -1;
    flex-direction: column;
  }

  .navbar__menu.active {
    background-color: #5c6696;
    top: 100%;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 99;
    max-height: fit-content;
    font-size: 1.6rem;
  }

  .navbar__toggle {
  display: block;
  cursor: pointer;
  z-index: 1000;
  margin-right: 25px;
}


  .navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
  }

  .navbar__item {
    width: 100%;
    height: auto;
  }
  .navbar__menu.active {
  opacity: 1;
  height: 50vh;
  z-index: 99;
}
  .navbar__links {
    width: 100%;
    display: table;
    padding: 1rem 0;
    text-align: center;
    display: block;
  }

  #mobile__menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }

  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
  }

#mobile-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}
#mobile-menu.is-active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 5px);
}

#mobile-menu.is-active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);
}

}




* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
}


h1{
  color: white;
  padding: 30px;
  transition: ease 1s font-size;
  text-shadow:
    -4px -4px 0 #000,  
     4px -4px 0 #000,
    -4px  4px 0 #000,
     4px  4px 0 #000;
    
}

p{
    line-height: 40px;
    color: #e6e8e9;
    position: relative;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    padding: 20px;
    text-shadow:
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}


.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: start;
  height: 100vh;
}


/* Card container */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: clamp(90px, 80vw, 500px);
  height: 300px;
  background: #1c2e84;
  border: 2px solid #19191a;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  color: #e6e8e9;
  text-align: center;
  z-index: 1;
  min-width: 250px;
}

/* Hover + Active Animations */
.card:hover {
  transform: scale(1.03);
}
.card_title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  margin-bottom: 10px;
  color: white;
}
/* Paragraph inside card */
.card p {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Text input */
.text_input {
  color: #000;
  font-family: 'Press Start 2P', monospace;
  width: 80%;
  text-align: center;
  height: 50px;
  padding: 10px 15px;
  border: 1.5px solid lightgrey;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  resize: none;
  overflow: hidden;
  white-space: nowrap;
  word-break: normal;
  font-size: 1.4rem;

}

.text_input:hover {
  outline: 2px solid lightgrey;
}
.text_input:focus {
  outline: 2px solid grey;
}
.text_input:active {
  transform: scale(0.97);
  transform: scaleX(.9);
}


.notify { 
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 40px;
  cursor: pointer;
  box-shadow: 0 10px #121e57;
  transition: all 0.2s;
  border: 2px solid #2e3650;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: black;
  background-color: white;
  transition: all 0.2s ease;
}

.notify:active{
  translate: 0 10px;
  box-shadow: 0 0px #121e57;
}

canvas {
  border: 20px solid #1c2e84;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  display: block;
  image-rendering: crisp-edges;

}

.corners{
  position: absolute;
  width: 100%;
  height: 91.65%;
  z-index: 1;
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  height: 80px;
  justify-content: center;
  align-items: center;
  background-color: #1c2e84;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar__container {
  position: relative;  /* Needed to contain the absolute logo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: auto; /* Allow full width */
  margin: 0 auto;
  padding-left: 20px;     /* Remove left padding to avoid extra space */
  padding-right: 20px; /* Keep right padding if desired */
}



#navbar__logo { 
  gap: 20px;  /* Take out of normal flow */
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  font-weight: normal;
  text-shadow:
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
  z-index: 1000;        /* Above other navbar elements */
}

#logo__picture {
  height: 60px;
  width: 60px;
  image-rendering: pixelated;
  flex-shrink: 0; /* prevent shrinking */
}
.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
  
}

.navbar__item {
  height: 80px;
}

.navbar__links {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 2rem;
  height: 100%;

}

.navbar__links:hover {
  color: #aaf0c1;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/*.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  display: inline;
}

.nav li a {
  color: white;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.0rem;
  text-shadow:
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.nav li a:hover {
  text-decoration: underline;
  color: #aaf0c1;
}*/


.aboutme a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding-right: 20px;
  text-shadow:
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
.aboutme a:hover {
    text-decoration: underline;
    color: #aaf0c1;
}

.centeredparagraph {
  color: #e6e8e9;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  text-align: center;
  line-height: 30px;
  padding: 20px;
  text-shadow:
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
}

#learntocode{
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 3rem;
  text-align: center;
  line-height: 60px;
  padding: 20px;
  text-shadow:
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
}