#main{
    background-color: #111111;
    height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
}

.depTitle{
    color: white;
    font-size: 3vw;
}

.depItem{
    background-color: #111111;
    width: fit-content;
    display: inline-block;
    padding: 1vw;
    border-radius: 1vw;
    margin: 0 1vw;
    transition: background-color 1s;
    border: 1px solid white;
}

.depItem:hover {
    background-color: #222222;
}

.depItem img{
    width: 15vw;
    height: 15vw;
    object-fit: cover;
    border-radius: 1vw;
}

.depItem h3{
    color: white;
    font-size: 1.5vw;
    margin: 0;
    margin-top: 0.5vw;
}

#overlay{
    position: absolute;
    z-index: 10;
    width: 100vw;
    height: calc(100vh - 200px);
    background-color: rgba(0, 0, 0, 0.5)
}

#overlay_popup {
    position: relative;
    width: 70%;
    height: 90%;
    margin: 5vh 15vw;
    overflow: hidden;
    background-color: #111111;
    border: 1px solid white;
    border-radius: 1vw;
    display: flex;
}

#overlay_texts{
    color: white;
    flex: 1;
    position: relative;
    margin-top: 50%;
    width: 90%;
    height: fit-content;
}

#overlay_img{
    flex: 1;
    position: relative;
}

#overlay_img img{
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 1vw;
    margin: 10%;
}

@media only screen and (max-width: 1000px){
    
    .depTitle{
        font-size: 10vw;
    }
    
    .depItem{
        display: inline-block;
        padding: 5vw;
        border-radius: 3vw;
        margin: 2vw 0vw;
    }
    
    .depItem img{
        width: 60vw;
        height: 60vw;
        border-radius: 3vw;
    }
    
    .depItem h3{
        font-size: 6vw;
        margin-top: 1vw;
    }
    
    #overlay{
        width: 100vw;
        height: calc(100vh - 200px);
        background-color: rgba(0, 0, 0, 0.5)
    }
    
    #overlay_popup {
        position: relative;
        width: 70%;
        height: 90%;
        margin: 5vh 15vw;
        overflow: hidden;
        background-color: #111111;
        border: 1px solid white;
        border-radius: 1vw;
        display: flex;
    }
    
    #overlay_texts{
        color: white;
        flex: 1;
        position: relative;
        margin-top: 50%;
        width: 90%;
        height: fit-content;
    }
    
    #overlay_img{
        flex: 1;
        position: relative;
    }
    
    #overlay_img img{
        width: 80%;
        height: 80%;
        object-fit: cover;
        border-radius: 1vw;
        margin: 10%;
    }

}