.ttt {
  /* Styles for the Tic Tac Toe container */
  width: 320px; /* Set a fixed width for the container */
  height: 320px; /* Set a fixed height for the container */
  margin: 0 auto;
  padding: 20px;
  background-color: #cccccc;
  border-radius: 5px;
  box-shadow: 0 0 200px rgba(0, 0, 0, 0.474);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.keypad {
  /* Styles for the keypad grid */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
}

button {
  /* Styles for the buttons */
  width: 100%;
  height: 100%;
  font-size: 24px; /* Increased font size */
  background-color: #f2f2f2;
  border: 1px solid black;
  box-sizing: border-box; /* Ensure borders don't affect layout */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  /* Styles for the buttons on hover */
  background-color: #bababa;
}

/* Theme buttons styles */
#theme {
  display: inline-block;
  margin: 10px;
  position: relative;
  z-index: 20; /* Ensure it is above the animated background */
}

#themeSelector {
  padding: 10px;
  font-size: 14px;
  background-color: #ffffff; /* White background for the dropdown */
  border: 2px solid black;
  border-radius: 40px;
  width: 130px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
  appearance: none; /* Remove default dropdown styling (optional) */
}

#themeSelector:hover {
  background-color: #bababa; /* Light gray on hover */
}

#themeSelector:focus {
  outline: none; /* Remove the outline on focus */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add a subtle shadow on focus */
}

/* Ensure dropdown is above other elements */
#theme {
  position: relative;
  z-index: 20;
}


/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  z-index: 20;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 2px solid black;
  border-radius: 8px;
  width: 30%; /* Could be more or less, depending on screen size */
  height: 100px;
  text-align: center;
  position: relative; /* For positioning the button */
}

.play-again-button {
  background-color: #28a745; /* Green color */
  color: white;
  border: 2px solid #000; /* Black border */
  border-radius: 40px; /* Rounded corners */
  padding: 6px 12px; /* Adjust padding for normal size */
  font-size: 12px; /* Adjust font size */
  cursor: pointer;
  position: absolute; /* Positioning the button at the bottom */
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%); /* Center the button horizontally */
  width: 130px;
  height: 40px;
}

.play-again-button:hover {
  background-color: #218838; /* Darker green on hover */
}

.play-again-button:focus {
  outline: none; /* Remove focus outline */
}

#toMM {
  background-color: #f2f2f2;
  border: 2px solid #000; /* Black border */
  border-radius: 40px; /* Rounded corners */
  padding: 6px 12px; /* Adjust padding for normal size */
  font-size: 12px; /* Adjust font size */
  cursor: pointer;
  position: absolute; /* Positioning the button at the bottom */
  bottom: 10px;
  left: 95%;
  transform: translateX(-50%); /* Center the button horizontally */
  width: 130px;
  height: 40px;
  z-index: 10;
}

#toMM:hover {
  background-color: #ee0606;
}

a > #toMM {
  text-decoration: none;
  color: #000;
}

html {
  background-color:cadetblue;
}

/* Animated bg */
@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

*{
  margin: 0px;
  padding: 0px;
}

body{
  font-family: 'Exo', sans-serif;
}


.context {
  width: 100%;
  position: absolute;
  top:50vh;
  
}

.context h1{
  text-align: center;
  color: #fff;
  font-size: 50px;
}


.area{
  background: #4e54c8;  
  background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
  width: 100%;
  height:100vh;
  
 
}

.circles{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li{
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 25s linear infinite;
  bottom: -150px;
  
}

.circles li:nth-child(1){
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}


.circles li:nth-child(2){
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3){
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4){
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5){
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6){
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7){
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8){
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9){
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10){
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}



@keyframes animate {

  0%{
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 0;
  }

  100%{
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
      border-radius: 50%;
  }

}

.area {
  background: #4e54c8;  
  background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
  width: 100%;
  height:100vh;
  position: absolute; /* Ensure it covers the whole viewport */
  top: 0;
  left: 0;
  z-index: 0; /* Keep it behind the content */
}

html, body {
  margin: 0;
  padding: 0;
  background-color: transparent; /* Ensure no unwanted background color */
  overflow: hidden; /* Prevents any overflow that might cause bars */
}

#turnIndicator {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid black;
  border-radius: 5px;
  background-color: #f0f0f0;
  color: black;
  text-align: center;
  width: 150px;
}

#resetButton {
  background-color: #f2f2f2;
  border: 2px solid #000; /* Black border */
  border-radius: 40px; /* Rounded corners */
  padding: 6px 12px; /* Adjust padding for normal size */
  font-size: 12px; /* Adjust font size */
  cursor: pointer;
  position: absolute; /* Positioning the button at the bottom */
  bottom: 10px;
  left: 5%;
  transform: translateX(-50%); /* Center the button horizontally */
  width: 130px;
  height: 40px;
  z-index: 10;
}

#resetButton:hover {
  background-color: #ee0606;
}
