.welcome-text {
  margin-top: 20px;
  font-size: 44px;
  /* Adjust the value to make the welcome text larger */
  font-weight: bold;
  color: darkblue;
  text-align: center;
} /* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Basic styling */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-image:url(backround.png); 
  color: black; /* Dark text color */
  font-size: 16px;
}

.container {
  width: 90%;
  margin: 0 auto;
  max-width: 1200px;
}

/* Header styling */
header {
  color: #1a2fa2;
  padding: 20px 0;
  text-align: center;
  font-size: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

/* Welcome text styling */
.welcome-text {
  margin-top: 20px;
  font-size: 50px;
  font-weight: bold;
}

/* Search bar styling */
.search-bar {
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.search-bar input {
  padding: 10px;
  border: 2px solid #3f51b5; /* Indigo */
  border-right: none;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  width: 40%;
  max-width: 400px;
  outline: none;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-bar input:focus {
  border-color: #303f9f; /* Darker Indigo */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-bar button {
  padding: 10px 15px; /* Reduced padding */
  cursor: pointer;
  background: #3f51b5; /* Indigo */
  color: #fff;
  border: 2px solid #3f51b5; /* Indigo */
  border-radius: 0 20px 20px 0;
  border-left: none;
  font-size: 14px;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  background-color: #303f9f; /* Darker Indigo on Hover */
}

.search-bar button:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-bar button i {
  font-size: 16px; /* Adjusted the size of the icon */
}

/* Flex container styling */
.flex-container {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* Flex item styling */
.flex-item {
  margin: 15px;
  width: 200px; /* Fixed width for square shape */
  height: 200px; /* Fixed height for square shape */
  background-color: #fff;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 10px solid black; /* Add black border */

}

.flex-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Lighter shadow on hover */
}

.flex-item span {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.2s linear;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

.flex-item:hover span {
  visibility: visible;
  opacity: 1;
}

/* Footer styling */
footer {
  background-color: #303f9f; /* Darker Indigo */
  color: #fff;
  padding: 15px 0;
  text-align: center;
}

/* Tip and bubble styling */
.tip-container {
  position: fixed;
  bottom: 60px; /* Adjust to position above the credits */
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.tip {
  max-width: 500px;
  margin: 0 auto;
  background-color: #eee7e7;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.tip-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.tip-img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.bubble {
  max-width: 500px;
  margin: 10px auto;
  padding: 10px;
  background: linear-gradient(45deg, #4d4dff, lightblue, #4d4dff);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.gradient-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  color: white;
  background: linear-gradient(90deg, cyan, blue, cyan);
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gradient-button:hover {
  background: linear-gradient(90deg, blue, cyan, blue);
}
.topnav {
  background-color: #333;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.topnav .navbar {
  display: flex;
}

.topnav .navbar a {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav .sub-header {
  color: #f2f2f2;
  font-size: 13px;
  margin-top: 10px;
}

.topnav .navbar a:hover {
  background-color: #ddd;
  color: black;
}

.topnav .navbar a.active {
  background-color: #04AA6D;
  color: white;
}
.random-game {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 12px 24px; /* Increased padding for a larger button */
  background: linear-gradient(135deg, #6e8efb, #a777e3); /* Gradient background */
  color: #fff; /* White text */
  text-transform: uppercase; /* Uppercase text */
  font-weight: bold; /* Bold text */
  font-family: 'Roboto', sans-serif; /* Font family */
  font-size: 12px; /* Increased font size */
  cursor: pointer; /* Pointer cursor */
  border: none; /* No border */
  border-radius: 25px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background 0.3s, transform 0.2s; /* Smooth transitions */
}

.random-game:hover {
  background: linear-gradient(135deg, #a777e3, #6e8efb); /* Change gradient on hover */
  transform: translateY(-2px); /* Slight lift on hover */
}
