*{
    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: 3rem;
        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: #E82AFD;
    }
    h2 {
        padding-top: 3rem;
        font-size: 50px;
        color: white;
        text-align: center;
        animation: 3s moon ease-in
        
    }


img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 6.75rem;
    width: 40%;
    animation: 3s moon ease-in;
    border-radius: 1rem;
}

.image {

    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 6.75rem;
    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: 1500px;
   animation: 1s fade ease-in;
   font-size: 50px;
   text-align: center;
   padding-top: 18.75rem;
   background: transparent;
   padding-bottom: 5rem;
}
.grid figure {
    border: 5px solid rgb(189, 46, 255);
    border-radius: 1rem;
}

.grid figure img{
    width: 100%;
    border-radius: 10px;
}

hr.rounded {
    border-top: 8px solid white;
    border-radius: 5px;
}

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

footer ul li {
        display: inline-block;
        padding-top: 1rem;
        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: 1rem;
            }
        }
        @media only screen and (min-width: 1200px) {
            img {
                width: 40%;
            }
            ul li {
                padding-left: 5rem;
            }
            p {
                padding-right: 20px;
                padding-left: 2rem;
                font-size: 2rem;
            }
        }