* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: monospace, monospace;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

a {
    color: #000;
}

.home-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 40px;
    line-height: 1.8;
}

.home-container header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.home-container h1 {
    margin: 0;
}

.home-container img {
    width: 200px;
}

.home-container .link {
    display: block;
    background: rgb(233, 144, 53);
    color: #fff;
    padding: 20px 40px;
    text-decoration: none;
}

.header {
    position: fixed;
    top: 20px;
    left: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 1;
}

.header img {
    width: auto;
    height: 60px;
}

.artists {
    display: flex;
    height: 100vh;
    padding: 40px;
}

.artist {
    margin: 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.piece {
    position: relative;

    /* increase to 40px solves text overlap if using set width in artist-details */
    margin: 20px;
    max-height: 80%;
}

.smallisbeautiful { background-color: #E1C761; }
.showmethepixels { background-color: #9EACF8; }
.ripandburn { background-color: #DEA54A; }
.whatsthefrequencykenneth { background-color: #9BF7A9; }
.dresstocompress { background-color: #B9FDFF; }
.posthumanpostphotography { background-color: #E3C6FF; }
.unknown { background-color: #BFBFBF; }

.piece img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.artist__info {
    padding: 20px;
}

.artist__link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artist__details {
    display: none;
    padding-top: 10px;
    word-break: normal;

    /* set width of details text */
     /* width: 230px; */
}

.nav {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 40px;
    z-index: 1;
}

.indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.indicator span {
    position: relative;
    top: -2px;
    font-size: 30px;
    line-height: 1;
    transition: transform 200ms ease;
}

.indicator--reverse span {
    transform: rotate(180deg) translateY(-5px);
}

@media (max-width: 700px) {
    .header {
        position: static;
        padding: 20px 40px;
    }

    .artists {
        flex-direction: column;
    }

    .artist {
        margin: 100px 0;
        flex-direction: column;
    }

    .artist__info {
        word-break: break-all;
    }

    .artist:first-child {
        margin-top: 0;
    }

    .artist:last-child {
        padding-bottom: 100px;
    }

    .piece {
        width: 100% !important;
        max-height: none;
    }

    .piece--active {
        height: auto !important;
    }

    .artist__details {
        padding-top: 20px;

            /* adjust width of details text */
             width: 100%;
             word-break: normal;

    }

    .piece img {
        max-width: 100%;
    }

    .nav {
        position: static;
        display: flex;
        gap: 40px;
        padding: 20px 40px;
    }

    .indicator {
        display: none;
    }

    .home-container {
        gap: 10px;
    }

    .home-container img {
        width: 120px;
    }
}
