/* General Font Styling */
.sedgwick-ave-display-regular {
  font-family: "Sedgwick Ave Display", cursive;
  font-weight: 400;
  font-style: normal;
}

.irish-grover-regular {
  font-family: "Irish Grover", system-ui;
  font-weight: 400;
  font-style: normal;
}

.londrina-shadow-regular {
  font-family: "Londrina Shadow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.freckle-face-regular {
  font-family: "Freckle Face", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Body Styling */

body,html {
  background-color: black;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navbar Styling */
.navbar {
  background-color: black;
  font-family: "Londrina Shadow";
  width: 100%;
  font-weight: 800;
  font-size: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.navbar .logo {
  transform: translateX(-100%); /* Start off-screen to the right */
  transition: transform 0.5s ease-in-out; /* Smooth slide effect */
}


.navbar .logo img {
  width: 70px;
  border-radius: 15px;
  margin-left: 30px;
  display: flex;
  
}

.navbar .logo img:hover {
  box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.7);
  background: linear-gradient(45deg, red, blue);
  animation: flip 1.5s;
}

/* Navbar Links Styling */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-right: 30px;
  transform: translateX(100%); /* Start off-screen */
  transition: transform 0.5s ease-in-out; /* Slide effect */
}

/* When the page loads, use this class to trigger the transition */
.navbar.loaded ul {
  transform: translateX(0); /* Move the navbar elements into view */
}

.navbar.loaded .logo {
  transform: translateX(0); /* Move the logo into view */
}


.navbar ul li {
  display: inline;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
  float: left;
  display: block;
  text-align: center;
  padding: 14px 15px 10px 10px;
  border-radius: 30px;
}

/* Flip Animation on Hover */
@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}
.bounce {
  animation: bounce 2s infinite;
}


.navbar ul li a:hover {
  box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.7);
  background: linear-gradient(45deg, red, blue);
  animation: flip 1.5s ;
}

/* Header Section */
.header-container {
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px;
  overflow: hidden; /* Ensures elements don't overflow during animation */
}

/* Initial position of the background image */
.bg-image img {
  max-width: 500px;
  height: auto;
  border-radius: 150px;
  transition: transform 0.5s ease-in-out; /* Slide effect */
  animation: upAndDown 2s infinite ease-in-out; /* Apply the animation to keep it running indefinitely */
}

/* Up and Down Continuous Animation */
@keyframes upAndDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px); /* Move the image up */
  }
  100% {
    transform: translateY(0); /* Move the image back to the original position */
  }
}

/* Initial position of the heading */
h1 {
  font-family: "Freckle Face", sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin-left: 100px;
  max-width: 600px;
  transition: transform 0.5s ease-in-out; /* Slide effect */
}

h1 strong {
  display: block;
  background: linear-gradient(to right, red, blue); /* Blue to red gradient */
  -webkit-background-clip: text; /* For webkit browsers like Chrome */
  background-clip: text; /* Apply the gradient only to the text */
  color: transparent; /* Make the text color transparent to show the gradient */
  font-weight: bold;
  font-size: 100px;
}

/* Define the dance animation */
@keyframes dance {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(5px);
  }
  75% {
    transform: translateY(-5px);
  }
}

/* Apply the animation on hover */
h1 strong:hover {
  animation: dance 0.5s infinite;
}


.container{
 background-color: black;
  padding: 0 !important;  /* Remove padding if there is any */
  width: 100%;            /* Ensure it spans the full width of the screen */
  box-sizing: border-box; /* Ensure padding and borders are included in the width */
 
}

.row{
  margin: 0 !important; /* Remove row margin */
  padding: 0 !important; /* Remove row padding */
}

/* Remove margin and padding in columns */
.col-12 {
  padding: 0 !important; /* Remove padding inside columns */
  margin: 0 !important;  /* Remove margin inside columns */
}


.gif-container {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 !important; /* Remove padding inside columns */
  margin: 0 !important;  /* Remove margin inside columns */
  width: 100%; /* Ensures it takes up full width inside the container */
  box-sizing: border-box;
  }

.container h3{
  font-family: "Freckle Face";
  font-weight: 800;
  font-size: 90px;
  margin-bottom: 30px;
  display: block;
  background: linear-gradient(to right, red, blue); /* Blue to red gradient */
  -webkit-background-clip: text; /* For webkit browsers like Chrome */
  background-clip: text; /* Apply the gradient only to the text */
  color: transparent; /* Make the text color transparent to show the gradient */
  
}

.container h3:hover {
  animation: dance 0.5s infinite;
}

.gif-item {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
   margin: 0; /* Ensure no margin around the image */
  padding: 0; /* Ensure no padding inside the image */
  }

.gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  }

.gif-item:hover {
  animation: flip 1.2s;
  
  }

.gif-link {
  display: inline-block;
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gif-link img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gif-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Game Board Styles */
.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.wrapper p {
  font-family: "Freckle Face";
  font-size: 50px;
  font-weight: 800;
  background: linear-gradient(to right, red, blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrapper p:hover{
  animation: dance 0.5s infinite;
}

#des{
  font-family: "Freckle Face";
  font-size: 30px;
  font-weight: 800;
  color:white
}

.game-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Grid with 4 equal columns */
  gap: 5px; /* Space between cards */
  justify-items: center; /* Center items horizontally */
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background-image: url("https://cdn.glitch.global/a2ea5dd7-e315-4987-ace7-9d096603d787/checkeredbackground.jpg?v=1731748988372");
  background-size: cover;
  width: 100px;
  height: 100px;
  margin: 10px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card[title] {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.card:hover {
    opacity: 0.8; /* Just to show that it is being hovered */
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* Hide image initially */
  border-radius: 5px;
}

.card.flipped img {
  display: block; /* Show image when card is flipped */
}

.card.matched {
  background-color: #4CAF50;
  pointer-events: none;
}

/* Add this CSS to style the hover effect */
.card.hoverable:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
}


#reset-button {
  font-family: "Freckle Face", sans-serif;
  font-size: 25px;
  padding: 20px 30px ;
  background: linear-gradient(to right, red, blue);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#reset-button:hover {
  background-color: #ff4500;
  animation: flip 1.5s;
}

/* Hover Effects */
.card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


/* Puzzle board styles */
/* Puzzle container */
#puzzle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* Puzzle board styles */
.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ccc;
  padding: 1px;
  width: 300px;
  height: 300px;
}

/* Text styling */
#puz {
  padding: 30px 0px 20px;
  text-align: center;
  font-family: "Freckle Face";
  font-size: 50px;
  font-weight: 800;
  background: linear-gradient(to right, red, blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#puz:hover {
  animation: dance 0.5s infinite;
}

/* Puzzle piece styles */
.puzzle-piece {
  position: relative;
  cursor: move;
  background: #fff;
}

.puzzle-piece.dragging {
  opacity: 0.5;
}

.puzzle-piece img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Success message styling */
#puzzle-success-message {
  text-align: center;
  margin-top: 10px;
  font-family: "Freckle Face", sans-serif;
  color: #4CAF50;
}

/* New game button styling */
#new-game-button {
  font-family: "Freckle Face", sans-serif;
  font-size: 25px;
  padding: 20px 30px;
  background: linear-gradient(to right, red, blue);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#new-game-button:hover {
  background-color: #ff4500;
  animation: flip 1.5s;
}

/* Optional: Smooth transition for puzzle and button */
.puzzle-board, #new-game-button {
  transition: transform 0.3s ease;
}


/* Footer Section */
.footer {
  font-family: "Yatra One", "Oregano", system-ui;
  font-size: 20px;
  font-weight: 800;
  background-color: black;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer .contact-info {
  flex: 1;
  min-width: 250px;
}

.footer .newsletter {
  flex: 1;
  min-width: 250px;
}

.footer h3 {
  font-family: "Freckle Face",sans-serif;
  font-size: 50px;
  font-weight: 800;
  background: linear-gradient(to right, red, blue); /* Blue to red gradient */
  -webkit-background-clip: text; /* For webkit browsers like Chrome */
  background-clip: text; /* Apply the gradient only to the text */
  color: transparent; /* Make the text color transparent to show the gradient */
}

.footer h3:hover {
  animation: dance 0.5s infinite;
}

.footer .social-media {
  margin-top: 20px;
}

.footer .social-media a {
  color: white;
  font-size: 20px;
  margin: 0 10px;
  padding: 10px;
  border-radius: 50%; /* Makes the button circular */
  text-decoration: none; /* Removes underline */
  transition: background 0.3s, color 0.3s; /* Smooth transition */
}

.footer .social-media a:hover {
  color: white; /* Keeps the icon white */
  background: linear-gradient(45deg, red, blue); /* Red-to-blue gradient */
  animation: dance 0.5s infinite;
  
}


.newsletter form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter input[type="email"] {
  padding: 10px;
  width: 80%;
  max-width: 300px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  color: black;
}

.newsletter button {
  font-family: "Freckle Face",sans-serif;
  padding: 10px 20px;
  background: linear-gradient(to right, red, blue); /* Blue to red gradient */
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter button:hover {
  background-color: #ff4500;
  animation: flip 1.5s
}

/*Smaller Screens*/

@media (max-width: 768px) {
  .navbar {
    font-size: 24px;
    justify-content: center;
  }

  .navbar .logo img {
    width: 50px;
    margin-left: 15px;
  }

  .navbar ul {
    margin: 10px 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    gap: 5px;
  }

  .navbar ul li a {
    padding: 8px 12px;
    font-size: 20px;
  }
}

/* Header Section */
.header-container {
  padding: 30px 20px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 992px) {
  .bg-image img {
    max-width: 400px;
  }

  h1 {
    margin-left: 0;
    text-align: center;
    font-size: 30px;
  }

  h1 strong {
    font-size: 70px;
  }
}

@media (max-width: 768px) {
  .bg-image img {
    max-width: 300px;
  }

  h1 strong {
    font-size: 50px;
  }
}

/*Container and GIF Section */
.container {
  width: 100%;
  padding: 20px !important;
}

.container h3 {
  text-align: center;
  font-size: 60px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .container h3 {
    font-size: 40px;
  }
}

.gif-container {
  padding: 20px !important;
}

@media (max-width: 768px) {
  .gif-item {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .gif-item {
    width: 200px;
    height: 200px;
  }
}

/* Game Board Styles */
.wrapper {
  padding: 20px;
}

.wrapper p {
  font-size: 40px;
  text-align: center;
}

@media (max-width: 768px) {
  .wrapper p {
    font-size: 30px;
  }

  #des {
    font-size: 24px;
  }
}

/*.game-container {
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  max-width: 100%;
  padding: 10px;
}*/

@media (max-width: 768px) {
  .card {
    width: 80px;
    height: 80px;
    margin: 5px;
  }
}

@media (max-width: 480px) {
  .card {
    width: 60px;
    height: 60px;
  }
}

/* Puzzle Board Styles */
@media (max-width: 768px) {
  .puzzle-board {
    width: 250px;
    height: 250px;
  }

  #puz {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .puzzle-board {
    width: 200px;
    height: 200px;
  }

  #puz {
    font-size: 30px;
  }
}

/* Footer Section */
.footer {
  padding: 30px 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer h3 {
    font-size: 40px;
  }

  .contact-info,
  .newsletter {
    width: 100%;
  }

  .newsletter input[type="email"] {
    width: 100%;
  }

  .footer .social-media {
    margin-top: 15px;
  }

  .footer .social-media a {
    font-size: 18px;
    padding: 8px;
  }
}

/* Button Responsiveness */
@media (max-width: 768px) {
  #reset-button,
  #new-game-button,
  .newsletter button {
    font-size: 20px;
    padding: 15px 25px;
  }
}

/* Utility Classes */
.text-center-mobile {
  text-align: center;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  button,
  .navbar ul li a,
  .footer .social-media a,
  .card,
  .puzzle-piece {
    min-height: 44px;
    min-width: 44px;
  }
}






