*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    background: #0a0a0a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
    width: 100%;
    height: 100vh;
}
nav {
    width: 100%;
    height: 7.5vh;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
}
nav h1 {
    width: 100%;
    margin: 0 50px 10px 0;
    color: white;
    text-shadow: 2px 1px 1px #006aff;
    display: flex;
    align-items: center;
    justify-content: center;
}
nav h1 span {
    font-size: 12pt;
    color: #ffed28;
}
.links {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
nav a{
  position: relative;
  display: flex;
  text-decoration: none;
  color: #2980fa;
  padding: 15px 15px;
  overflow: hidden;
  z-index: 0;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #202020, #006aff);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  z-index: -1;
}

nav a:hover::after {
  transform: scaleY(1);
}
nav a:hover {
  color: white;
}
nav i {
    color: white;
}
#sidebar-active {
    display: none;
}
.open-sidebar, .close-sidebar {
    padding: 0 20px;
    display: none;
    cursor: pointer;
    font-size: 25px;
}
.main {
    width: 100%;
}
.main h1, .main h2, .main p {
    color: white;
    margin: 10px 0 0 15px;
    line-height: 30px;
}
.main a {
    background: #ffed28;
    color: black;
    margin-left: 15px;
    border-radius: 5px;
    text-decoration: none;

    display: flex;
    width: 100px;
    height: 35px;

    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    z-index: 0;
}
.main a::after {
    content: '';
    position: absolute;

    height: 100%;
    width: 100%;

    left: 0;
    bottom: 0;

    background: linear-gradient(to top, red, orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
    z-index: -1;

}
.main a:hover::after {
    transform: scaleX(1);
}
.main a:hover {
    color: white;
}
.main p a {
    background: none;
    color: blue;
    margin-left: 0;
    border-radius: 0;
    text-decoration: none;

    display: contents;
    width: max-content;
    height: max-content;

    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    z-index: -11000;

    transition: all .25s ease-in-out;
}
.main p a::after {
    content: '';
    position:unset;

}
.main p a:hover {
    color: yellow;
}

@media only screen and (max-width: 517px) {
    .links {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    width: 300px;

    background-color: #202020;
    box-shadow: -5px 0 5px rgba(0,0,0,0.75);
    transition: .75s ease;

    }
nav a {
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 30px 30px;
    justify-content: flex-start;
}
nav a::after {
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(to left, #202020, #006aff);
}
nav a:hover::after {
    transform: scaleX(1);
}
.open-sidebar, .close-sidebar {
    display: block;
}
#sidebar-active:checked ~.links {
    right: 0%;
}
.main p {
    line-height: 20px;
}
}