html {
    box-sizing: border-box;
}

*, *::after, *::before {
    box-sizing: inherit;
}

* + * {
    margin-top: 20px;
}

html {
   
}

body {
    background: black;
    background-image: url('rene-bohmer-YeUVDKZWSZ4-unsplash.jpg');
    background-position: top center;
    background-size: cover;
    color:goldenrod;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Cantarell,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
    display: flex;
    height: calc(100vh - 20px);
    align-items: center;
    margin: 10px;
}

main {
    font-size: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: inherit;
    padding: 20px;
    margin: auto;
    max-width: 800px;
    width: 100%;
    border: 2px solid rgb(218, 165, 32);
    box-shadow: 0 0 4px rgba(51, 38, 4, 0.5);
}

@media (min-width:800px) {
    main {
        font-size: 2rem; 
    }
}

.intro {
    margin: 0;
}

a, a:visited {
    color: rgb(143, 109, 24);
}

a:hover, a:focus {
    color:rgb(230, 195, 109);
}

.open-chest {
    border: 2px solid goldenrod;
    text-decoration: none;
    padding: 2px 8px;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
}

.last-finds {
    position: relative;
    margin-top: 20px;
    font-size: 1rem;
}

.last-finds::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, black, transparent);
}

.last-finds ul {
    padding: 0;
}

.last-finds li {
    list-style: none;
    margin: 0;
}

.chest {
    background: #f3b444 url('wood.jpg');
    color: black;
    text-shadow: 1px 0 1px rgba(255, 255, 255, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 132px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    border: 4px solid rgb(143, 109, 24);
    width: 100%;
}

.chest.is-legendary {
    background: rgb(177, 35, 177) linear-gradient(55deg, red, orange, yellow, #28c628, #0087ff, purple);
    border-color: purple;
}

.to-chest-room {
    font-size: 1rem;
}

/* Credits: 
- wood texture from Nick Bertke's "Clean Wood" pack 
- background from Rene Böhmer (https://unsplash.com/photos/YeUVDKZWSZ4)
*/
