/* Hide scrollbar for Chrome, Safari, and Opera */
body::-webkit-scrollbar, .container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge, and Firefox */
body, .container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    overflow-y: auto;
    padding: 20px;
}

#card-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flip-card {
    background-color: transparent;
    width: 400px; /* Adjust width as needed */
    height: 600px; /* Increased height to fit back text */
    perspective: 1000px;
    margin-bottom: 20px; /* Add margin to space the cards apart */
    border-radius: 15px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.flip-card-front {
    background-color: #2980b9;
    color: white;
}

.flip-card-back {
    background-color: #f0f0f0;
    color: black;
    transform: rotateY(180deg);
}

.flip-card-front h1 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.flip-card-front .closing-drills {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Stencil', sans-serif;
    margin: auto 0;
}

.flip-card-front .logo {
    width: 100px; /* Set a fixed width */
    height: auto;
    margin-top: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    align-items: center; /* Center the logo vertically */
}

.flip-card-front .logo img {
    width: 100%; /* Ensure the image fills the container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any inline-block spacing */
}

.flip-card-back .closing-drills-back {
    font-size: 18px;
    font-family: 'Stencil', sans-serif;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    background-color: #d9edf7;
    padding: 10px;
    border-radius: 10px 10px 0 0;
}

.flip-card-back .back-text {
    flex: 1;
    text-align: left;
    padding: 10px;
    overflow-y: auto;
    width: 100%;
}

.flip-card-back .back-notes {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background-color: #d9edf7;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    margin-top: 20px; /* Adjust margin-top to position correctly */
}

.flip-card-back .back-notes img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.flip-card-back .back-notes p {
    margin: 0;
    flex: 1;
    text-align: left;
}

.flip-card-back .logo-back {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px; /* Set a maximum width */
    height: auto;
}
