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

html {
    scroll-behavior: smooth;
}

/*Mobile*/
#logo {
    padding-left: 15px;
    max-width: 70px;
}

header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: #424242;
    position: fixed;
    z-index: 10;
    padding: 15px;
    width: 100%;
    height: 80px;
}

/* mobile nav*/
#mobile.show {
    display: block;
    position: absolute;
    width: 100%;
    height: 100vh;
    background: #424242;
    top: 0px;
    left: 0px;
    text-align: center;
    padding: 30px;
    padding-top: 10vh;
    z-index: 100;
} 

#mobile.show li {
    display: block;
    list-style: none;
    line-height: 2em;
    font-size: 2rem;
}

.bar1,.bar2,.bar3 {
    width: 35px;
    height: 5px;
    background-color: white;
    margin: 6px;
    transition: 0.4s;
}
  
#hamburger {
    display: inline-block;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    right: 4px;
    top: 6px;
    z-index: 110;
}

.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

#mobile {
    display: none;
}
/*--------*/

/*desktop nav*/
nav {
    display: flex;
    margin-right: 0%;
    margin-left: auto;
} 

#desktop {
    display: none;
    height: 100%;
    margin-right: 0%;
    margin-left: auto;
    display: flex;
    align-items: center;
    padding-right: 25px;
}

#desktop li, #mobile li {
    width: 100%;
    list-style-type: none;
}

#desktop li a, #mobile li a{
    padding-left: 15px;
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

#desktop a:hover, #mobile a:hover {
    color: #7c7efc;
    text-decoration: underline;
}
/*--------*/

#desktop {
    display: none;
}

#hamburger {
    display: block;
}

/*MAIN*/
body {
    min-height: 100vh;
    background-color: rgb(14, 14, 14);
}

main {
    max-width: 300px;
    margin: 0 auto;
}

#intro {
    padding-top: 100px;
    padding-bottom: 25px;
}

#Animation1, #Animation2, #Animation3, #Animation4{
    max-width: 300px;
    width: 300px;
    height: 300px;
    margin-bottom: 15px;
    border-radius: 10px;
}

#first, #second, #third, #fourth {
    padding-bottom: 25px;
}

footer {
    background-color: #0c1263;
    text-align: center;
    padding: 25px;
    height: 70px;    
    margin-top: auto;
}

h1, h2 {
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    color: #7c7efc;
    padding-bottom: 10px;
}

h1 {
    font-size: 40px;
}

h4, p {
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    color: white;
    /* color: rgb(15, 15, 15); */
}

#Animations p {
    font-size: 15px;
    padding-top: 7px;
    color: #a1a3ff;
}

footer p {
    font-size: 15px;
    color: white;
}

/*Mobile*/

/*ipad*/
@media only screen and (min-width: 810px) {
    main {
        max-width: 750px;
    }
}

@media only screen and (min-width: 1020px) {
    main {
        max-width: 1000px;
    }

    #reveal {
        display: show;
    }

    header {
        height: 100px;
    }

    #logo {
        max-width: 110px;
        display: grid;
        justify-content: center;
        align-items: center;
    }

    #hamburger {
        top: 15px;
    }

    #buttons {
        padding-top: 25px;
    }

    span {
        font-size: 65px;
    }

    p {
        font-size: 20px;
    } 
    
    footer {
        height: 100px;
        align-items: center;
        display: flex;
        justify-content: center;
    }
}

/*Desktop*/
@media only screen and (min-width: 1500px) {
    main {
        max-width: 1300px;
        /* background-color: #0c1263; */
    }

    .image-wrapper {
        position: relative;
        display: inline-block;
        margin: 10px;
        border-radius: 20px;
        overflow: hidden;
    }
    
    .image-wrapper img {
        transition: transform 0.3s ease;
        border-radius: 20px;
    }
    
    .image-wrapper:hover img {
        transform: scale(1.1); 
    }
    
    .overlay-text {
        display: show;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        font-family: "Comfortaa", sans-serif;
        font-size: 1.5rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        text-align: center;
    }
    
    .image-wrapper:hover .overlay-text {
        opacity: 1;
    }
    
    .overlay-text a {
        color: white;
        text-decoration: none;
    }
    
    .overlay-text a:hover {
        text-decoration: underline;
    }
    
    #reveal {
        display: none;
    }

    #desktop {
        display: flex;
    }

    #hamburger {
        display: none;
    }

    #mobile{
        display: none;
    }

    p {
        font-size: 22px;
    }

    #intro {
        padding-top: 120px;
        max-width: 1000px;
        margin: 0 auto;
    }

    #Animations{
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 1000px;
        gap: 40px;
        margin: 0 auto;
    }

    h2 {
        text-align: center;
    }

    h4, p {
        margin: 0 auto;
    }
}