@media screen and (min-width: 1200px) {

body {
    background-color: rgb(85, 114, 175);
    margin: 1rem;
    display: flex;
    justify-content: center;
}

.mobile-selected-img {
    visibility: collapse;
}

.ranks {
    background-color: rgb(48, 69, 156);
    border-radius: 5px;
    width: 60vw;
    height: calc(100vh - 2rem);
    justify-content: center;
    display: inline-block;
}

p, h1 {
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    display: grid;
    margin: 0;
}

h1 {
    font-size: 3rem;
    padding-top: 1rem;
}

.listwrapper {
    display: grid;
    justify-content: start;
    position: relative;
    width: 25vw;
    float: left;
}

.list {
    width: 15vw;
    padding-left: 15vw;
}

.rank-p {
    font-size: 3.3rem;
    width: 3.3rem;
    padding: 0;
    margin: 0;
}

.ranked-img {
    height: 3.3rem;
    display: flex;
    border-radius: 5px;
    display: flex;
    position: relative;
    opacity: 1;
}

.ranked {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ranked-p-10 {
    font-size: 3.3rem;
    width: 3.4rem;
    padding: 0;
    margin: 0;
    padding-left: 5px;
    display: flex;
    position: relative;
}

.img-button {
    border: none;
    background-color: transparent;
    z-index: 100;
}

.selected-img {
    height: 15rem;
    border-radius: 10px;
}

.selected {
    justify-content: center;
    align-items: center;
    display: grid;
    height: calc(90vh - 2rem);
}

#playagain:hover {
    cursor: pointer;
}

.img-button:hover {
    cursor: pointer;
}

#playagain {
    border: none;
    background-color: rgb(23, 34, 77);
    border-radius: 10px;
    display: block;
    float: right;
    margin-right: 2vw;
    align-items: center;
    text-align: center;
}
}
@media screen and (max-width: 1199px) {
    body {
        background-color: rgb(85, 114, 175);
        margin: 0.4rem;
        display: flex;
        justify-content: start;
    }
    
    .ranks {
        background-color: rgb(48, 69, 156);
        border-radius: 5px;
        width: 40vw;
        height: calc(100vh - 2rem);
        justify-content: center;
        display: inline-block;
    }
    
    p, h1 {
        color: white;
        font-family: 'Poppins', sans-serif;
        text-align: center;
        display: grid;
        margin: 0;
    }
    
    h1 {
        padding-top: 0.3rem;
    }

    .w {
        font-size: 1rem;
    }
    
    .listwrapper {
        visibility: collapse;
    }
    
    .list {
        width: 15vw;
        padding-left: 15vw;
    }
    
    .rank-p {
        font-size: 2.5rem;
        width: 3.3rem;
        padding: 0;
        margin: 0;
    }
    
    .ranked-img {
        height: 3.3rem;
        display: flex;
        border-radius: 5px;
        display: flex;
        position: relative;
        opacity: 1;
    }
    
    .ranked {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .ranked-p-10 {
        font-size: 10px;
        width: 2rem;
        padding: 0;
        margin: 0;
    }
    
    .img-button {
        border: none;
        background-color: transparent;
        z-index: 100;
    }
    
    .selected-img {
        height: 6rem;
        border-radius: 10px;
    }
    
    .selected {
        justify-content: center;
        align-items: center;
        display: grid;
        height: calc(90vh - 2rem);
    }
    
    
    .img-button:hover {
        cursor: pointer;
    }
    
    #playagain {
        visibility: collapse;
    }
}