/* General body styling for centering content and setting up the background */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  transition: background-color 0.5s ease;
}

/* Container for the main content */
#container {
  text-align: center;
}

/* Styling for the square element */
#square {
  width: 250px;
  height: 250px;
  background-color: lightgray;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.5s;
  margin-bottom: 20px;
  cursor: default;
}

/* Larger size for the square when the 'big' class is added */
#square.big {
  width: 375px;
  height: 375px;
}

/* Styling for the square when it's clickable */
#square.clickable {
  cursor: pointer;
}

/* Flex container for mode toggle buttons */
#mode-toggle-container {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Shared styles for dark and light mode toggle buttons */
#dark-mode-toggle,
#light-mode-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  color: #333;
  transition: transform 0.5s;
  position: fixed;
  bottom: 0;
  right: 0;
  display: none;
}

/* Hover effect for mode toggle buttons */
#dark-mode-toggle:hover,
#light-mode-toggle:hover {
  transform: scale(1.1);
}

/* Initial state for dark mode toggle, shown when light mode is active */
#dark-mode-toggle {
  display: inline-block;
}

/* Dark mode specific styles */
body.dark-mode {
  background-color: #2c3e50;
  color: #ecf0f1;
}

/* Light mode toggle button color in dark mode */
body.dark-mode #light-mode-toggle {
  color: #fff;
  display: inline-block;
}

/* Credit link styling */
#credit {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #000;
  transition: font-size 0.5s ease;
  font-family: 'Comic Sans MS', cursive;
}

/* Hover effect for credit link */
#credit:hover {
  font-size: 1.2em;
}

/* Dark mode styles for credit link */
body.dark-mode #credit a {
  color: #7DF9FF;
}

body.dark-mode #credit {
  color: #fff;
}

/* Hidden credit info tooltip */
#credit-info {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: visibility 0s, opacity 0.5s linear, transform 0.5s;
}

/* Show credit info tooltip on hover */
#credit:hover + #credit-info {
  visibility: visible;
  opacity: 1;
  transform: translateY(-10px);
}

/* Icon styling for credit link */
#credit i {
  margin-right: 5px;
}

/* Media query for mobile devices */
@media (max-width: 767px) {
  body > * {
    display: none;
  }
  
  body::before {
    content: "Please view this site on a device with a larger screen.";
    display: block;
    text-align: center;
    padding: 20px;
    font-size: 20px;
  }
}

/* Countdown timer styling */
#countdown {
  font-size: 36px;
  color: #fff;
  background-color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
  font-family: 'Comic Sans MS', cursive;
  user-select: none; /* not sure why his is broken in firefox but whatever*/
}

body.dark-mode #countdown {
  font-weight: bold;
  color: #333333;
  background-color: #d3d3d3;
}
