@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,600;1,400&display=swap');

body {
    background-color: rgb(0, 87, 87);
}

.fade {
    animation-name: fade;
    animation-duration: 3.5s;
}

@keyframes fade {
    from {opacity: .1} 
    to {opacity: 1}
}





/* .fade{
    -webkit-animation: 2s fade linear forwards;
    animation: 2s fade linear forwards;
}

@-webkit-keyframes fade{
    from{opacity: 0.4}
    to{opacity: 1}
}

@keyframes fade{
    from{opacity: 0.4}
    to{opacity: 1}
} */

/* .karya-container > img{
    width: 100%;
    position: relative;
    z-index: 0;
} */




@media screen and (min-width: 820px) {
    main {
        margin-top: 70px;
    }
}


.karya-container{
    /* position: relative; */
    background-image: url('../WEBSITE/PROJECTS/PROJECTS_BG.jpg');
    background-size: 100%;
    object-fit: cover;
    padding-bottom: 11.34vh;
}

@media screen and (max-width: 820px) {
    .karya-container {
        background-repeat: no-repeat;
        background-color: rgb(0, 128, 129);
        height: auto;
    }
}

.gallery-karya{
    /* position: absolute; */
    z-index: 1;
    width: 100%;
}

.row{
    width: 76%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.column {
    flex: 50%;
    display: none;
    padding: 0.48vh 0.23vw 0.48vh 0.23vw;
    /* width: fit-content; */
}

.row:after {
    content: "";
    display: flex;
    clear: both;
}

.content-img{
    display: flex;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    height: 225px;
    width: 100%;
    overflow: hidden;
}

.content-img .tulisan{
    position: absolute;
    padding-top: 5vw;
    padding-left: 1.17vw;
    padding-right: 0.39vw;
    text-align: left;
    visibility: visible;
    z-index: 3;
    width: 40%;
    height: 100%;
    background: #000;
    color: rgb(0, 187, 187);
    /* left: -15.62vw; */
    left: -40%;
    transform-origin: left;
    transition: transform 2s;
}

.content-img:hover .tulisan{
    visibility: visible;
    transform: translateX(100%);
    transition-duration: 1s;
}

.tulisan p{
    font-size: 16px;
    color: white;
}

.content-img > img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.content-img:hover img{
    transform: translateX(10%);
    transition-duration: 7s;
}

.show {
    display: block;
}

.karya-title{
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding-top: 21.06vh;
    text-shadow:0 0 10px #f88029,
    0 0 20px #f88029,
    0 0 40px #f88029,
    0 0 80px #f88029,
    0 0 120px #f88029,
    0 0 160px #f88029;
    letter-spacing: 0.39vw;
    font-weight: bold;
    font-size: 5.67vh;
}

#btn-gallery-container{
    width: 100%;
    margin-top: 8.91vh;
    margin-bottom: 5.67vh;
}

.bates{
    border: 2px solid #f88029;
    border-radius: 30px;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    background-color: #202020;
}

.btn {
    border-radius: 30px;
    padding: 1.94vh 5vw;
    cursor: pointer;
    color: #f88029;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 2.75vh;
}

.btn:nth-of-type(1),
.btn:nth-of-type(2),
.btn:nth-of-type(3){
    margin-right: 0.78vw;
}

.btn:hover {
    background-color: #f88029;
    color: white;
}

.btn.active {
    background-color: #f88029;
    color: white;
}

@media screen and (max-width: 820px) {
    .column{
        flex: 100%;
        width: 100%;
    }
    .content-img{
        height: 32vh;
    }
    .karya-title{
        font-size: 8vw;
    }
    .btn{
        flex: 50%;
    }
}

/* references: https://www.w3schools.com/howto/howto_js_portfolio_filter.asp */


#vote{
    position: fixed;
    left: -11.5vh;
    top: 50%;
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    z-index: 5;
    letter-spacing: 0.15vw;
    border: 3px white solid;
    background-color: rgb(248, 128, 41, 0.8);
    padding: 0.97vw 0.7vh;
    font-size: 2.7vh;
    transition: 1s;
    visibility: hidden;
    color: white;
    border-radius: 10px 10px 0 0;
    font-family: 'Archivo', sans-serif;
    font-weight: bold;
}

#vote:hover{
    box-shadow: 0 0 10px #f88029,
    0 0 20px #f88029,
    0 0 40px #f88029,
    0 0 80px #f88029;
    background-color: rgb(248, 128, 41, 1);
    cursor: pointer;
}

.modal{
    display: none; 
    position: fixed;
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    margin: 8% auto 0; 
    width: 70%; 
    display: flex;
    justify-content: center;
}

.modal-content img{
    margin: auto;
    border: 3px solid #f88029;
    transform: scale(1.1);
}

.close {
    color: white;
    float: right;
    font-size: 5vw;
    font-weight: bold;
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}

#img02 {
    display: none;
}

@media screen and (max-width: 820px) {
    .modal-content{
        margin-top: 25vh;
    }
    .modal-content img{
        width: 85%;
    }
    #img02{
        display: block;
    }
    #img01{
        display: none;
    }
}



.filters {
    text-align: center;
    padding-top: 250px;
}

@media screen and (max-width: 820px) {
    .filters {
        padding-top: 12.5vw;
    }
}

.gallery {
    padding-top: 100px;
}

@media screen and (max-width: 820px) {
    .gallery {
        padding-top: 12.5vw;
    }
}

.filters * {
    display: inline-block;
}

.filters label {
    padding: 15px 20px;
    border-radius: 2rem;
    line-height: normal;
    cursor: pointer;
    transition: all 0.1s;
    font-size: 1.5vw;
}

@media screen and (max-width: 820px) {
    .filters label {
        font-size: 2vw;
        padding: 2vw 4.5vw;
    }
}

.filters label:hover {
    background: rgba(26, 60, 64, 0.95);
    color: white;
}   

[value="All"]:checked ~ .filters [for="All"],
[value="CC"]:checked ~ .filters [for="CC"],
[value="Urban"]:checked ~ .filters [for="Urban"],
[value="Suburban"]:checked ~ .filters [for="Suburban"] {
    background: rgb(26, 60, 64);
    color: rgb(0, 187, 187);
}

[value="All"]:checked ~ .gallery .img_cont [data-category] {
    display: block;
}

[value="CC"]:checked ~ .gallery .img_cont:not([data-category~="CC"]),
[value="Urban"]:checked ~ .gallery .img_cont:not([data-category~="Urban"]),
[value="Suburban"]:checked ~ .gallery .img_cont:not([data-category~="Suburban"]) {
    display: none;
}   

ol{
    list-style: none;
}      

input[type="radio"] {
    position: absolute;
    display: none;
}