@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(images/bg.png);
    background-size: cover;
    background-position: center;
    /* will not scroll with the page */
    background-attachment: fixed; 
    padding: 50px;
}

.container {
    position: relative;
    width: calc(100% - 100px);
    min-height: calc(100vh - 280px);
    min-height: 300px;
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
}

header {
    position: absolute;
    top: -40px;
    right: 20px;
    left: 20px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    backdrop-filter: blur( 7.5px );
     -webkit-backdrop-filter: blur( 7.5px );
    border: 1px solid rgba(255, 255, 255, .25);
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-left: 1px solid rgba(255, 255, 255, .5);
}

header .logo {
    color: seagreen;
    font-weight: 700;
    text-decoration: none;
    font-size: 2em;
}

header ul {
    display: flex;

}

header li {
    list-style: none;
    margin: 0 10px;
}

header a {
    text-decoration: none;
    font-weight: 500;
    color: seagreen;
    padding: 8px 16px;
    border-radius: 25px;
}

header a:hover,
header a.active {
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}

.content {
    transform: translateX(-100px);
    max-width: 700px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    backdrop-filter: blur( 7.5px );
     -webkit-backdrop-filter: blur( 7.5px );
    border: 1px solid rgba(255, 255, 255, .25);
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-left: 1px solid rgba(255, 255, 255, .5);
    padding: 50px;
    padding-left: 120px;
}

.content h2 {
    font-size: 3em;
    color: seagreen;
}

.content p {
    font-size: 1.2em;
    color: seagreen;
}

.content a {
    display: inline-block;
    padding: 15px 30px;
    background: #fff;
    color: seagreen;
    margin-top: 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.img-box {
    transform: translate(-50px, 50px);
    
}

.img-box img {
    max-width: 400px;
    animation: animate 5000ms ease-in infinite;
}

@keyframes animate {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(50px);
    }
}

.social img {
    width: 30px;
    transition: 500ms;
}

.social {
    position: absolute;
    right: -25px;

}

.social li {
    list-style: none;
}

.social a {
    text-decoration: none;
    padding: 5px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-top: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.social li:hover img {
    transform: rotate(360deg);
}

.copyright {
    position: absolute;
    bottom: 30px;
    left: 80px;
    color: seagreen;
}

@media (min-width: 1200px) {
    .container {
        justify-content: space-evenly;
    }
    .content {
        max-width: initial;
    }
}

@media (max-width: 992px) {
   section {
       padding: 50px 10px 10px;
   }

   .container {
       flex-direction: column;
       height: auto;
       padding: 20px;
   }

   .content {
       max-width: initial;
       transform: translateX(0);
       width: 100%;
       padding: 40px 20px;
       margin-top: -40px;
   }

   .content a {
       font-size: 1em;
       padding: 10px 20px;
   }

   header {
       position: relative;
       right: 0;
       left: 0;
       flex-direction: column;
       width: 100%;
       top: -60px;
       padding: 30px;
   }

   header ul {
       justify-content: center;
       margin-top: 10px;
       flex-wrap: wrap;
   }

   header li {
       margin: 3px;
   }

   header a {
       display: inline-block;
   }

   .img-box {
       margin-bottom: 50px;
   }

   @keyframes animate {
    0%, 100% {
        transform: translateY(-40px);
    }
    50% {
        transform: translateY(0px);
    }
}

   .social {
       position: relative;
       display: flex;
       flex-direction: row;
       right: 0;
   }

   .social li {
       margin: 0 10px;
   }

   .copyright {
       position: relative;
       left: 0;
       top: 0;
       width: 100%;
       text-align: center;
       margin-top: 30px;
   }
}

@media (max-width: 600px) {

    .container {
        width: 100%;
    }
    .content h2 {
        font-size: 1.5em;
    }

    .content p {
        font-size: 1em;
    }

    .social {
        right: 0;
    }

    .img-box{
        transform: initial;
        width: 100%;
        margin-bottom: 0;
    }

    .img-box img {
        max-width: 300px;
    }

    .copyright {
        font-size: 0.8em;
    }
}





