* {
    margin: 0;
    padding: 0;
    background-color: #ecede7;
}

h1 {
    color: #231b1b;
    background-color: #ffd2fc;
    text-align: center;
    font-family: 'Courier New', Courier, monospace, comic sans mc;
    font-size: 2.5rem;
    height: 4rem;
    padding-top: 10px;
}

/* AUDIO */

.audio-container{
   position: absolute;
   top: 10px;
   right: 20px;
   z-index: 1000; 
}

.audio-btn {
    background-color: #ffd2fc;
    color: #231b1b;
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 1px;
    cursor: pointer;
    transition: 0.3s;
}

/* SLIDER */

.slider-container {
    position: relative;
    width: 100%;
    /* max-width: 600px; */
    margin: auto;
    overflow: hidden;
    border: 1px solid #ecede7;
}

.slide {
    display: none; /* Hide all slides by default */
    padding: 20px;
    text-align: center;
    background-color: #ecede7;
    background-size: cover;
    image-resolution: unset;
    /* height: 500px;
    width: 500px; */
    line-height: 200px;
    font-size: 24px;
}

video {
    object-fit: 100%;
}

.arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(236,237,231,0.8);
    border: none;
}

.right {
    right: 1px;
    border-radius: 3px 0 0 3px;
}

.left {
    left: 1px;
}

.arrow:hover {
    background-color: rgba(236,0237,231,1);
}

/* FLIP */

.flip-container {
    background-color: #ecede7;
    width: 300px;
    height: 400px;
    border: 1px solid #ccc;
    perspective: 1000px;
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2), -5px -5px 10px rgba(0.05);

}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: #f8b0fa;
    transition: transform 0.8s; /* Smooth transition for the flip */
    transform-style: preserve-3d; /* Ensures child elements are positioned in 3D space */
}

/* The state for when the box is flipped */
.flip-box-inner.is-flipped {
    transform: rotateY(180deg);
    transition-duration: 0.6s;
    transition-timing-function: ease-in-out
}

.flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden; /* Hide the back of the element when facing away */
}

.flip-box-front {
    background-color: #ecede7;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-box-back {
    background-color: #ecede7;
    color: white;
    transform: rotateY(180deg); /* Start the back side rotated 180 deg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip {
    margin-top: 8px;
    /* padding: 10px 20px; */
    cursor: pointer;
    border: none;
    bottom: 0;
}

.box-image {
    height: 320px;
    background-size: cover;
    margin-top: 1rem;
    margin-bottom: 1rem;
}