*,
*::before,
*::after {
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
  font-family: Roboto;
  font-weight: 200;
  font-size: 1rem;
  color: white;
}

html{
    scroll-behavior: smooth;
}

#over-engineered-banner{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.851);
    width: 100%;
    height: 100vh;
    z-index: -2;
    top: 0;
    left: 0;
}

nav{
    width: 10%;
    height: 100%;
    position: fixed;
    left: 20%;

}

.nav-back{
    position: absolute;
    z-index: 0;
    inset: 0;             
    background-color: rgba(0, 0, 0, 0.623);
    filter: blur(2px);
    box-shadow: 2px 0px 3px rgba(0, 0, 0, 0.534);
}

nav ul{
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
    height: 10rem;
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 19rem;
}

nav a{
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
        padding: 1rem;
    padding-right: 2rem;
}
nav li{
    flex-grow: 1;
    background-color: #60877F;
    list-style-type: none;
    text-align: end;
}

nav li:hover{
    background-color: #6fa096;
}

nav li:active{
    background-color: #4e6e67;
}

video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.5);
    opacity: 0.5;
}

.back {
    /* Vignette */
    background-image:
        radial-gradient(circle at center,
            rgba(0,0,0,0) 65%,
            rgba(0,0,0,0.6) 100%
        ),
        url(images/BlueprintTilable.png);
    background-repeat: repeat;
    background-size: cover, 300px;
    background-position: center, -150px -150px;
    image-rendering: pixelated;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: -5;
}

.top-bar {
    width: 100%;
    height: 3rem;
    background-color: #60877F;
    position: fixed;
    top: 0;
    left: 0;
}

.top-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 15px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.237),
        rgba(0,0,0,0)
    );
    pointer-events: none;
}

.wrapper{
    background-color: rgba(0, 0, 0, 0.474);
    width: 50%;
    height: fit-content;
    margin-left: 30%;
    margin-right: auto;
    display: grid;
    grid-template-columns: 28% 72%;
    grid-template-rows: 25vh auto auto 20vh;
    grid-template-areas:
        "Header Header"
        "Aside Main"
        "Section Section"
        "Footer Footer";
}

.gold-button{
    background-image: url("images/GoldenButton.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 80%;
    height: 80px;
    image-rendering: pixelated;
    border: none;
    position: relative;
    display: block;
    margin: 1rem auto;
    background-color: transparent;
}
.gold-button:hover{
    background-image: url("images/HoverButton.png");
}

.gold-button:active{
    background-image: url("images/PressedButton.png");
}

.gold-button h3{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.gold-button:active h3{
    top: 55%;
}
main{
    grid-area: Main;
    margin: 1rem;
    margin-right: 2rem;
}

footer{
    grid-area: Footer;
}

aside{
    grid-area: Aside;
    margin: 1rem;
}

.media{
    grid-area: Section;
    margin: 1rem;
    margin-top: 5rem;
}

header{
    grid-area: Header;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
}
.logo{
    margin-top: 2rem;
    margin-left: 1rem;
    height: 70%;
}
.block{
    width: 100%;
    height: 100%;
    color: white;
    padding: 1rem;
}

@font-face { font-family: m6x11; src: url('fonts/m6x11.ttf'); } 

h2, h3, h4{
    scroll-margin-top: 80px;
    font-family:   m6x11;
    font-weight: 300;
    font-size: 2rem;
    text-shadow: -1px 2px 3px rgba(0, 0, 0, 0.277);
    margin: 1rem;
    margin-top: 2rem;
}

h4{
    font-size: 1.2rem;
}

p, ul, ol, dl{
    margin: 1rem;
}

dt{
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

dd{
    font-size: 1rem;
    font-weight: 300;
    
    margin-left: 1rem;
}
ul{
    margin-left: 2rem;
}
.section-block{
    height: fit-content;
}

.img-container {
    display: grid;
    height: fit-content;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.img-container img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}