* {
    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;
  }
  

h1 {
    padding-top: 2rem;
    font-size: 5rem;
    color: white;
    text-align: center;
    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: #9B27FA;
}
h2 {
    padding-top: 2rem;
    font-size: 50px;
    color: white;
    text-align: center;
    animation: 3s moon ease-in
    
}
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 100px;
    width: 50%;
    animation: 3s moon ease-in
}

.image {

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

}
p {
    font-size: 30px;
    color: white;
    text-align: left;
    padding-top: 3rem;
    padding-left: 5rem;
    padding-right: 1rem;
    word-spacing: 5px;
    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: 1000px;
   animation: 1s fade ease-in;
   padding-top: 300px;
   padding-bottom: 5rem;
}
.grid figure {
    border: 5px solid rgb(189, 46, 255);
    border-radius: 20px;
}

.grid figure img{
    width: 100%;
    border-radius: 20px;
}
/* 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) {
        img {
            width: 70%;
        }
        ul li {
            padding-left: 3rem;
        }
        p {
            padding-right: 10px;
            padding-left: 1rem;
            font-size: 1em;
        }
    }

    @media only screen and (min-width: 1200px) {
        img {
            width: 50%;
        }
        ul li {
            padding-left: 5rem;
        }
        p {
            padding-right: 20px;
            padding-left: 2rem;
            font-size: 2rem;
        }
    }