@font-face {
    font-family: "gskana";
    src: url("/src/fonts/gskana.woff") format("woff");
    font-weight:normal;
    font-style: normal;
}
@font-face{
    font-family: "logotype";
    src: url("/src/fonts/logotype.woff") format("woff");
    font-weight:normal;
    font-style: normal;
}
*{
    font-family: logotype;
    color:#2588ee;
    text-align: center;
    margin: auto;
    box-sizing: border-box;
    text-decoration: none;
}
a{
    text-decoration: underline;
}

body{
    background-color: white;
}
header{
    font-family: gskana;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0px 10px;
    background-color: #2588ee;
}
header h1{
    color: white;
    font-size:50px;
}
nav{
    font-size:20px;
    display: flex;
    flex: 1;
    align-items: center;
    color: white;
}
footer, footer p{
    background-color: #2588ee;
}
footer *{
    color: white;
}
#social-icon i{
    font-size: 50px;
    text-align: center;
    margin: 10px 20px;
    color: white;
}
#social-icon i:hover{
    filter: drop-shadow(2px 2px 4px #054399);
}

footer p{
    font-family:sans-serif !important;
    padding-bottom:20px;
    font-size: 15px;
}
.container .heading{
    font-size: 40px;
}
.work{
    background: #222222;
}
.work .info{
    background-color: #2588ee;
}
.work img{
    width: 100%;
    object-fit:contain;
}

.work p{
    color: white;
    text-align: left;
}
.work .title{
    font-size: 30px;
}
.item4{
    background: transparent;
}
.item4 .info{
    background: white;
}
.captionBox{
    position: relative;

    margin-top: 1em;
    padding: 1em 0em 0.5em 0em;
    border: 1px solid #2588ee;
}

.captionBox .title{
    color: #2588ee;
    position: absolute;
    top: 0;
    left: 0;

    font-size: 1em;
    padding: 0 1em;
    background-color: white;
    transform: translateY(-50%) translateX(1em);
}
.captionBox .caption{
    color: #2588ee;
    font-size:14px;
}
.others{
    margin-bottom: 0.5em;
}
@media screen and (min-width:481px){
    .grid{
        max-width: 800px;
        width: 90%;
        text-align: left;
    }
    .work img{
        filter: grayscale(1);
        transition: 0.3s;
    }
    .work a:hover img{
        filter: grayscale(0);
        transition: 0.3s;
    }
    .work .title{
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

    }
    .work .caption{
        padding-left: 1em;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .item1,.item2,.item3,.item4{
        margin-bottom:20px;
    }
    .item2 img,.item3 img,.item4 img{
        height: 150px;
    }
    .item2,.item3,.item4{
        vertical-align: top;
        display: inline-block;
        width: 32%;
    }
    .others p{
        font-size: 30px;
    }
}
@media screen and (max-width: 480px){
    header {
        font-size: 7vw;
    }

    header h1{
        font-size: 10vw;
        margin:10px;
    }
    nav {
        font-size:4vw;
    }

    #social-icon i {
        margin-left: 5vw;
        margin-right: 5vw;
        font-size: 10vw;
    }
    footer p{
        padding-top: 3vw;
        font-size: 4vw;
    }

    .container .heading{
        font-size: 10vw;
    }

    .work{
        width:90%;
        margin-bottom: 2vw;
    }
    .work .title{
        font-size:7vw;
    }
    .work .caption{
        padding: 2vw;
        font-size:5vw;
    }
}
