* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: url(../asset/perdivisi/bg-overlay.svg), linear-gradient(to left bottom, rgb(207,58,17), rgb(249,201,153)) no-repeat;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    font-family: 'Trirong', serif;
    color: #fff;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#divisi {
    position: relative;
}

.btn-back {
    display: flex;
    position: absolute;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-out;
    top: 50px;
    left: 50px;
}

.btn-back:hover {
    transform: scale(1.05);
}

.btn-back img {
    width: 1rem;
    margin-right: 8px;
}

.content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 2;
}

.btn-arrow-container {
    display: flex;
    align-items: center;
    flex: 0 0 5%;
}

.btn-arrow {
    background-color: transparent;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    z-index: 3;
}

.btn-arrow:hover {
    background-color: #fff;
    color: #000;
}

.btn-arrow span {
    margin-bottom: 4px;
}

.divisi-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    flex: 0 1 90%;
}

.divisi-card-container {
    flex: 0 0 50%;
}

.divisi-details {
    margin-left: auto;
    margin-right: auto;
    flex: 0 1 40%;
}

.divisi-card {
    position: relative;
    background-color: rgba(255,255,255,0.5);
    border-radius: 20px;
    text-align: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.divisi-card #divisi-logo {
    position: absolute;
    max-width: 120px;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.divisi-card .divisi-photo-card {
    position: relative;
}

.divisi-card .divisi-photo-card #divisi-photo,
.divisi-card .divisi-photo-card .overlay {
    width: 100%;
    border-radius: 12px;
}

.divisi-card .divisi-photo-card #divisi-photo {
    box-shadow: 0 4px 5px 0 rgba(0,0,0,0.25);
}

.divisi-card .divisi-photo-card .overlay {
    position: absolute;
    height: calc(100% - 8.66px);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.25));
}

.divisi-card .divisi-photo-card .title {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.divisi-card .divisi-photo-card .title #divisi-photo-name {
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 500;
}

.divisi-details {
    text-align: center;
}

.divisi-details .header {
    padding-bottom: 2rem;
}

.divisi-details .header .title {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 12px;
}

.divisi-details .header .title #divisi-name {
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 500;
    line-height: 100%;
}

.title .fade-line {
    width: 100%;
    min-width: 16px;
    max-width: 100px;
    display: flex;
    align-items: center;
}

.title .fade-line span {
    width: 100%;
    height: 1.2px;
}

.from-fade {
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
}

.to-fade {
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.divisi-details .header #divisi-alias {
    text-transform: capitalize;
    font-weight: 700;
    font-size: 20px;
}

.divisi-details .committee {
    font-size: 14px;
}

/* Waves */
.waves {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: -7px; /*Fix for safari gap*/
    min-height: 100px;
    max-height: 250px;
}

/* Animation */

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    opacity: 0.2;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    opacity: 0.4;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    opacity: 0.4;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    opacity: 0.2;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

/* Media Queries */
@media screen and (max-width: 980px) {
    .content {
        padding-left: 0;
        padding-right: 0;
    }

    .btn-back {
        top: 25px;
        left: 25px;
    }

    .btn-arrow {
        height: 150px;
    }

    .btn-arrow#prev {
        border-left: none;
        border-radius: 0 10px 10px 0;
    }

    .btn-arrow#next {
        border-right: none;
        border-radius: 10px 0 0 10px;
    }

    .divisi-container {
        flex-direction: column;
        gap: 3rem;
        padding: 6rem 2rem;
    }

    .divisi-card-container,
    .divisi-details {
        width: 100%;
    }
}

@media screen and (max-width: 620px) {
    .btn-arrow {
        height: 100px;
        width: 40px;
    }

    .divisi-container {
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 1rem;
    }

    .divisi-card {
        padding: 0.75rem 0.75rem 0.25rem 0.75rem;
        margin: 0 -2rem;
    }

    .divisi-card #divisi-logo {
        max-width: 100px;
        top: -40px;
    }

    .divisi-card .divisi-photo-card .title #divisi-photo-name {
        font-size: 18px;
    }

    .divisi-details .header {
        padding-bottom: 1rem;
    }

    .divisi-details .header .title {
        gap: 0.75rem;
        margin-bottom: 6px;
    }

    .divisi-details .header .title #divisi-name {
        font-size: 30px;
    }

    .divisi-details .header #divisi-alias {
        font-size: 16px;
    }

    .divisi-details .committee {
        font-size: 12px;
    }

    .title .fade-line {
        padding: 0 4px; /*unknown height problem*/
    }
}
