html, body {
    scroll-behavior: smooth;
}
body {
    background-color: #1d021d;
    margin: 0;
    padding: 0;
    color: white;
}
.top {
    --offset: 50px; 
    position: sticky;
    bottom: 20px;
    left: 90%;
    z-index: 7;
    margin-right:10px; 
    place-self: end;
    margin-top: calc(100vh + var(--offset));
    
    /* visual styling */
    text-decoration: none;
    padding: 10px;
    font-family: sans-serif;
    color: #fff;
    background: #4e1040;
    border: 2px solid #e70ae4;
    border-radius: 100px;
    white-space: nowrap;
  }
#navbar {
    background-color: #7d257b;
    background: linear-gradient(to bottom, black 42%, #7d257b 100%);
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s; 
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    box-shadow: 0px 2px 10px black;
    text-shadow: 0px 0px 5px black;
    z-index: 8;
}
#Insane {
    max-height: 1.5em;
    margin: 0;
}
#navbar h1 {
    margin: 0.5em 0 -0.5em; 
}
#Logo {
    max-height: 1.5em;
    transform: translatey(-6px);
    margin: 0;
}
#navbar #flex a {  
    display: block;
    color: white;
    text-align: center;
    padding: 1em;
    text-decoration: none;
    font-size: 1.5em;
}

#flex {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropbtn, .dropbtn1 {
    background-color: transparent;
    color: white;
    padding: 1em;
    font-size: 1.5em;
    border: none;
    outline: none;
    margin: 0;
    text-shadow: 0px 0px 5px black;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #6c216b;
    min-width: 8em;
    box-shadow: 0em 0.5em 1em 0em rgba(0,0,0,0.2);
    z-index: 7;
}

.dropdown-content1 {
    display: none;
    position: absolute;
    background-color: #6c216b;
    min-width: 8em;
    box-shadow: 0em 0.5em 1em 0em rgba(0,0,0,0.2);
    z-index: 7;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-top: 1px solid black;
}

.dropdown-content1 a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-top: 1px solid black;
}

#navbar #flex a:hover, .dropdown:hover .dropbtn, .dropdown1:hover .dropbtn1{
    background-color: #6c216b;
}

#navbar #flex .dropdown a:hover, #navbar #flex .dropdown1 a:hover{
    background-color: #4e1040;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown1:hover .dropdown-content1 {
    display: block;
}

.dropdown:hover .dropbtn, .dropdown1:hover .dropbtn1{
    background-color: #6c216b;
}

.dropdown-content a:hover {
    background-color: #ddd;
}
.dropdown-content1 a:hover {
    background-color: #ddd;
}

/*V Main V*/
.ps {
    position: relative;
    margin-top: 5.5em;
    z-index: 6;
    transform: rotate(1deg) skewX(1deg);
}
.ps1 {
    position: relative;
    top: 36px;
    z-index: 6;
    transform: rotate(1deg) skewX(1deg);
}
#ps1 {
    height: 80px;
    width: 100%;
    background-color: #912d8f;
    box-shadow: 0px 2px 10px black;
    position: relative;
    z-index: 5;
}
#ps2 {
    height: 20px;
    width: 100%;
    background-color: #6c216b;
    box-shadow: 0px 2px 10px black;
    position: relative;
    z-index: 4;
}
#ps3 {
    height: 20px;
    width: 100%;
    background-color: #481647;
    box-shadow: 0px 2px 10px black;
    position: relative;
    z-index: 3;
}
#ps4 {
    height: 20px;
    width: 100%;
    background-color: #240b24;
    box-shadow: 0px 2px 10px black;
    position: relative;
    z-index: 2;
}
main p {
    text-align: center;
    font-size: 3em;
    margin: 2em 0 3.25em 0;
}
#back{
    color: white;
    text-decoration: none;
    font-size: 0.5em;
    transition: 0.3s;
}
#back:hover {
    text-decoration: underline;
}

/*V Footer V*/
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 8; /* Sit on top */
    padding-top: 1em; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: scroll; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    background-color: #1d021d;
    margin: 5em auto 5em auto;
    padding: 0;
    border: 1px solid black;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
  }
  
  /* Add Animation */
  @-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
  }
  
  @keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
  }
  
  /* The Close Button */
  .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover, .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .modal-header {
    padding: 2px 16px;
    background-color: #912d8f;
    color: white;
  }
  
  .modal-body {
    padding: 2px 16px;
}
  
  .modal-footer {
    padding: 2px 16px;
    background-color: #912d8f;
    color: white;
  }
  .modal-footer a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    transition: 0.3s;
  }
  .modal-footer a:hover {
    text-decoration: underline;
  }
  /* Add Animation */
  @-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0} 
    to {bottom: 0; opacity: 1}
  }
  
  @keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 0; opacity: 1}
  }
  
  @-webkit-keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
  }
  
  @keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
  }
footer {
    background: linear-gradient(to bottom, #912d8f 42%, black 100%);
    background-color: #b63bb4;
    position: relative;
    z-index: 7;
    padding: 1em;
    margin: 0 0 -20px;
    box-shadow: 0px -2px 10px black;
    text-align: center;
}
#footerlinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: Center;
    margin-top: 20px;
}
#myBtn4, #myBtn5, #myBtn6, #myBtn7 {
    background-color: transparent;
    border: none;
    color: white;
    transition: 0.3s;
    padding: 0.5em;
    cursor: pointer;
}
#myBtn4:hover, #myBtn5:hover, #myBtn6:hover, #myBtn7:hover {
    text-decoration: underline;
    transform: scale(1.1);
}
#copyright {
    text-align: Center;
    color: white;
    margin-top: 20px;
}
.footersocial {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 20px 0;
}
.footersocial img{
    height: 50px;
    transition: 0.3s;
}
.footersocial img:hover {
    transform: scale(1.1);
}