:root {
    /* Color scheme vars */
    --primary-color: #f07508;
    --secondary-color: #b52d1b;
    --background-color: #3e2020;
    --background-color-alt: #2c1616;
    --text-color: #ffffff;

    --font-family: 'Pajatro';
}

@font-face {
    font-family: 'Pajatro';
    src: url('fonts/VCR_OSD_MONO_1.001.ttf') format('truetype');
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}
/* For Internet Explorer and Edge */
html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    /* Set default styles */
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
}

button {
    font-family: var(--font-family);
    transition: transform 0.2s ease-in-out;
}

button:hover {
    transform: scale(1.1);
}

a {
    transition: transform 0.2s ease-in-out;
}

a:hover {
    transform: scale(1.1);
}

.navbar {
    /* Set styles for the navbar and position it at the top of the page */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    font-size: 2rem;
    font-weight: bold;
}

.navbar button {
    z-index: 1000;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;

    /* Position menu off screen so it can be animated in */
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 999;

    /* Start with menu off screen and set transition */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.hamburger-menu a {
    color: var(--text-color);
    font-size: 3rem;
    font-weight: bold;
    text-decoration: none;
}

.hamburger-menu button {
    margin-top: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* when activating menu move it on screen */
.hamburger-menu.active {
    transform: translateX(0);
}

@media (min-width: 768px) {
    /* Stop hamburger menu from being too big on larger screen */
    .hamburger-menu {
        width: 40%;
    }
}

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 85vh;
    text-align: center;
}

.home h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home h2 {
    font-size: 2rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.buttons a {
    /* Style buttons and set them next to each other */
    display: inline-block;
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;

    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color-alt);
    padding: 4rem 2rem;
}

.about h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about p {
    max-width: 800px;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.trailer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.trailer-container iframe {
    /* Set aspect ratio and styles for the iframe */
    aspect-ratio: 16 / 9;
    min-width: 80%;
    width: 80vw;
    height: auto;
    border-radius: 10px;
    background-color: var(--secondary-color);
    border: none;
}

/* Stop trailer from being too big on larger screens */
@media (min-width: 768px) {
    .trailer-container iframe {
        width: 60vw;
    }
}

.team {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color-alt);
    padding-bottom: 2rem;
}

.team h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.team-member {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    background-color: var(--background-color);
    width: 80%;
    height: auto;
}

.team-member img {
    width: 50%;
    height: auto;
    object-fit: cover;
    margin-right: 1rem;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 50%;
    padding-bottom: 1rem;
}

.member-info h2 {
    font-size: 1rem;
    margin: 0;
}

.member-info p {
    font-size: 1rem;
}

.member-info button {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-right: 1rem;
    width: fit-content;
}

.member-role {
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    /* Set team members next to each other on larger screens */
    .team-members {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .team-member {
        width: 45%;
    }

    .member-info {
        align-items: flex-end;
        justify-content: space-between;
        flex-direction: row;
    }

    .member-role {
        padding-bottom: 0;
    }
}

/* Footer to show logos of school and customer */
footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;
    justify-items: center;

    padding: 1rem;
    background-color: white;
}

footer img {
    height: 75px;
}

footer p {
    font-size: 1rem;
    color: #4E008E;
}