@import url("https://fonts.googleapis.com/css?family=Russo One|Unbounded");
html { scroll-behavior: smooth; }

body{
    background-color: #181818;
    font-family: "Unbounded";
    color: whitesmoke;
    text-align: center;
    padding: 0px;
    margin:0;
}


#container{
    margin-left: 12rem;
    margin-right: 12rem;
    text-align: left;
}

/***HEADERS***/

h1{
    padding: 1rem 2rem;
    margin: 0.1rem 0.4rem;
    font-size: 5rem;
    font-family: "Russo One";
    text-align: center;
    letter-spacing: 0.1rem;
    cursor: default;
    position: relative;
    z-index: 10;
}

h2 {
    font-size: 3rem;
}

h2[id]{
    letter-spacing: -0.4rem;
}

h2[id]:before{
    display: block;
    height: 8rem;
    margin-top: -8rem;
    visibility: hidden;
    content: "";
}

article:hover > h2 span{
    animation: letter-wave 0.8s normal;
    animation-delay: calc(100ms * var(--position));
    display: inline-block;
}

h3{
    font-size: xx-large;
}

p{
    font-size: large;
    line-height: 1.6;
}

@keyframes letter-wave {
    25%{ transform: translateY(0);}
    50%{  transform: translateY(-1.4rem);}
    75%{ transform: translateY(0);}
    100%{ transform: translateY(0);}
}


/***LOGO***/

.logo{
    float: left;
    position:absolute;
    left: 4rem;
    height: 7rem;
    width: 7rem;
    bottom: 0.1rem;
}

#filled-logo{
    transition:all 0.5s ease;
    opacity: 0%;
}

#unfilled-logo:hover{
    display: none;
}

#logo-link:hover #filled-logo{
    opacity: 100%;
}

/***SQUIGGLY LINE***/
.squiggly-line {
    fill: none;
    stroke: #b12c4d;
    stroke-width: 4;
    stroke-dasharray: 40;
    stroke-linecap:butt;
    animation: squiggle 3s linear infinite;
    width:25rem;
    position: relative;
    transform: translateY(-3rem);
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -2rem;
    z-index: 1;
  }
  @keyframes squiggle {
    to {
      stroke-dashoffset: 80;
    }
  }

/***BANNER***/

#banner{
    margin-top:1.6rem;
    margin-bottom:5rem;
    height: 38rem; 
    width: 100%;
    background-image:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/rock-climber-banner.jpg");
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-text h2,.banner-text h3{
    text-align: center;
    position: relative;
    transform: translateY(60%);
    color: whitesmoke;

}

#arrow-down{
    display: block;
    width: 4rem;
    height: 4rem;
    position:relative;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.5s ease;
    transform: translateY(200%);
}

#arrow-down:hover{
    width: 4.3rem;
    height: 4.3rem;
}

/***NAV BAR***/

nav{
    text-align: center;
    position: sticky;
    top: 0;   
    background-color: #181818c5;
    z-index: 10;
    padding: 1rem;
    backdrop-filter: blur(6px);
    border-width: 0;
    border-bottom: 0.4rem;
    border-style: solid;
    border-color:#181818;
}

a.menu-button{
    border: 0.3rem solid #b12c4d;
    border-radius: 0.6rem;
    padding: 1rem 2rem;
    color: whitesmoke;
    text-decoration: none;
    display: inline-block;
    font-family: "Russo One";
    font-size: 2rem;
    margin: 0.1rem 0.4rem;
    cursor: pointer;
    letter-spacing: 0.1rem;
    background-color: #181818;
    background: linear-gradient(to right, #181818 50%, #b12c4d 50%);
    background-size: 200% 100%;
    background-position:left bottom;
    transition:all 0.5s ease;
}

a.menu-button:hover{
    color: #181818;
    background-position:right bottom;
}

/***IMAGES***/

.image-container{
    border-radius: 2rem;
    position:relative;
    text-align: center;
    height: 16em;
    width: 16em;
    float: right;
    margin: 0.3rem 4rem 0.3rem 0.6rem;
}

.square{
    stroke-linecap: round;
    width: 300px;
    height: 300px;
    transition: all 1s cubic-bezier(.51,2.41,.13,-0.11);
    position: absolute;
}

.square-1{
    fill:#b12c4d;
    z-index: 3;
}

.square-2{
    fill:#771e34;
    z-index: 2;
}

.square-3{
    fill: #501423;
    z-index: 1;
}

.image-container:hover .square-1{
    transform-origin: center;
    transform: rotate(10deg);
}
.image-container:hover .square-2{
    transform-origin: center;
    transform: rotate(15deg);
}
.image-container:hover .square-3{
    transform-origin: center;
    transform: rotate(20deg);
}

.image{
    position: absolute;
    height:16.1rem;
    width:16.1rem;
    border-radius: 0.8rem;
    z-index: 4;
    transition: all 1s cubic-bezier(.51,2.41,.13,-0.11);
}

.image-container:hover .image{
    transform-origin: center;
    transform: rotate(5deg);
}

/***FOOTER***/

footer{
    padding: 6rem;
    margin-top: 3rem;
    background-color:#000000;
    text-align: center;
    position: relative;
}


.footer-link{
    margin-right: 5rem;
    text-decoration: none;
    color:whitesmoke;
    padding-bottom: 0.2rem;
    border-width: 0;
    border-bottom: 0.1rem;
    border-style: solid;
    border-color:#b12c4d;
    transition: all 0.5s ease;
}

.footer-link:hover{
    border-width: 0;
    border-bottom: 0.4rem;
    border-style: solid;
    border-color:#b12c4d;
    border-radius: 0.5rem;
}

.footer-link img{
    height: 1.5rem;
    padding-right: 0.3rem;
    margin-bottom: -0.3rem;
}

footer div{
    width: 10rem;
    display: none;
    border-color: darkgray;
    border-width: 0.1rem;
    border-style: solid;
    box-shadow: 0 0 13px 0.3rem #b12c4d;
    transition: all 1s ease;
    position: absolute;
    bottom: 0.8rem;
    right: 26rem;
}

#about{
    cursor: help;
}

#about:hover ~ div{
    display: block;
    animation: grow 2s ease;
}

@keyframes grow {
    0% {
        display: block;
        opacity: 0;
        transform: scale(0);
    }
    100% {
        display: block;
        opacity: 1;
        transform: scale(1);
    }
}
