/* UNIVERSAL */

* {
    box-sizing: border-box;
    vertical-align: top;
    line-height: 1.25em;
}

:root {
    --caption-height: 200px;
}

@font-face {
    font-family: Carly;
    src: url(./carly-regular.woff);
}

body {
    background-color: #eee;
    font-family: "Carly", monospace;
    font-size: 24px;
    margin: 0;
}

/* TYPE */

p, h1 {
    color: black;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.25em;
    text-align: left;
    vertical-align: top;
    filter: drop-shadow(0em .2em .1em grey);
}

p {
    margin-block-start: 0;
    margin-block-end: 0;
}

h1 {
    margin-block-start: 1.25em;
    margin-block-end: 1.25em;
}

/* LINKS */

a {
    color: black;
    text-decoration: none;
    font-weight: normal;
}

a:hover {
    color: black;
    text-decoration: underline;
}

a:active {
    color: black;
    text-decoration: underline;
}

a:visited {
    color: black;
    text-decoration: none;
}

/* IMAGES */

img {
    max-width: 100%;
}

/* CONTAINERS */

.navigation-container {
    padding: 1em;
    position: fixed;
    z-index: 1;
}

.index-container {
    padding: 2em;
    max-width: 100%;
    height: 100%;
}

.project-container {
    padding: 0 1em;
    max-width: 100%;
    height: 100%;
}

.item-container {
    display: inline-block;
}

/* ITEM CONTAINER SUBCATEGORIES */

.button {
    display: block;
    background-color: transparent;
    border: .1em solid black;
    border-radius: 1em;
    padding: 2em;
    margin: 2em;
    transition: padding .5s, margin .5s;
    filter: drop-shadow(0em .2em .1em grey);
}

.button:hover {
    padding: 1.7em;
    margin: 2.3em;
    transform: none;
}

.fixed {
    position: fixed;
    top: 0;
    left: 1em;
}

.caption {
    padding: 1em 1em 1em 0em;
    text-indent: 13ch;
    margin: 0em;
    display: none;
    pointer-events: none;
    z-index: 1;
}

.index-image, .project-image {
    filter: drop-shadow(0em .2em .1em grey);
}

.index-image {
    margin: 2em;
    transition: transform .5s;
}

.index-image:hover {
    transform: scale(.9);
}

.index-image:hover + .item-container.caption {
    display: block;
}

.project-image {
    display: block;
    padding-bottom: 1em;
    width: 100%;
    height: calc(100vh - var(--caption-height));
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.text {
    width: 100%;
    overflow-wrap: break-word;
}

/* SELECTION */

::-moz-selection {
    color: green;
}

::selection {
    color: green;
}

@media only screen and (max-width: 700px) {

    p, a {
        font-size: 24px;
    }

    .index-container {
        padding: 3em 0em 1em 0em;
    }

    .index-image {
        margin: 1em;
    }

    .project-image {
        height: 100%;
    }

    .button {
        margin: 1em;
    }

    .button:hover {
        margin: 1.3em;
    }

}
