*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Gabarito', sans-serif;
}

body{
    background-color: #f1ebdc;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.container{

    display: inline-block;
    width: 75%;
    text-align: center;
}

.shelf__container{
    text-align: left;
}

.featured_game{
    display: inline-block;
    width: 80%;
    padding-top: 40%;
    background-color: #f1ebdc;
    box-shadow: 0px 41px 25px -32px rgba(0,0,0,0.62);
-webkit-box-shadow: 0px 41px 25px -32px rgba(0,0,0,0.62);
-moz-box-shadow: 0px 41px 25px -32px rgba(0,0,0,0.62);
    background-size: cover;
}

.shelf{
    display: flex;
    justify-content: space-evenly;
    margin: 50px 0 100px;
    position: relative;
    z-index: 5;
    padding: 0 50px;
}

.shelf::after{
    content: '';
    width: calc(80%*1.1);
    height: 25px;
    bottom: -45px;
    background-color: #e1951c;
    /* create a new stacking context */
    position: absolute;
}

.shelf::before{
    content: '';
    width: calc(78.41%*1.1);
    height: 50px;
    bottom: -20px;
    background-color: #f7b44a;
    transform: perspective(21px) rotateX(1deg);
    /* create a new stacking context */
    position: absolute;
    z-index: -1;  /* to be below the parent element */
}

.shelf__item{
    background-color: red;
    /*height: 154px;
    width: 275px;*/
    height: calc(154px/1.1*1.25);
    width: calc(275px/1.1*1.25);
    display: flex;
    align-items: flex-end;
    border-radius: 15px;
    -webkit-box-shadow: 0px 7px 13px -7px #000000; 
    box-shadow: 0px 7px 13px -7px #000000;
    animation: none;
    background-size: cover;
}

.shelf__item-title{
    display: inline-block;
    height: calc(154px/1.1*1.25);
    width: calc(275px/1.1*1.25);
    padding: 10px 10px;
    font-size: 1.7rem;
    color: white;
    background-color: rgba(0,0,0,.5);
    opacity: 0;
    transition: .5s;
    border-radius: 15px;
    animation: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    text-decoration: none;
}

.shelf__item{
    text-decoration: none;
    color: white;
}

.shelf__item-title:hover{
    opacity: 100;
}


.featured_video__container{
    margin: 150px 0 30px;
    width: 50%;
    padding-top: calc(28.125% - 1px); /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    position: relative;
    -webkit-box-shadow: 2px 5px 16px 0px #0B325E, 5px 5px 15px 5px rgba(0,0,0,0); 
    box-shadow: 2px 5px 16px 0px #0B325E, 5px 5px 15px 5px rgba(0,0,0,0);
}

.featured_video__container::before{
   border-radius: 100px;
    content: '';
    height: 6px;
    width: 85%;
    margin-left: 7.5%;
    top: -103px;
    bottom: -20px;
    background-color: #e1951c;
    /* create a new stacking context */
    position: absolute;
}

.featured_video__container iframe{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.title{
    margin: 100px 0 50px;
    font-size: 4rem;
}

footer{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 25px;
}

.links{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 50%;
}

.link{
    height: 40px;
    width: 40px;
}

.link img{
    width: 100%;
    height: auto;
}

.copy{
    width: 50%;
    margin: 30px 0 20px;
}

nav{
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

nav img{
    width: 600px;
}

.navlist{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.navlist a, .navlist a:visited{
    color: black;
    text-decoration: none;
    transition: .5s;
}
.navlist a:hover{
    transform: scale(1.25);
}

@media only screen and (max-width: 1630px) {
    .shelf__item, .shelf__item-title{
        height: 154px;
        width: 275px;
    }
}

@media only screen and (max-width: 1430px) {
    .shelf__item, .shelf__item-title{
        height: calc(154px * .8);
        width: calc(275px * .8);
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 1145px) {
    .shelf__item, .shelf__item-title{
        font-size: 1rem;
        height: calc(154px * .6);
        width: calc(275px * .6);
    }
}

@media only screen and (max-width: 940px) {
    .shelf__item, .shelf__item-title{
        height: calc(154px);
        width: calc(275px);
        font-size: 1.7rem;
    }

    .shelf{
        margin-bottom: 0;
    }

    .shelf:last-child{
        margin-bottom: 50px;
    }

    .shelf::after{
        display: none;
    }
    
    .shelf::before{
        display: none;
    }

    .shelf{
        flex-direction: column;
        align-items: center;
        gap:50px
    }
    nav img{
        width: 300px;
    }
}

