@font-face {
    font-family: "The Historia Demo";
    src: url("fonts/thehistoriademo-webfont.woff2") format("woff2"),
      url("fonts/thehistoriademo-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

html, main, body {
    background: linear-gradient(159deg, rgba(34,30,63,1) 0%, rgba(40,0,255,1) 50%, rgba(116,69,252,1) 100%);
    /* background-color: #fff; */
}

h1 {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    color: #fff;
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 15px 18px rgba(0,0,0,.1);
    background-color: #fff;
}

.topbar {
    background: rgba(22, 22, 45, 0.3);
    padding-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.logo img {
    width: 80px;
    margin-top: 10px;
    margin-left: 10px;
}

.top-nav {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: -110vh;
    background-color: #16162d;
    border-bottom-right-radius: 100%;
    border-bottom-left-radius: 100%;
    transition: all 650ms cubic-bezier(1, 0, 0, 1);
    z-index: 1000;
}

.nav-list {
    list-style: none;
    background-color: #000000;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

li {
    margin: 0 2rem;
}

.nav-list {
    font-family: "The Historia Demo", "Roboto", sans-serif;
    font-size: 3.5rem;
    padding: 1rem;
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-link {
    font-family: "The Historia Demo", "Roboto", sans-serif;
    font-size: 3.5rem;
    padding: 1rem;
    background-clip: text;
    -webkit-background-clip: text;
}

.nav-link:hover,
.nav-link:focus {
    background: linear-gradient(to top, #ffe838, #fd57bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-nav.open {
    top: 0;
    border-radius: initial;
}

.menu-toggler {
    position: absolute;
    top: 3.1rem;
    right: 5rem;
    width: 3.5rem;
    height: 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1500;
    opacity: 1;
    transition: transform 650ms ease-out;
}

.menu-toggler.open {
    transform: rotate(-45deg);
}

.bar {
    background: linear-gradient(to right, #ffe838, #fd57bf);
    width: 100%;
    height: 4px;
    border-radius: 0.8rem;
}

.bar.half {
    width: 50%;
}

.bar.start {
    transform-origin: right;
    transition: transform 650ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
}

.open .bar.start {
    transform: rotate(-450deg) translateX(0.8rem);      
}

.bar.end {
    align-self: flex-end;
    transform-origin: left;
    transition: transform 650ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
}

.open .bar.end {
transform: rotate(-450deg) translateX(-0.8rem);
}

form {
    padding: 5rem 7rem;
}

@media screen and (max-width: 1280px) {
    .nav-list {
      flex-direction: column;
    }
  
    li {
      margin: 2rem 0;
    }
  
    .nav-link {
      font-size: 4.5rem;
    }
}

@media screen and (max-width: 768px) {
    .logo img {
      width: 70px;
    }
  
    .topbar {
      padding-bottom: 5px;
    }
}

@media screen and (max-width: 600px) {
    .menu-toggler {
      top: 2rem;
      right: 2rem;
    }
  
    .logo img{
      width: 45px;
    }
  
    .nav-link {
      font-size: 3.5rem;
    }
}

@media screen and (max-width: 400px) {
    .nav-link {
      font-size: 1rem;
      padding: 0.3rem;
    }
    body{
        font-size: 1rem;
    }
    .menu-toggler {
        width: 40px;
        height: 30px;
        top: 20px;
    }
    
    textarea::placeholder,
    textarea::-webkit-input-placeholder,
    textarea:-moz-placeholder,
    textarea::-moz-placeholder,
    textarea:-ms-input-placeholder,
    textarea::-ms-input-placeholder {
        content: '';
    }
}