*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

ul li{
    display: inline-block;
    padding-top: 2rem;
    padding-left: 5rem;
    animation: 2s fade ease-in;
}

body {
    background-color: black;
}

    /* fonts */
.permanent-marker-regular {
    font-family: "Permanent Marker", cursive;
    font-weight: 400;
    font-style: normal;
  }
  .megrim-regular {
    font-family: "Megrim", system-ui;
    font-weight: 400;
    font-style: normal;
  }
  .im-fell-english-regular {
    font-family: "IM Fell English", serif;
    font-weight: 400;
    font-style: normal;
  }
  
/* texts */
h1 {
    padding-top: 50px;
    font-size: 5rem;
    color: white;
    text-align: center;
    animation: 1s fade ease-in
    
}
h4 {
    padding-top: 3rem;
    font-size: 80px;
    color: white;
    animation: 1s fade ease-in
}

h3 {
    text-align: center;
    font-size: 20px;
    color: white;
    animation: 2s fade ease-in;
    padding-top: 1rem;
}
a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}
a:hover{
    color: #E82AFD;
}
h2 {
    padding-top: 3rem;
    font-size: 50px;
    color: white;
    text-align: center;
    animation: 3s moon ease-in
    
}

p {
    font-size: 2rem;
    color: white;
    text-align: center;
    padding-top: 3rem;
    animation: 3s moon ease-in   
}

/* images */
.image {

    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 100px;
    width: 50%;
    animation: 3s moon ease-in

}



  /* Grid */
  .grid {
    position: relative;
    margin: 0 auto;
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 200px;
   max-width: 2000px;
   animation: 1s fade ease-in;
   font-size: 50px;
   text-align: center;
   padding-top: 18.75rem;
   background: transparent;
   padding-bottom: 4rem;
}
.grid figure {
    border: 5px solid rgb(189, 46, 255);
    border-radius: 23px;
}

.grid figure img{
    width: 100%;
    border-radius: 20px;
    
}
/* .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #2e40cd;
    border-radius: 17px;
  }
  .text{
    color: white;
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: left;
  }

  .container {
    position: relative;
    max-width: 1200px;
  }

  .container:hover .overlay {
    opacity: 1;
  } */

  /* Footer */
footer {
    background-color: rgb(71, 71, 71);
}

footer ul li {
        display: inline-block;
        padding-top: 20px;
        padding-left: 5rem;
        padding-bottom: 1rem;
        animation: 2s fade ease-in;
}

/* Scroll bar */

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 10px #512AFD; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #9B27FA; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #E82AFD; 
}

    /* Animation */

  @keyframes fade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

    @keyframes moon {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    @media only screen and (min-width: 400px) {
        .image {
            width: 80%;
        }

        h1 {
            font-size: 3rem;
        }
        ul li {
            padding-left: 3rem;
        }
        p {
            padding-right: 10px;
            padding-left: 1rem;
            font-size: 1rem;
        }
    }
    @media only screen and (min-width: 1200px) {
        .image {
            width: 50%;
        }

        h1 {
            font-size: 5rem;
        }

        ul li {
            padding-left: 5rem;
        }

        p {
            font-size: 2rem;
        }
    }
