/* -------------------- */
/*        Overall       */
/* -------------------- */

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

html {
    font-size: 62.5%; /* Makes 1rem = 10px */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    box-sizing: border-box;
    font-size: 1.8rem;
}

/* -------------------- */
/*         Index        */
/* -------------------- */

#body-index {
    background: #333333;
    background-image: radial-gradient(circle, #252525, #151515 10%, #000 30%);
    height: 100vh;
    color: #E3DBDB;
    text-align: center;
}

#header-index {
    font-size: 6rem;
    padding-top: 4%;
    padding-bottom: 5px;
}

#wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 20px;
}

.link-index {
    text-decoration: none;
    color: #E3DBDB;
    margin: 0;
    padding: 0;
}

.card-index {
    width: 600px;
    height: 600px;
    padding: 2%;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 15px;
    border: #E3DBDB 1px solid;
    background-color: #000;
}

.card-index:hover {
    box-shadow: #a09999 0px 0px 10px 2px;
}

.img-container {
    width: 500px;
    height: 500px;
    background-color: #000;
    background-repeat: no-repeat;
    background-size: 500px 500px;
    background-position: center;
    margin: 0 auto;
    box-shadow: #000 0px 0px 10px 20px inset;
}

.wood {
    background-image: url("img/fire.webp");
}

.estate {
    background-image: url("img/estate.png");
}

.card-index p {
    font-size: 2.4rem;
    font-weight: 600;
    padding-top: 5px;
}

@media screen and (max-width: 620px) {
    .card-index {
        width: 480px;
        height: 480px;
    }

    .img-container {
        width: 420px;
        height: 420px;
    }
}

@media screen and (max-width: 428px) {
    #header-index {
        font-size: 4rem;
    }

    .card-index {
        width: 350px;
        height: 350px;
    }

    .img-container {
        width: 290px;
        height: 290px;
        box-shadow: #000 0px 0px 4px 4px inset;
    }
}