@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css");

/* Style the entire page */
:root {
    background-color: #757575;
}

* {
    box-sizing: border-box;
}

/* Style all content */
.contentWrapper {
    font-family: monospace;
    display: grid;
    grid-template-rows: auto 1fr auto;
    place-content: center;
    text-align: center;
    margin: 0;
}

/* Style the nav bar */
#nav {
    background-color: #004481;
    display: flex;
    justify-content: flex-start;
    position: fixed;
    padding: 20px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Style the text in the nav bar */
a {
    color: #A77C29;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    margin-left: 25px;
}

/* Style the text in the nav bar for mobile devices */
@media only screen and (max-width: 600px) {
    a {
        color: #A77C29;
        font-size: 1.25em;
        font-weight: bold;
        text-decoration: none;
        position: relative;
        margin-left: 10px;
}
}

/* Create underline animation in the nav bar */
a::after {
    content: "";
    border-bottom: 3px solid #A77C29;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(5px);
    transition: transform 0.3s ease;
    opacity: 0;
    height: 100%;
    width: 100%;
}
a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Style the header */
.header {
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 60px;
    height: 25vh;
    position: relative;
}

/* Create typewriter animation in the header */
.header::after {
    content: "";
    background-color: #757575;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header * {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2em;
    position: relative;
    font-family: monospace;
    width: max-content;
}

.header p {
    font-size: 15px;
    margin: 0;
    opacity: 0;
    transform: translateY(3rem);
    animation: fadeInUp 2s ease 7.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1::before, h1::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

h1::before {
    background-color: #757575;
    animation: typewriter 6s steps(17) 1s forwards;
}

h1::after {
    width: 0.125em;
    background: black;
    animation: typewriter 6s steps(17) 1s forwards, blink 750ms steps(17) infinite;
}

@keyframes typewriter {
    to {
        left: 100%;
    }
}

@keyframes blink {
    to {
        background: transparent;
    }
}

/* Style the main content */

.mainContent {
    min-height: 50vh;
    padding-top: 60px;
    padding-bottom: 60px;
}

#gunDrills {
    border-style: solid;
    background-color: white;
    padding-top: 5px;
    padding-bottom: 5px;
}

#knowledge {
    border-style: solid;
    background-color: white;
    padding-top: 5px;
    padding-bottom: 5px;
}

#about {
    border-style: solid;
    background-color: white;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Style the footer */

#footer {
    color: black;
    background-color: #CC101F;
    font-family: monospace;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    padding: 15px 15px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}