/* style.css */

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive, sans-serif;
  background: #FFB6C1;
  overflow: hidden;
  position: relative;
  color: #453;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* Bubble animation container */
.bubble {
  position: absolute;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 10s infinite ease-in;
}

/* Keyframes for bubble rising */
@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

/* Add multiple bubbles */
.bubble:nth-of-type(1) { left: 10%; width: 40px; height: 40px; animation-delay: 0s; }
.bubble:nth-of-type(2) { left: 30%; width: 25px; height: 25px; animation-delay: 2s; }
.bubble:nth-of-type(3) { left: 50%; width: 50px; height: 50px; animation-delay: 4s; }
.bubble:nth-of-type(4) { left: 70%; width: 30px; height: 30px; animation-delay: 1s; }
.bubble:nth-of-type(5) { left: 90%; width: 60px; height: 60px; animation-delay: 3s; }

/* Colour-Theme */
body.Colour-Theme {
  background: #c7c700;
  color: #eee;
}

body.Colour-Theme .container {
  background: rgba(30, 30, 30, 0.85);
}

body.Colour-Theme header,
body.Colour-Theme footer,
body.Colour-Theme nav {
  background-color: #333;
  color: #eee;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 5rem auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Heading */
h1 {
  color: #4c6ef5;
  margin-bottom: 1.5rem;
}

/* Navigation Links */
nav a {
  display: inline-block;
  margin: 1rem;
  padding: 1rem 2rem;
  background-color: #4c6ef5;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #3955c1;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
}

.toggle-label {
  margin-left: 10px;
  font-weight: bold;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
