 body{
    overflow: scroll;
    background-color: rgb(219, 219, 219);
    background-size: cover;
    border:0;
    margin: 0;
}

/*Ads*/
.ad{
    position: absolute;
    margin:0;
    padding:0;
}
#leftAd{
    left:3px;
    width:160px;
    height:600px;
    top:56px;
}
#rightAd{
    right:3px;
    width:160px;
    height:600px;
    top:56px;
}
#mobileAd{
    display: none;
    top: 56px
}

/*list of classes container*/
.list{
    background-color: rgb(224, 193, 193);
    border: 2px solid rgb(56, 0, 0);
    position: relative;
    margin-left: 170px;
    margin-right: 170px;
    margin-bottom:none;
    min-height: 90vh;
    margin-top: 1px;
}
.title{
    text-align: center;
    margin-top:none;
}
.item, .specificItem{
    background-color: rgb(184, 187, 167);
    margin-left: auto;
    margin-right: auto;
    margin-top:2px;
    margin-bottom:2px;
    display: block;
    border-left: 2px solid rgb(70, 7, 7);
    border-right: 2px solid rgb(184, 187, 167);
    border-radius: 0px 8px 8px 0px;
    font-family: sans-serif;
    text-align: left;
    opacity: .75;
    
}
.item{
    font-size: 20px;
    width: 80%;
}
.item:hover, .specificItem:hover{
    cursor: pointer;
    background-color: rgb(143, 153, 86);
}
.specificItem{
    font-size:16px;
    margin-left: 15%;
    width: 75%;
}


.thumbnailTable{
    margin-left:auto;
    margin-right:auto;
    margin-top:.5%;  
}

.testName{
    position: absolute;
    color: black;
    bottom:5px;
    left: 5%;
    right: 5%;
    background-color: rgb(255, 239, 239);
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border: 2px solid rgb(255, 239, 239);
    border-radius: 8px;
    font-size: 10pt;
}

td{
    position: relative;
    width:140px;
    height:180px;
    background-color: white;
    border: 2px solid white;
    border-radius: 16px;
}

img{
    display: block;
    padding-left: 2px;
    padding-right:2px;
    margin-left: auto;
    margin-right:auto;
}

td:hover{
    filter: brightness(50%);
    cursor: pointer;
}

/*Smaller screens*/
@media only screen and (max-width: 850px){
    .list{
        margin-left: 0;
        margin-right: 0;
        margin-bottom:0;
        min-height: 90vh;
        padding-top: 55px;
        padding-left:0;
        padding-right:0;
        width:100%;
    }
    #leftAd, #rightAd{
        display:none;
    }
    td{
        width:100px;
        height:128.6px;
    }
    td img{
        width:100px;
        height:128.6px;
    }
}
/*Phones*/
@media only screen and (max-width: 400px){
    td{
        width:55px;
        height:71px;
    }
    td img{
        width:55px;
        height:71px;
    }
    #mobileAd{
        display: block;
        width: 320px;
        height: 50px;
    }
}