h2.Halloween1 {
    font-size: 30px;
    color: black;
}

img.Halloween {
    border-style: solid;
    border-color: black;
}

body.HalloBg {
    background-image: url("Images/HalloBg.JPG");
    background-size: cover;
}

nav.hall {
    background-color: #000000 !important;
}

p.halloween {
    color: black;
}

a.hallo {
    color: black;
}

a.Hal {
    color: orange;
}

a.Hal.nav-link {
    color: orange !important; /* Ensure the text is orange */
}

.hal nav-link {
    display: block;
    padding: .5rem 1rem;
    color: white;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

form .form-control {
    color: orange !important; /* Force text to be orange */
    background-color: black !important; /* Ensure the background remains black */
    caret-color: orange !important; /* Orange caret for consistency */
}

button.btn-outline-success:hover {
    background-color: orange;
    color: black;
    border-color: orange; /* Change border color to orange on hover */
}

div.d-flex img.Halloween {
    width: 350px; /* Explicitly set the width */
    height: auto; /* Maintain aspect ratio */
}

img.Halloween {
    width: 350px !important;
    height: auto !important;
}

img.Halloween {
    width: 350px !important;
    max-width: none; /* Prevent Bootstrap's max-width from interfering */
    height: auto;
}

.transparent-box {
    background-color: black;
    padding: 20px;
    width: 100%; /* Adjusted to allow full width for flashcards */
    color: orange;
    position: relative;
    margin-top: 0px; /* Remove any top margin */
    margin-bottom: 20px; /* Add some space below to separate from content */
    max-width: 600px; /* Optional: Set a max width */
    text-align: center;
}

/* Flashcard styles */
.flashcards {
    display: flex;
    flex-direction: row; /* Align flashcards side by side */
    gap: 10px; /* Add space between the flashcards */
    flex-wrap: wrap; /* Allow wrapping if content overflows */
    justify-content: center; /* Center the flashcards in the container */
}

.flashcard {
    position: relative;
    width: 150px; /* Adjusted width to fit more flashcards side by side */
    height: 100px;
    background-color: orange;
    color: black;
    text-align: center;
    border: 1px solid black;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
}

.flashcard .front,
.flashcard .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.6s;
}

.flashcard .front {
    background-color: black;
    color: orange;
}

.flashcard .back {
    background-color: orange;
    color: black;
    transform: rotateY(180deg);
}

.flashcard:hover .front {
    transform: rotateY(180deg);
}

.flashcard:hover .back {
    transform: rotateY(0deg);
}
