@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,600;1,400&display=swap');

.head{
    position: fixed;
    top: 0;
    z-index: 5;
    width: 100%;
    transition: all 0.3s ease;
    background: rgb(34,52,76, 0.7);
}

.head.sticky{
    background: #6c6b79;
    filter: none;
    z-index: 20;
}

.navlink{
    margin: 4.53vh 1vw;
    transition: 0.3s;
    font-weight: bold;
}

@media screen and (min-width: 820px) {
    .navlink:hover{
        font-size: 1vw;
    }
}
/* .navlink:hover.sticky{
    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;
} */

.content{
    max-width: 100%;
    display: flex;
    padding: 0 2.34vw 0 2.34vw;
    height: 12vh;
    align-items: center;
    font-weight: 500;
    font-size: 1.9vh;
    justify-content: space-between;
}

.burger{
    display: none;
    cursor: pointer;
}

.burger div{
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 820px) {
    .head{
        position: sticky;
        background: rgb(40,61,88);
    }
    body{
        overflow-x: hidden;
    }

    .nav-links{
        /* position: absolute; */
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 11vh;
        background-color: rgb(28,43,62);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li{
        opacity: 0;
    }

    .burger{
        display: block;
    }
}

.nav-active{
    transform: translateX(0%);
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translateX(50px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2{
    opacity: 0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px, -6px);
}

.carousel{
    width: 100%; 
    height: 55vw;
    background-image: url("../WEBSITE/KARYA/KARYA_01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: 5s;
    animation-name: ganti;
    animation-direction: alternate-reverse;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
    animation-duration: 20s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

@keyframes ganti{
    0%{
        background-image: url(../WEBSITE/KARYA/KARYA_02.jpg);
    }
    100%{
        background-image: url(../WEBSITE/KARYA/KARYA_01.jpg);
    }
}





/* .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;
} */





.karya-container{
    /* position: relative; */
    background-image: url("../WEBSITE/BERANDA/03_NOMINASI\ PESERTA.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 11.34vh;
}

.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: 29.17vh;
    width: 100%;
    overflow: hidden;
}

.content-img .tulisan{
    position: absolute;
    padding-top: 13vh;
    padding-left: 1.17vw;
    padding-right: 0.39vw;
    text-align: left;
    visibility: visible;
    z-index: 3;
    width: 40%;
    height: 100%;
    background: #89684b;
    color: white;
    /* left: -15.62vw; */
    left: -40%;
    transform-origin: left;
    transition: transform 2s;
}

.content-img:hover .tulisan{
    visibility: visible;
    transform: translateX(100%);
    transition-duration: 2s;
}

.tulisan p{
    font-size: 1.62vh;
    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 white;
    border-radius: 30px;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    background-color: #38587b;
}

.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){
    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%;
    }
    .tulisan h4{
        font-size: 3vw;
    }
}

/* 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: visible;
    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;
    }
}