/* Enables smooth scrolling for anchor elements */
html {
    scroll-behavior: smooth;
}

/* Adds a header image under the navbar */
.about-image {
    width: 100%;
    height: 13em;
    margin: 0;
    color: white;
    margin-bottom: 2em;
    background-image: url("../images/about-bg.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centers the text inside the header image and all necessary properties */
.about-image h1 {
    text-shadow: 3px 3px 10px black;
    transition: all;
    transition-duration: 500ms;
    font-family: Bebas Neue, Verdana, sans-serif;
    font-weight: 400;
    text-align: center;
    color: white;
    font-size: 3em;
    margin: 0;
}

/* Scales the header text larger when hovering over the header image */
.about-image:hover h1 {
    scale: 1.2;
}

/* Applies all necessary properties to the h2 under the header image */
body>h2 {
    font-family: Bebas Neue, Verdana, sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.1em;
    margin-top: 0;
    color: #313131;
}

/* Applies all necessary properties to the paragraph in the center of the page */
body>p {
    padding: 0 2em;
    font-family: Oswald, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    font-size: 0.7em;
}

/* Applies flexbox to the main container containing all sub containers */
.container {
    width: 70%;
    margin: 3em 15%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Applies specific properties to anchor elements on the page */
.about-a,
.about-a:visited {
    color: #0E0B0C;
    text-decoration: none;
    width: 25%;
    transition-duration: 500ms;

}

/* Applies properties and transitions to the icon and text container */
.image-container {
    width: 100%;
    height: auto;
    padding-top: 1rem;
    border-radius: 20px;
    border: 1px solid black;
    background-color: #EFE9E4;
    transition: all;
    z-index: -1;

}

/* Applies a filter invert when hovering over the sub container */
.about-a:hover {
    filter: invert();
}

/* Applies specific properties to the icons */
.img-icon {
    width: 50%;
    margin: 0 25%;
    filter: invert(16%) sepia(8%) saturate(7%) hue-rotate(341deg) brightness(91%) contrast(87%);
}

/* Applies specific properties to the text under the icons */
.image-container h3 {
    font-family: Bebas Neue, Verdana, sans-serif;
    font-size: 1em;
    text-align: center;
    margin-bottom: 0.5em;
    color: #313131;
}

/* Edits the container for each about us value */
.value {
    opacity: 100%;
    width: 100%;
    margin: 0 0 3em 0;
    padding: 0 3em;
}

/* Edits the h2 headers' properties */
h2 {
    color: #0E0B0C;
    font-family: Oswald, Verdana, sans-serif;
    margin: 0;
}

/* Edits the paragraphs' properties */
.definition {
    color: rgb(83, 83, 83);
    font-family: Oswald, Verdana, sans-serif;
    margin: 0;
    white-space: wrap;
}

/* Decreases font size to h3 elements on smaller devices */
@media only screen and (max-width: 690px) {
    .image-container h3 {
        font-size: 0.7em;
    }

    .about-image {
        background-attachment: local;
    }
}

/* Changes the style of all images container to block on smaller devices */
@media only screen and (max-width: 500px) {
    .image-container h3 {
        font-size: 1em;
    }

    .container {
        display: block;
    }

    .image-container {
        width: 70%;
        margin: 2em 15%;
    }

    .value {
        text-align: center;
    }
}

/* Adds a highlight animation to whatever element given this flick animation */
@keyframes flick {
    0% {
        background-color: rgba(175, 175, 175, 0);
    }

    30% {
        background-color: rgba(175, 175, 175, 100);
    }

    70% {
        background-color: rgba(175, 175, 175, 100);
    }

    100% {
        background-color: rgba(175, 175, 175, 0);
    }
}