/*-------------------------------------------------------*\
* Title: Style-Sheet
* Author: Tom Maus (2021)
\*-------------------------------------------------------*/

body {
  background-color: #e8f5e9;
}

h1,
.bottom-line {
  font-family: "Arial", sans-serif;
  text-align: center;
  color: #4caf50;
}

h1 {
  font-size: 50px;
  margin-top: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bottom-line {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
  padding-bottom: 10px;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
}

/* --------------------------------------------*/
/*  Flashcards
/* --------------------------------------------*/

.flashcard {
  display: inline-block;
  width: 200px;
  height: 200px;
  margin: 10px;
  /* border: 1px solid black; */
  perspective: 1000px;
  cursor: pointer;
}

.flashcard .card {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.front:hover {
  transform: scale(1.075);
  transition: transform 0.3s ease; /* Add a smooth transition */
  transform-origin: center center; /* Set the transform-origin to the center bottom */
  backface-visibility: hidden; /* Add this line to prevent blurriness */

}

#flashcard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* or 'center' if you want the cards centered */
  gap: 10px; /* Ensures consistent spacing */
  overflow: auto; /* Helps avoid margin collapse */
}

.flashcard .card .front,
.flashcard .card .back {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8f5e9;
  border-radius: 10px;
  backface-visibility: hidden;
}

.flashcard .card .back {
  transform: rotateY(180deg);
  /* font-size: 25px; */
  font-size: 1.5em; 
  background: linear-gradient(135deg, #e8f5e9 0%, #cbebd7 100%);
  background-color: #ffffff;
  font-family: "Pacifico"; /* A cool cursive font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Adds a stylish text shadow */
  color: #333; /* A subtle dark text color */
  text-align: center;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  padding-left: 15px;
  padding-right: 5px;
  overflow: auto; /* Add scrollbars when content exceeds the max height */
}

.flashcard .card .front img,
.flashcard .card .back img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px; /* This property creates rounded corners */
}

/* --------------------------------------------*/
/*  Buttons
/* --------------------------------------------*/

.button-container,
.upload-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.button-container {
  margin-bottom: 20px;
}

.modern-button,
.input-field {
  padding: 10px;
  border-radius: 4px;
  margin: 4px 2px;
}

.modern-button {
  background-color: #4caf50; /* Green */
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: "Arial", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modern-button:hover {
  background-color: #45a049;
}

.input-field {
  border: 1px solid #ccc;
}

.add-flashcard-form {
  display: none; /* Hide the form by default */
  flex-direction: column;
}

/* Style for the plus sign icon on the front side */
.enlarge-button-front {
  position: absolute;
  bottom: 10px; /* Adjust the distance from the bottom as needed */
  right: 10px; /* Adjust the distance from the right as needed */
  background-color: #fff;
  color: #000;
  font-size: 20px;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1; /* Ensure it's above the image */
  /* Add other front-specific styles here */
}

/* Add styles for the back side if needed */
.flashcard[data-flipped="true"] .enlarge-button-front {
  display: none; /* Hide the "enlarge" button on the back side */
}


/* Style for the enlarged image modal */
.enlarged-image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.enlarged-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  cursor: pointer; /* Add a cursor pointer to indicate it's clickable */
}

/* Style for the close button in the enlarged image modal */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

#delete-cards-button, #upload-button {
  background-color: #91afb0;
}

#new-game-button {
  background-color: #ffbe76;
}

/* --------------------------------------------*/
/*  Counter
/* --------------------------------------------*/

.counter-container {
  font-family: 'Arial', sans-serif; /* Font that matches your buttons */
  padding: 5px; /* Padding around the counters inside the container */
} 

/* Individual counter styling */
.counter-container div {
  color: #333; /* Dark text for readability */
  font-size: 15px; /* Font size relative to the surrounding text */
  font-weight: bold; /* Make the font bold */
  margin: 5px 0; /* Margin around individual counters for spacing */
}

/* The counters' values */
.counter-container span {
  color: #28a745; /* Green color to match your buttons */
  margin-left: 5px; /* Small spacing between label and number */
}

/* --------------------------------------------*/
/*  Sprinkles
/* --------------------------------------------*/

/* Sprinkles container */
.sprinkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  z-index: 9999;
}

/* Individual sprinkle */
.sprinkle {
  position: absolute;
  top: -10px;
  width: 10px; /* Increased size */
  height: 10px; /* Increased size */
  background-color: gold;
  opacity: 0.8; /* More opaque */
  border-radius: 50%;
  box-shadow: 0 0 10px yellow; /* Add a glow effect */
  animation: fall 2s linear infinite;
}

/* Sprinkle falling animation */
@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

/*-------------------------Notes----------------------------------------------*\

\*----------------------------------------------------------------------------*/
