@font-face {
    font-family: Dress Code;
    src: url(fonts/DressCode\ Medium.otf);
    font-weight: 500;
}
@font-face {
    font-family: Dress Code;
    src: url(fonts/DressCode\ SemiBold.otf);
    font-weight: 600;
}
@font-face {
    font-family: Averia Serif Libre;
    src: url(fonts/AveriaSerifLibre-Regular.ttf);
}
@font-face {
    font-family: Averia Serif Libre;
    src: url(fonts/AveriaSerifLibre-Bold.ttf);
    font-weight: bold;
}


html {
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Averia Serif Libre';
    
    --cardbg: #efe5dc;
}

a {
    color: black;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline dotted 2px;
}

#menu {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 0 1rem;
    font-size: 1.2rem;
    color: white;
}

#menu a {
    font-family: 'Dress Code', sans-serif;
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-shadow: 0 0 4px black;
}

/* #menu a::after {
    content: " | ";
    font-weight: 300;
}
#menu a:last-child::after {
    content: "";
} */

#menu a:active, #menu a:hover {
    /* text-decoration: underline;
    text-decoration-style:dashed; */

    color: black;
    text-shadow: 1px 1px white,
                -1px -1px white,
                1px -1px white,
                -1px 1px white;
}

.container {
    min-width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(6, 1fr);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#intro {
    background-color: #b57540;
    background: url(img/fire.jpg) center bottom;
}

#portfolio {
    background-color: #c5c9cf;
    background: url(img/nik_quarry.jpg) center bottom;
}

#about {
    background-color: #8ab98f;
    background: url(img/self.jpg) center bottom;
}

#contact {
    background-color: gray;
    background: url(img/cholla.jpg) center;
}

#intro, #portfolio, #about, #contact {
    background-size: cover;
}
.card {
    background: var(--cardbg);
    padding: 1rem 1.5rem 2rem 1.5rem;
    margin: 3rem;
    min-width: fit-content;
}


.card h1, h2 {
    font-family: 'Dress Code', sans-serif;
    font-weight: 400;
    line-height: 0.8;
    text-align: left;
}

.card h1, .card h2 {
    text-align: center;
}

.card h1 {
    font-size: 2rem;
    font-weight: 500;
}

.card h2 {
    margin-top: -0.8rem;
    font-size: 1.3rem;
}

.card p {
    text-indent: 1rem;
}

.card hr {
    width: 60%;
    border: none;
    border-top: 1px solid black;
    margin: 1rem auto 1.5rem auto;
}

button {
    all: initial;
    font: inherit;
    color: inherit;
}

.btn {
    text-decoration: none;
    background: black;
    color: white;
    text-align: center;
    font-family: 'Dress Code', sans-serif;
    font-weight: 500;
    outline: 1px solid black;
    outline-offset: 0.2rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem 1rem;
}

.btn:hover {
    outline: 2px dotted black;
}

.buttonmenu {
    display: flex;
    flex-direction: column;
}

.buttonmenuMobile {
    display: none;
}

.left {
    grid-column: 2 / 5;
    grid-row: 2 / auto;
}

.right {
    grid-column: 7 / 10;
    grid-row: 2 / auto;
}

.center {
    grid-column: 4 / 8;
    grid-row: 2 / auto;
    text-align: center;
    text-indent: 0;
}

.buttonmenu {
    flex-direction: row;
    justify-content: space-evenly;
}

.gallerywrapper {
    grid-column: 1 / 8;
    grid-row: 1 / 7;
    display: grid;
    align-items: center;
}

.gallery {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(2,1fr);
    grid-gap: 1rem;
    align-items: center;
}

.gallery img {
    max-width: 100%;
}

.squish {
    grid-row: 3 / auto;
    grid-column: 8 / 11;
}

#portraits, #events, #other {
    display: none;
}

.mobileonly {
    display: none;
}

.hide {display: none;}

/*MOBILE STYLES*/
@media (max-aspect-ratio: 3/4) {

    :root {
            font-size: 4.5vmin;
    }

    html {
        scroll-snap-type: none;
    }

    #about {
        background: #8ab98f;
    }

    .container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        height: fit-content;
    }

    .card {
        margin: 1rem;
    }

    .card h1 {
        font-weight: 600;
        font-size: 2rem;
        text-align: center;
    }
    
    #intro .card h1 {
        text-align: left;
    }

    .card h2 {
        font-size: 1.3rem;
        line-height: 1.2rem;
        text-align: right;
        margin-top: -0.4rem;
    }

    .left, .right, .center {
        grid-row: none;
        grid-column: none;
    }

    .left p, .right p {
        text-align: justify;
    }

    #intro > .card p {
        text-align: center;
        padding: 0 0.6rem;
        text-indent: 0;
    }

    
    #menu {
        bottom: 0;
        left: 0;
        font-size: 0.9rem;
        background: #000;
        text-align: center;
    }

    label {
        text-align: center;
    }

    .gallerywrapper, .gallery {
        grid-template-columns: 1fr;
        margin: 0;
    }

    #portfolio .right {
        margin: 0;
        padding-bottom: 0.5rem;
    }

    .buttonmenu {
        flex-direction: column;
    }

    .buttonmenuMobile {
        display: block;
        background-color: var(--cardbg) !important;
        text-align: center;
        margin-top: 0;
    }

    .buttonmenuMobile .btn {
        width: 12.5rem;
    }

    .btnLast {
        margin-bottom: 2rem;
    }

    #about > .card {
        margin: 0;
    }

    .card img {
        width: 100%;
    }

    #contact > .card {
        margin-top: 20%;
    }

    .desktoponly {
        display: none;
    }

    .mobileonly {
        display: inline;
    }
}