:root {
    --swiper-theme-color: rgba(0, 0, 0, 0.7);
    --primary-color: #304DDB;
    --secondary-color: #7383FF;
    --primary-color-light: #E9E4FF;
}

.download-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    text-align: center;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 30;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
}

.download-modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 30%;
    width: 50%;
    background-color: white;
    border-radius: 15px;
}

.download-modal-close {
    display: none;
    background-color: var(--primary-color);
    color: white;
    width: 90%;
    padding: 3%;
    margin: 2%;
    margin-top: 30px !important;
    border: none; 
    border-radius: 5px;
    z-index: 100 ;
}

.alert-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    text-align: center;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

.alert-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 220px;
    width: 50%;
    background-color: white;
    border-radius: 15px;
}

.download-btn ,
.customize-btn ,
.delete-btn,
.duplicate-btn{
    transition: all 0.3s ease-in-out;
}

.download-btn:hover ,
.customize-btn:hover ,
.delete-btn:hover,
.duplicate-btn:hover {
    transform: scale(1.05);
}

.customize-btn > img,
.download-btn img{
    width: 0.9rem;
    height: 0.9rem;
}

.delete-btn > img{
    width: 0.9rem;
    height: 1rem;
}

.duplicate-btn img{
    height: 1rem;
    width: 1rem;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}
  
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.alert-modal-close {
    display: block;
    background-color: #2D2C2C;
    color: white;
    width: 90%;
    padding: 3%;
    margin: 5%;
    margin-top: 30px !important;
    border: none; 
    border-radius: 5px;
    z-index: 100 ;
}

#noOfCards{
    margin: 5%;
    border: none;
    border-radius: 10px !important;
    font-size: 1.2rem;
}

.no-card{
    margin: 40px;
    border: none;
    border-radius: 10px !important;
    font-size: 1.2rem;
}

@media (max-width:576px) {
    .alert-modal-close {
        margin-top: 10px !important;
    }

    .alert-modal-content{
        width: 80%;
    }

    #noOfCards,.no-card{
        font-size: 0.9rem;
    }
}

@media (max-width:320px) {
    .alert-modal-content {
        width: 60%;
    }
}

.alert-modal-close:hover, 
.alert-modal-close:active {
    background-color: #2D2C2Ccb;
}

#root{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 3%;
}

#root > section > div,#videos,#draft-videos,#order-videos {
    width: 100%;
    margin: 5px 5px 5px 0;
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 2rem 5%;
}

@media (min-width:1200px) {
    #root:not(.video-option) {
        padding: 0 8%;
    }
}

.card-container,.draft__video {
    margin: 10px;
    height: auto;
    border: 10px solid white;
    background-color: white;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 50%);
    border-radius: 10px;
}

.draft__video{
    width: 250px;
}

.card-container:hover,.draft__video:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.card-container > div:nth-child(1)::after {
    content: '';
    background: url(../assets/img/watermark_sample.png) no-repeat center center/cover;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    z-index: 5;
    left: 0;
}

.cards {
    position: relative; 
    width: 220px; 
    aspect-ratio: 2/3;
}

@media (max-width: 425px) {
    .cards {
        width: 140px;
    }
}

@media (min-width: 600px) {
    #header-logo {
        font-size: 3.5em !important;
    }

    #root {
        justify-content: center;
    }
}

.cardText,.user-icon,.user-image {
    position: absolute;
    line-height: 1.1;
    text-align: center;
    user-select: none;
    touch-action: none;
    text-decoration: none;
    padding: 5px;
    white-space: nowrap;
}

.video-img-container,.video-order{
    padding: 10px;
    border: 2px solid #80808047;
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}

.main-video-container{
    row-gap: 2rem;
    column-gap: 2rem;
}

.video-option img{
    width: 220px;
    aspect-ratio: 9/16;
    cursor: pointer;
}

#videos{
    margin-top: 0;
}

#draft-videos,#order-videos{
    margin-top: 0;
    width: auto;
    padding: 0 10%;
}

.select-video-heading,.draft-videos-heading,.order-videos-heading{
    margin-top: 120px;
    font-size: 26px;
    width: 85%;
    margin-left: 5%;
    font-family: "Montserrat";
    font-style: italic;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid black;
    margin-bottom: 50px;
}

.no-draft-message,.no-order-message{
    display: none;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: auto;
    margin: 0 0 3rem 0;
}

.video-img-container .delete-btn img{
    width: 1rem;
    height: 1.2rem;
}

.delete-error-modal{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    z-index: 10;
}

.delete-error-modal > div{
    min-height: 30%;
    min-width: 40%;
    background: white;
    display: flex;
    justify-content:center;
    align-items: center;
    position: relative;
    text-align: center;
    border-radius: 15px;
}

.delete-error-modal > div > p{
    margin: 2rem 1rem;
    font-size: 1rem;
    font-family: "Montserrat";
    font-style: italic;
    font-weight: 500;
}

.delete-error-modal > div > span{
    position: absolute;
    top: 10px;
    right: 10px;
    rotate: 45deg;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.video-order{
    display: flex;
    width: 220px; 
    height: auto;
    aspect-ratio: 9/16;
}

.video-order > video{
    width: 100%;
    height: 100%;
}

/* css for cards+videos */

#root{
    margin-top: 10%;
}

#root > section{
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 1.5em 0;
}

#root > section > div{
    margin-top: 0px;
}

#root > section > p{
    text-align: left;
    width: 100%;
    border-bottom: 1px solid black;
    margin-bottom: 50px;
    padding: 10px 0;
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    font-family: "Montserrat";
    font-style: italic;
}

#root > section > p:nth-last-child(1){
    text-align: center;
    color: grey;
    font-size: 0.8rem;
    font-weight: 400;
    border-bottom: none;
    display: none;
}

.draft__video{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inner-video-container{
    position: relative;
    aspect-ratio: 3/2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

video{
    z-index: 2;
}

.draft__video .video-processing-tag{
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: Roboto;
    color: #141414;
}

.disabled-button{
    opacity: 0.3;
    cursor: not-allowed !important;
}

.video-name{
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    font-size: 0.9rem;
    font-family: "Inter";
    font-style: italic;
    margin-bottom: 5px;
    z-index: 3;
}

@media (max-width: 900px) {
    #root{
        margin-top: 18% !important;
    }
}

#root .video-section p.content-update-note{
    border-bottom: none !important;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
}

.updated-content-icon{
    position: absolute;
    top: 0;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.4);
    transform: translate(0%,25%);
    padding: 5px;
    border-radius: 50%;
    background-color: #ffffff;
}

.updated-content-icon .material-symbols-outlined{
    font-size: 1rem;
    position: relative;
    top: 0.5px;
}

#root .video-section p span{
    font-size: 1rem;
}

#root > section > p.unsaved-video-note{
    color: #2D2C2C;
    display: none;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    text-decoration: underline;
    cursor: pointer;
    border-bottom: none;
}

@media (max-width:576px) {
    .draft__video {
        width: 155px;
    }
}