/* Container for all flashcards */
#flashcardContainer {
    width: 300px;
    height: 400px;
    margin: 0 auto;
    border: 2px solid #000;
    perspective: 1000px; /* Adds 3D effect for flipping cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Navigation Buttons Styling */
#navButtons {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    width: 200px;
}

.buttons {
    display: flex;
    justify-content: center; /* Center buttons */
    margin-top: 10px;
    width: 100%; /* Ensures that the buttons container takes up full width */
}

.buttons button {
    padding: 5px 5px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 10px; /* Space between buttons */
}

/* Dropdown inside tag modal */
#tagDropdown {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Ensures it fits inside the modal */
}

/* Flashcard Design */
.flashcard {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* Allows for flipping */
    transform: rotateY(0);
    transition: transform 0.6s;
    cursor: pointer;
}

/* Font Styles */
h1,
h2 {
    font-family: "Cormorant Upright", serif;
    font-weight: 300;
    font-style: normal;
}

p {
    font-family: "Cormorant Upright", serif;
    font-size: 20px;
}

/* Reduce spacing between paragraphs on flashcards */
.flashcard p {
    margin: 2px 0; /* Adjust top and bottom margins to reduce spacing */
    line-height: 1.5; /* Adjust line height for closer text lines */
}

/* Front and Back Sides of the Flashcards */
.front,
.back {
    position: absolute;
    backface-visibility: hidden; /* Ensures back side is hidden when flipped */
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.front {
    background-image: url("https://dl9.glitter-graphics.net/pub/736/736629olqwn73f2s.gif");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.back {
    background-image: url("https://dl2.glitter-graphics.net/pub/726/726632eods8dwnpd.gif");
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg); /* Flip back side */
    z-index: 2;
}

.flipped {
    transform: rotateY(180deg); /* Apply the flip */
}

/* Links in Flashcards (for words with notes) */
.front a {
    font-size: 18px;
    color: #0066cc; /* Blue color for links */
    cursor: pointer;
    text-decoration: underline;
}

.front a:hover {
    color: #0044cc; /* Darker blue on hover */
}

/* Modal (background for pop-up) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
}

/* Modal Content Styling */
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 250px;
    height: 200px;
    box-sizing: border-box;
}

/* Flashcard in Modal (for vocabulary definition) */
.modal-content .flashcard {
    width: 200px; /* Smaller size */
    height: 300px;
    margin: 0 auto;
    background-color: #e8e8e8; /* Light gray front */
    color: #333; /* Text color */
    position: relative;
}

/* Front and Back of Modal Flashcard */
.modal-content .flashcard .front,
.modal-content .flashcard .back {
    background: none;
    position: absolute;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    border-radius: 5px; /* Optional: rounded corners */
}

/* Close Button in Modal */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Vocab Card (disable flip) */
.vocab-card {
    cursor: default;
    pointer-events: none; /* Disable clicks to prevent flip */
}

.vocab-card .front,
.vocab-card .back {
    transform: none !important; /* Ensure no flip effect */
}

/* Ensure vocabulary links are styled properly */
.vocab-link {
    position: relative;
    z-index: 10; /* Ensure links are on top */
    cursor: pointer;
    font-size: 18px; /* Adjust font size */
}

#constructionListContainer {
    width: 100%; /* Adjust the width as needed */
    max-height: 200px; /* Set the maximum height for the scrollable box */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds the height */
    border: 1px solid #ccc; /* Optional: Add a border around the box */
    padding: 10px; /* Optional: Add some padding for better spacing */
    margin-top: 20px; /* Optional: Space between the list and other content */
    background-color: #f9f9f9; /* Optional: Set a background color */
}

#constructionListContainer ul {
    list-style-type: none; /* Remove default list styling */
    padding-left: 0; /* Remove padding from the list */
}

#constructionListContainer li {
    margin: 5px 0; /* Add some space between list items */
}
