/* StyleRef for Index/Homepage */
header img {
    width: 100px;
    height: 100px;
}

main {
    font-family: 'jost';
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 70%;
    margin: 2% auto;
    padding: 1px 50px 0px 50px; /* Ensure some space around content */
    background-image: url(images/Backdrop.png);
    background-size: 200%;
    border-radius: 20px;
    border: 3px solid #363F55;
}

.headline {
    position: relative;
    text-transform: uppercase;
    text-align: center;
    font-size: 4rem;
    width: fit-content;
    font-weight: 600;
    margin-top: 40px;
    background-color: #363F55;
    padding: 20px 40px;
    border-radius: 60px;
    border: 6px solid #444e69;
}

.video-backdrop {
    position: relative;
    width: 80%;
    height: 100%;
    margin: auto;
    overflow: hidden;
    object-fit: cover;
}

/* Card Style */
.card-menu {
    display:flex;
    flex-direction: row;
    justify-content:center;
    align-items: center;
    gap: 1.5rem;
    margin: 5rem 0px 1rem 0px;
}

.card-menu h1 {
    font-size: 1.8rem;
    border-bottom: 3px dotted white;
    margin: 0px 55px 10px;
    text-align: center;
    padding-bottom: 10px;
}
.card-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 20px 0px 200px;
}
.shadow-wrapper {
    background-color: rgba(19, 17, 34, 0.411);
    border-radius: 1.8rem;
    box-shadow: rgba(11, 10, 20, 0.411) 0px 0px 15px 1px;
    height: 500px;
    width: 350px;
}
.container{
    position: relative;
    height: 100%;
    width: 100%;
    perspective: 800px;
    margin: auto;
}

.container:hover > .card {
    cursor: pointer;
    transform: translateY(-60px) scale(1.05) rotateY(0deg);
}

.container.active > .card {
    transform: translateY(-60px) scale(1.05) rotateY(180deg);
}

.card {
    height: 100%;
    width: 100%;
    transition: transform 1000ms;
    transform-style: preserve-3d;
    transition-timing-function: cubic-bezier(.61,-0.42,.39,1.36);
}

.front, .back {
    height: 100%;
    width: 100%;
    border-radius: 2rem;
    position: absolute; /* Breaks everything without relative position in card? */
    backface-visibility: hidden;
}

.front {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border: 0.5rem solid rgb(252, 252, 252);
    background-color: rgb(255, 148, 106);
    
}
.front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius:  1.7rem;
    border-top-right-radius:  1.7rem;
}
.back {
    background-color: rgb(59, 64, 90);
    transform: rotateY(180deg);
    border: 0.5rem solid rgb(252, 252, 252);
}

.back video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius:  1.5rem;
    border-top-right-radius:  1.5rem;
}
.content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.1rem;
    height: auto;
    position: relative;
    border-radius: 1.7rem;
}
/* .gradient-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(255, 172, 130) 30%, rgba(0,0,0,0) 55%);
} */
.back-video {
    margin: 0px 0px 10px; 
    object-fit: cover;
    border-bottom: 3px solid white;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: stretch;
    padding-bottom: 0.1rem;
    position: relative;
}

.abilities {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
}

.abilities p:hover {
    transform: scale(110%);
    background-color: #ff9c62;
    transition: 0.5s;
}

.abilities p {
    border-color:  rgb(255, 255, 255);
    color: #fff;
    font-size: 1.2rem;
    border-width: 0.1rem;
    border-style: solid;
    padding: 10px 40px;
    border-radius: 1rem;
    background-color: rgb(84, 90, 124);
    transition: 0.5s;
    transform: scale(100%);
}

/* CArd Style End */

.media {
    position: absolute;
    opacity: 0;  
    backface-visibility: hidden;
}

.media.active {
    position: relative;
    opacity: 1;
}

.media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #363F55;

}

 .media img {
    margin: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .media.zoom-effect {
    animation: zoomInOut 15s ease-in forwards;
    will-change: transform;
    transform-origin: center center;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
} */

/* .gradient-video {
    position: absolute;
    width: 100%;
    height: 100%;
     background: linear-gradient(to top, #181a29 10%, rgba(0,0,0,0) 40%); 
    z-index: 1;

} */

.sub-headline {
    text-transform: uppercase;
    text-align: center;
    font-size: 1.5rem;
    width: fit-content;
    font-weight: 500;
    margin: 30px 0 0px;
}

.image-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 50px 0px 200px 0px;
}

.image-row img video {
    height: 300px;
    width: 300px;
    border-radius: 3%;
}

/* .button-container video{
    mix-blend-mode: lighten;
} */

.button-container {
    background: rgb(255, 148, 106);
    position: relative;
    width: 300px;
    height: 300px;
    text-align: center;
    color: #fff;
    border-radius: 3%;
}

.hover-button {
    opacity: 0;
    position:absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 100%;
    font-size: 2rem;
    font-weight: bolder;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1;
    pointer-events: none;
}

/* active state for Js instead of hover */

.active-button, .button-container:hover {
    transform: scale(1.01);
    transition: 0.5s;
    overflow: hidden;
    filter: drop-shadow(1rem 1rem 5px rgb(37, 37, 37));
    background: rgb(184, 107, 77) !important;
}

.active-button video, .button-container:hover video {
    filter: drop-shadow(1rem 1rem 3px rgba(179, 92, 71, 0.7));
    transform: scale(1.01);
    transition: 0.5s;
    mix-blend-mode: lighten;
}

.active-button .hover-button, .button-container:hover .hover-button {
    opacity: 1 !important;
    transition: 0.5s;
    cursor: pointer;
}

/* remove if concept art added */

/* Media Queries */
@media screen and (max-width: 900px) {

    main {
        width: 85%;
        padding: 1px 5px 0px 5px;
        background-size: 700%;
    }
    .shadow-wrapper {
        width: 320px;
        height: 470px;
    }

    .image-row {
        flex: 1 1 100%;
        flex-direction: column;
        max-width: 100%;
    }
    .headline {
        font-size: 2rem;
        padding: 10px 20px;
    }

    .media video {
        margin: auto;
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
    .video-backdrop {
        position: relative;
        width: 100%;
        height: 450px;
        margin: auto,;
        padding-bottom: 10px;
        overflow: hidden;
       
    }

    .card-menu {
        flex-direction: column;
        margin: 100px 60px;
    }

    .card-container {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin: 0px 0px 5px;
    }
}

/* Hover Effect */

/*No Hover */
@media (hover: none) { 
    .button-container {
        background:rgb(255, 148, 106);
        border-radius: 3%;
        overflow: hidden;
    }

    .button-container .hover-button { 
        opacity: 0;    
    }
}

/* On Hover Style */
@media (hover: hover) {

    .button-container:hover .hover-button { 
        opacity: 1;
        transition: 0.5s;
        cursor: pointer;
    } 
    

    .button-container:hover video {
        cursor: pointer;
        filter: drop-shadow(1rem 1rem 3px rgba(179, 92, 71, 0.7));
        transform: scale(1.01);
        transition: 0.5s;
        background: rgb(184, 107, 77);
        mix-blend-mode: lighten;
    }

    .button-container:hover {
        transform: scale(1.01);
        transition: 0.5s;
        overflow: hidden;
        filter: drop-shadow(1rem 1rem 5px rgb(37, 37, 37));
        background: rgb(184, 107, 77);
    }

}