@font-face {
    font-family: "Comis-sans";
    src: url(./font/comic\ sans\ ms.ttf);
}

body{
    background-color: #21D4FD;
    background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Comis-sans";
    display: flex;
    align-items: center;
    justify-content: center;
}
main{
    text-align: center;
    background: rgb(255, 255, 255);
    padding: 20px 40px;
    border-radius: 16px;
    -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}
main h1 {
    margin: 0 0 20px 0;
}
.portfolio{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 1em;
}
.portfolio .item a{
    display: block;
    position: relative;
    height: 150px;
    width: 150px;
    transition: 300ms;
}
.portfolio .item a:hover{
    scale: 1.1;
}
.portfolio .item a img{
    height: 150px;
    border-radius: 8px;
}
.portfolio .item a div{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 300ms;
    color: rgba(0, 0, 0, 0);
}
.portfolio .item a div:hover{
    background-color: rgba(0, 0, 0, 0.652);
    color: white;
}
a{
    text-decoration: none;
    color: white;
}
@media (max-width:800px){
    .portfolio{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 30px;
        grid-row-gap: 1em;
        .item {
            margin: auto;
            a {
                height: 200px;
                width: 200px;
                img{
                    height: 200px;
                    width: 200px;
                }
                div{
                    color: black;
                    font-weight: 600;
                    height: 200px;
                    width: 200px;
                    &:hover{
                        color: #092286;
                    }
                    span{
                        background: white;
                        padding: 10px;
                        border-radius: 8px;
                        -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
                        -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
                        box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
                    }
                }
            }
        }
    }
}

@media only screen and (max-device-width: 600px){
    .portfolio{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 30px;
        grid-row-gap: 1em;
        .item {
            margin: auto;
            a {
                height: 200px;
                width: 200px;
                img{
                    height: 200px;
                    width: 200px;
                }
                div{
                    color: black;
                    font-weight: 600;
                    height: 200px;
                    width: 200px;
                    &:hover{
                        color: #092286;
                    }
                    span{
                        background: white;
                        padding: 10px;
                        border-radius: 8px;
                        -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
                        -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
                        box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
                    }
                }
            }
        }
    }
}