/* GENERAL STYLES */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #222;
}

/* HEADER */
header {
  background: #1a73e8;
  color: white;
  padding: 20px;
  text-align: center;
}

/* NAVIGATION */
nav {
  background: #0f5ec4;
  padding: 12px;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}

nav a:hover {
  text-decoration: underline;
}

/* MAIN SECTIONS */
section {
  padding: 30px;
  background: white;
  margin: 20px auto;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
  color: #1a73e8;
  margin-bottom: 10px;
}

/* ACCORDION */
.accordion {
  margin-top: 20px;
}

.accordion-item {
  background: #e7e7e7;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 10px;
  background: #ffffff;
  margin-top: 5px;
  border-radius: 5px;
}

/* IMAGES */
img.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

/* RESPONSIVE TABLES (NO SCROLLBARS) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  table-layout: fixed;      /* keeps table responsive */
  word-wrap: break-word;    /* wraps long text */
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: #1a73e8;
  color: white;
}

/* BUTTONS */
.fun-button {
  background: #1a73e8;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, background 0.3s;
  margin: 10px 0;
}

.fun-button:hover {
  transform: scale(1.1);
  background: #0f5ec4;
}

/* RESPONSIVE YOUTUBE VIDEO */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 20px 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* TOOLTIP (DESKTOP + MOBILE) */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 180px;
  bottom: 125%;
  left: 50%;
  margin-left: -90px;
  background-color: #1a73e8;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  transition: opacity 0.3s;
  z-index: 10;
}

/* Desktop hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Mobile tap */
.tooltip:active .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* CONFETTI CANVAS */
#confetti-canvas {
  position: fixed;
  pointer-events: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* 404 PAGE */
.error-404 {
  padding: 80px 20px;
  text-align: center;
}

.error-404 h1 {
  font-size: 80px;
  color: #1a73e8;
  margin-bottom: 20px;
}

.error-404 h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.error-404 p {
  font-size: 18px;
  margin-bottom: 30px;
}

.home-button {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

.home-button:hover {
  background: #155ab6;
}

/* -------------------------------------------- */
/* RESPONSIVE BREAKPOINTS */
/* -------------------------------------------- */

/* Tablets */
@media (max-width: 900px) {
  section {
    margin: 15px;
    padding: 20px;
  }

  nav a {
    margin: 8px;
  }

  .error-404 h1 {
    font-size: 60px;
  }
}

/* Phones */
@media (max-width: 600px) {

  nav a {
    display: block;
    margin: 10px 0;
  }

  section {
    margin: 10px;
    padding: 15px;
  }

  h2 {
    font-size: 22px;
  }

  .fun-button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
  }

  .error-404 h1 {
    font-size: 48px;
  }

  .error-404 h2 {
    font-size: 22px;
  }

  .error-404 p {
    font-size: 16px;
  }
}

