/* Font */
@font-face {
  font-family: "Gloock";
  src: url("fonts/Gloock-Regular.ttf");
}

/* Background Scroll */
@keyframes scroll {
    to { background-position: 4em 8em;}
}

/* Gear Animation */
.gear-moving { display: none; }
.gear-link:hover .gear-still { display: none; }
.gear-link:hover .gear-moving { display: block; }

/* To Prevent Bouncy Scroll */
html { overscroll-behavior: none; }

/* Colors */
.navbar-nav.nav-list .nav-link {  color: #FFC32B; }
.navbar { background-color: #501010; }

/* Padding */
.navbar-brand { padding-top: 0; padding-bottom: 0; margin: 0}
.nav-link { padding-top: 0; padding-bottom: 0;}
.nav-list { padding-top: 0; padding-bottom: 0; }
.navbar .container-fluid { padding-left: 1rem; padding-right: 1rem;}

/* Link text positioning */
.nav-page-link { 
    position: absolute; 
    top: 0; 
    left:0; 
    width:100%; 
    height:100%; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    transform: translateY(-0.1em);
}

/* Font */
.nav-list {
    font-family: "Gloock", serif; 
}

.container-fluid {
    color: #ffffff;
}

/* Default sizes */
.navbar-brand { font-size: inherit; }

.nav-link { 
    height: 4em; 
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link .a:hover {
    text-decoration: underline;
}

.nav-list img { 
    height: 3.5em; 
    display: block; 
    margin: 0 auto; 
    width: 100%; 
    object-fit: contain;
}

/* Navbar scaling */
.navbar {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: min(24px, 2.35vw);
}

.navbar .container-fluid { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.nav-list { 
    display: flex;
    justify-content: space-between;
    flex: 0 1 40em;
    min-width: 32em;
}

.navbar-logo { 
    height: 3.5em; 
}

.nav-list .nav-item { 
    flex: 0 0 8em 
}

/* Page Title Styling */
.page-title {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: absolute;
    color: #FFC32B;
    font-size: 2.5em;
    font-family: "Gloock", serif;
    inset: 0;
    margin: 0;
    transform: translateY(-0.15em);
}

.title-gif {
    height: 9em;
    display: block; 
}

.title-wrapper {
    position: relative;
    width: fit-content;
    margin: 3em auto;
    font-size: min(24px, 2vw);
}

/* Main Content Block Styling */
.page-content {
    background-color: #0c0c0c;
    min-height: 90vh;
    padding-bottom: 2em;
    padding-top: 2em;
}

/* Main Text Content */
.page-text {
    max-width: 55em;
    margin: 0 auto;
    padding: 0 1em;
    font-size: 20px;
}

.page-text .wrap-img {
    float: left;
    max-width: 50%;
    width: 12em; 
    margin: 0 1em 0.5em 0; 
}

.page-text a {
    color: #FFC32B;
}

/* Background Wallpaper */
.bg-layer {
    position:fixed;
    inset: 0;
    z-index: -1;
    background-image: url("images/background_tile.png");
    background-color: #461a1a;

    background-size: 4em;
    animation: scroll 10s linear infinite;
    font-size: min(24px, 2.35vw)
}

/* Gradient */
.bg-layer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 14em;
    background: url("images/blackg.png") center / 100% 100%;
    transform: translateY(1.4em);
}

/* Background Pause */
.bg-layer.paused {
    animation-play-state: paused;
}

/* Project Blocks */
.project-block {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;

    flex-wrap: wrap;
    border: 1px solid #ffffff;
    border-radius: 1.5em;
    padding: 1em;

    justify-content: center;
    font-size: min(24px, 4vw);

    margin-bottom: 1.5em;

}

.project-text {
    flex: 1 1 15em;
}

.project-header {
    font-weight: bold;
    font-size: 1.5em;
    margin: 0 0 0.2em 0;
}

.project-img {
    width: 18em;
    height: 18em;
    object-fit: cover;
    flex-shrink: 0;
    max-width: 100%;
}

/* Art Gallery */
.gallery {
    column-width: 20em;
    column-gap: 1em;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1em;
    break-inside: avoid;
}