/* Google fonts import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Macondo&display=swap");

/* CSS Variables */
:root {
    --primary-font: "Roboto", sans-serif;
    --secondary-font: "Bentham", serif;
    --primary-color: #2c3e50; /* dark industrial steel blue */
    --secondary-color: #7f8c8d; /* medium steel gray */
    --highlight-color: #d35400; /* industrial orange (safety/machinery) */
    --highlight-color-light: #e67e22; /* bright industrial orange */
    /* --primary-color: #3a2620; /* dark brown */
    /*  --secondary-color: #aa9581; /* light brown */
    /* --highlight-color: #416a8e; */ /* blue */
    /* --highlight-color-light: #7a9fc2; */ /* light blue */
}

/* Global styles */

body {
    font-family: var(--primary-font);
    padding-top: 57.15px; /*pushes body down to make room for the fixed navbar */
}

h1,
h2,
h3 {
    font-family: var(--secondary-font);
    color: var(--primary-color);
}

h1,
h2 {
    text-transform: uppercase;
}

h2 {
    margin-bottom: 2rem;
}

.sub-heading-color {
    color: var(--highlight-color);
}

.section {
    padding-top: 4rem; /* prevents navbar from overlapping content */
}

.card-img-top {
    height: 300px;
    object-fit: contain;
}

/* Buttons */

.custom-button-filled {
    border: 2px solid var(--highlight-color);
    background-color: var(--highlight-color);
    color: white;
}

.custom-button-filled:hover {
    border: 3px solid var(--secondary-color);
    background-color: var(--secondary-color);
    color: white;
}

.custom-button-outline {
    border: 2px solid var(--highlight-color);
    padding: 7px 25px;
    color: var(--highlight-color);
}

.custom-button-outline:hover {
    background-color: var(--highlight-color);
    color: white;
}

/* Navbar */

#navbar {
    background-color: var(--primary-color);
}

#navbar .logo {
    width: 100px;
}

/* Header */

#header .lead {
    font-family: var(--secondary-font);
}

/* Services section */
#services .card-footer {
    font-weight: bold;
    color: var(--highlight-color);
    background-color: transparent;
}

#services .card {
    margin-bottom: 1.5rem;
}

/* Events */

#events .table {
    /* events table font size small enough that 
      the table doesn't overflow on xs screens. 
      Size set back to 1rem in a media query 
      for sm screens and up */
    font-size: 0.7rem;
}

.student-discount {
    background-color: var(--highlight-color);
    font-weight: bold;
    color: white;
    display: block;
    max-width: 300px;
    margin: auto;
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Games section */

#new-games .card,
#fav-games .card {
    border: none;
}

/* Footer / contact */

#contact {
    background-color: var(--primary-color);
    color: white;
    padding-bottom: 3rem;
}

#contact h2 {
    color: white;
}

#contact .sub-heading-color {
    color: var(--highlight-color-light);
}

#contact i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

#contact .social-links i {
    color: var(--highlight-color-light);
    font-size: 1.9rem;
    -webkit-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}

#contact .social-links i:hover {
    color: var(--secondary-color);
}

#contact .table-dark * {
    background-color: transparent;
}

/* Media queries */

/* Medium Screen (tablet, medium screen, (768px and up) */

@media screen and (min-width: 768px) {
    /* Make all service cards the same height for consistancy */
    #services .card-body {
        min-height: 191px;
    }
}

/* Large Screen (laptops (992px and up) */
@media screen and (min-width: 992px) {
    /* Make all service cards the same height for consistancy */
    #services .card-body {
        min-height: auto;
    }
}
/* XLarge Screen (desktops (1200px and up) */
@media screen and (min-width: 1200px) {
    /* Make all service cards the same height for consistancy */
    #services .card-body {
        min-height: 220px;
    }
}
/* XXLarge Screen (4k screens (1400px and up) */
@media screen and (min-width: 1400px) {
    /* Make all service cards the same height for consistancy */
    #services .card-body {
        min-height: 195px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -57.15px; /* pull hero up to sit flush under the fixed navbar */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: var(--secondary-font);
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }
}
