/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:after,
:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Prevents img without src to appear */
img:not([src]) {
    visibility: hidden;
    opacity: 0;
}

.class_loading {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 500ms;
}

body {
    color: white;
    font-family: "Oswald", sans-serif;
    font-style: normal;
    font-size: 1.5em;
    overflow: overlay;
}

a,
li {
    color: white;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    color: #ab3657;
}

i {
    color: #ab3657;
    font-weight: 500;
}

i:hover {
    color: black;
}

body::-webkit-scrollbar {
    width: 0.5em;
    background-color: transparent;
}

body::-webkit-scrollbar-track {
    visibility: hidden;
}

body::-webkit-scrollbar-thumb {
    background-color: #ab3657;
    outline: 1px solid slategrey;
}

.left {
    float: left;
}

.right {
    float: right;
}

.container {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

#hero,
main {
    width: 100vw;
}

.container:after {
    display: table;
    content: " ";
}

.container:before {
    display: table;
    content: " ";
}

.wrapper {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
}

.wrapper.no-top {
    margin-top: 0;
}

.full-bg {
    width: 100%;
    opacity: 1;
    height: 100%;
}

/*HERO*/

#hero {
    height: 100vh;
}

.container-hero .full-bg {
    background: url(../img/DSCF8340-9.jpg) no-repeat right bottom;
    background-size: cover;
    height: 100vh;
    position: absolute;
    top: 0;
}

/*MENU*/
header {
    z-index: 2;
    position: relative;
    margin-left: 30px;
    margin-right: 40px;
}

.menu {
    width: 100%;
    height: 5em;
    padding: 0;
}

.menu li a, footer li a {
    text-transform: uppercase;
    padding-bottom: 0.1em;
}

/*.menu li a:hover {
    border-bottom: 0.15em solid #AD3828;
}*/

.menu li:nth-child(3) {
    margin-right: 10px;
}

.menu li.right {
    line-height: 2em;
}

.logo-title a {
    font-size: 1.5em;
    color: #ab3657;
}

.logo-title a:hover {
    color: black;
}

/*MAIN*/
.container-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.img-card {
    margin: 3px;
    float: left;
}

.img-card img {
    width: 100%;
    height: 100%;
    padding: 5px;
}

.full {
    width: 100%;
}

.half {
    width: 49.28%;
    flex: 1;
}

.one {
    flex: 1;
}

.in-two {
    flex: 2;
}

.in-three {
    flex: 1;
}

.two-third {
    flex: 0.69;
}

.one-third {
    /*flex: 0.325;*/
    flex: 0.31;
}

.one-fourth {
    flex: 0.237;
}

.flex-3 {
    flex: 0.526;
}

/*FOOTER*/

.footer-wrapper {
    margin-left: 15px;
    margin-right: 15px;
}

.footer-wrapper ul {
    margin: 0 0 10px 0;
    padding: 0;
    width: 100%;
    height: 1.2em;
    display: flex;
    justify-content: space-between;
}

.footer-wrapper img {
    width: 55%;
}

.footer-wrapper li {
    color: #ab3657;
    font-size: 0.6em;
    text-transform: uppercase;
}

.footer-wrapper li a {
    color: #ab3657;
    font-size: 1.3rem;
}

.footer-wrapper ul li:nth-child(2) {
    line-height: 2em;
    margin-right: 5px;
}

/*ABOUT*/

#about {
    height: 100%;
}

.content-wrapper {
    min-height: 100%;
    position: relative;
}

#about .content-wrapper {
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100vh;
}

#about p,
#about li.right {
    color: black;
}

#about li.right {
    text-transform: uppercase;
}

#about a:hover {
    color: #ab3657;
}

#about main {
    padding-bottom: 4%;
}

#about .container-main {
    margin-left: 20%;
    margin-right: 20%;
    margin-bottom: 0%;
}

#about p {
    text-align: justify;
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.8;
    font-family: "PT Mono", monospace;
    letter-spacing: 0.04px;
    width: 100%;
}

.line {
    color: #ab3657;
}

#about i {
    color: black;
    margin-top: 1rem;
}

#about i:hover {
    color: #ab3657;
}

.fa-2x {
    font-size: 1.5em;
}

#about footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
}

#about .footer-wrapper {
    margin-right: 40px;
    margin-left: 30px;
    margin-bottom: 5px;
}

#about .footer-wrapper ul {
    margin: 0;
    justify-content: center;
}

/*LAZY LOAD MICROSOFT EDGE FIX*/
img[data-src],
img[data-srcset] {
    display: block;
    min-height: 1px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}
@media all and (max-width: 770px) {
    .img-card {
        flex: 100% !important;
    }

    #about .container-main {
        margin-left: 5%;
        margin-right: 5%;
        clear: both;
    }

    #about .footer-wrapper {
        margin-left: 5%;
        margin-right: 5%;
    }

    #about .container-main {
        margin-bottom: 5%;
    }
}

@media all and (max-width: 414px) {
    .logo-title {
        width: 100%;
        text-align: center;
    }
}

@media all and (max-width: 376px) {
    #about p {
        font-size: 0.7em;
    }

    .logo-title {
        width: 100%;
    }
}

@media all and (max-width: 320px) {
    .logo-title a {
        font-size: 1.3em;
    }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
