:root {
    /*
  --background: #e7cfb4;
  --midground: #ffc18c;
  --foreground: #da6d42;
  --header: #563232;
  --textprimary: #84240c;
  */

  --background: #a3acbd;
  --background1: #c2d3f1;
  --background2: #929eb1;
  --midground: #c5c9d3;
  --foreground: #2596be;
  --header: #324867;
  --textprimary: #27161b;
  --glow: #bea4ab;
  --backdrop: black;
}
body{
    background-color: var(--foreground);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(34deg, var(--background1), var(--background2));
    overflow-x: hidden;
}

#panel-section{
    min-height: 10vh;
    height: fit-content;
    width: 100%;
    background-color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#name{
    height: 8vh;
    display: flex;
    align-items: center;
}
#name > img{
    height: 100%;
    margin: 20px;
}
#name > h1{
    font-family: "Black Ops One", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 250%;
    color: var(--header);
}
nav{
    height: 80%;
    padding: 0 20px;
    border-left: var(--header) solid 2px;
    display: flex;
    align-items: center;
}
nav > a{
    font-family: "Black Ops One", system-ui;
    font-weight: 400;
    font-style: normal;
    margin: 0 4px;
    padding: 4px;
    border-radius: 5px;
    font-size: 150%;
    color: var(--header);
    text-decoration: none;
    background-color: none;
    transition: box-shadow 0.4s, background-color 0.2s;
}
nav > a:hover{
    background-color: var(--midground);
    box-shadow: 0 0 10px 2px var(--midground), inset 0 0 10px var(--midground);
}

#grid-container{
    min-height: 80vh;
    width: 90%;
    display: grid;
    grid-template-rows: 47% 47%;
    row-gap: 6%;
    height: max-content;
}
.section{
    display: grid;
    grid-template-columns: 33% 34% 33%;
}
#section-middle{
    column-gap: 3%;
    row-gap: 3%;
    grid-template-columns: 31% 31% 32%;
    height: max-content;
}
#section-top{
    border-radius: 10px;
    overflow: hidden;
}
.photo-container{
    width: 100%;
    background-image: linear-gradient(90deg, var(--midground) 0%,var(--backdrop) 5%, var(--backdrop) 95%, var(--midground) 100%);
    position:relative;
}
.fade{
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 15px 20px var(--midground);
}
.photo-slide{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-image: url(images/controller.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    width: 95%;
    height: 95%;
}
#stutey3040{
    background-color: var(--midground);
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--header);
}
#border{
    background-color: var(--background);
    box-shadow: 6px 6px 4px 1px #44526e;
    border: var(--header) 3px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 70%;
    height: 90%;
}
#border > h3{
    font-size: 250%;
    margin: 0;
}
#border > h4{
    font-size: 200%;
    margin: 0;
}
#border > img{
    height: 20vh;
}
#videos{
    background-color: var(--midground);
    padding: 15px;
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--textprimary);
    border-radius: 10px;
}
.sect-name > h3 {
    margin: 0;
    font-size: 200%;
}
#manuals{
    background-color: var(--midground);
    padding: 15px;
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--textprimary);
    border-radius: 10px;
    font-size: small;
}
address{
    display: grid;
    grid-template-columns: 10% 20% auto;
    background-color: var(--midground);
    color: var(--textprimary);
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding: 12% 6%;
    border-radius: 10px;
}
.image-container{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}
.image-container > img{
    /*filter: invert(17%) sepia(53%) saturate(3238%) hue-rotate(355deg) brightness(87%) contrast(96%);*/
    filter: invert(20%) sepia(6%) saturate(3149%) hue-rotate(294deg) brightness(91%) contrast(94%);
    font-size: 100%;
}
#pin-image{
    height: 25px;
}
#email-image{
    height: 18px;
}
#phone-image{
    height: 23px;
}
#face-image{
    height: 23px;
}
address > h6{
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 100%;
}
address > a{
    display: flex;
    align-items: center;
    color: var(--textprimary);
}

footer{
    height: 5vh;
    width: 96%;
    background-color: var(--foreground);
    color: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding: 0 2%;
}
.photo-slide-out{
    animation: 3s 1 forwards slide-out;
}
.photo-slide-in{
    z-index: 0;
    animation: 3s 1 forwards slide-in;
}
@keyframes slide-out{
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
@keyframes slide-in{
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

main > h2{
    text-align: center;
    font-size: 200%;
    font-family: "Black Ops One", system-ui;
    font-weight: 400;
    font-style: normal;
    color: var(--textprimary);
}

.body-section{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.small-grid{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.small-grid > video{
    width: 80%;
    margin-top: 10px;
}
.sect-name > a{
    color: var(--textprimary);
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.sect-name{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#video-page{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}
.videos > h5{
    color: var(--textprimary);
    text-align: center;
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 150%;
    margin-top: 30px;
    margin-bottom: 10px;
}
.body-section > a{
    color: var(--textprimary);
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: block;
    text-align: center;
    margin:10px;
}
#contents>a{
    color: var(--textprimary);
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 10px;
}
#manual-links{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
    min-height: 70%;
}
#manual-links > li > a {
    color: var(--textprimary);
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
#manual-page{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}
#manual-page > h5{
    color: var(--textprimary);
    text-align: center;
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 150%;
    margin-top: 30px;
    margin-bottom: 10px;
}
#videos-grid{
    width: 90%;
    display: grid;
    grid-template-columns: 30% 30% 30%;
    gap: 5%;
}
.videos > video{
    width: 100%;
}
#manuals-grid{
    text-align: center;
    width: 100%;
    display: grid;
    grid-template-columns: 45% 45%;
    gap: 5%;
    margin-bottom: 700px;
}
#manuals-grid > div{
    margin: auto;
}