/* backdrop for modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 9;
}

/* to hide backdrop and modal */
.hidden{
    display: none;
}

.experience-modal{
    position: fixed;

    z-index: 10;
    display: none;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;

    width: 100%;
    max-width: 1000px;
    height: 550px;

    background-color: var(--modal-background);
}

.experience-modal.show{
    display: block;
    animation: popupFadeIn 0.5s ease forwards;
}

.experience-modal.hidden{
    animation: popupFadeOut 0.5s ease forwards;
    display: block;
}

@keyframes popupFadeOut {
    0%{
        transform: translate(-50%, -60%) scale(1);
        opacity: 1;
    }
    100%{
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
}

@keyframes popupFadeIn {
    0%{
        transform: translate(-50%, -60%) scale(0);
        opacity: 0;
    }
    100%{
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    
}



/** CLOSE BUTTON (svg) */
.close-modal-btn{
    position: absolute;
    width: 40px;
    top: 5%;
    right: 5%;
    cursor: pointer;
    z-index: 11;
}




/** CONTENT MODAL (img, txt(h2, p))*/
.modal-content{
    height: 100%;
    width: 100%;
    background-color: var(--modal-background-2);
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 50px 50px 50px 50px;
    gap: 40px;
    position: absolute;
    z-index: 10;
}

/** dot and image container related */
.modal-content .image-wrapper{
    width: 90%;
    border-radius: 12px 12px 0px 0px;
    position: relative;
}

/** img container related */
.image-wrapper img{
    width: 100%;
    height: 100%;
}

/** dot container related */
.image-wrapper .dot-container{

    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
    z-index: 11;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.dot{
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s;
    cursor: pointer;
}

.dot.active{
    background-color: var(--highlight-color)
}


.modal-text{
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    color: var(--text-color-2);
}

.modal-text h2{
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-top: 30px;
}

.modal-text p{
    font-family: var(--font-body);
    font-weight:200;
}