@import url('https://fonts.googleapis.com/css2?family=Story+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+NSW+ACT+Cursive:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');
body, header, nav, main, div, footer, img, h1, section{
  margin: 0;
  padding: 0;
  border: 0;
}
*{
  box-sizing: border-box;
}
.skip {
  position: absolute;
  top: -40px;
  left: auto;
  background-color: #4c6650; /* dark sage */
  color: #fdfdfd;
  padding: 10px 15px;
  z-index: 1000;
  text-decoration: none;
}

/* Show link when focused */
.skip:focus {
  top: auto;
  left:auto;
  right:1px;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body{
  font-family: "Story Script", sans-serif;
  background-color: #efeae4;
  color: #333;
}
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nav-bar{
  top: 0;
  left: 0;
  position: relative;
  width:100%;
  background-color: #395a4b;
  display:flex;
  align-items:center;
  padding:0.75rem 3rem;
  justify-content: space-between;
  z-index: 10;
}
.logo {
  font-family: "Edu NSW ACT Cursive", cursive;
  font-size: 1.5em;
  color: #fdfdfd;
  display: flex;
  justify-content: center;
  align-items: center;
}



/* Hamburger icon */
.menu-icon {
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  display: block;
}
.nav-links {
  display: none;
  flex-direction: column;
  background-color: #395a4b;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  text-align: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.75rem;
  display: block;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #dbc8a1;
}
.nav-links.open {
  display: flex;
}

.hero {
  height: 80vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/images/pile.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  background-color: rgba(33, 68, 63, 0.5);
  color: #ffffff;
  padding: 40px 20px;
  border-radius: 8px;
}

.hero h1 {
  font-family: "Marck Script", cursive;
  font-size: 3.8em;
  margin-bottom: 15px;
  color:#ddddff;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color:#ddddff;
}
button{
  background-color: #58997a;
  color: #4c4030;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 5px;
  transition: background0.3s;
}
button:hover{
  background-color: #c1ead6;
}


.intro{
  max-width: 800px;
  margin: 80px auto;
  text-align: center;
  padding: 20px;
}
.intro h2 {
  font-family: "Story Script", sans-serif;
  font-size: 2em;
  color: #475167;
  margin-bottom: 15px;
}

.intro p {
  font-size: 1.5em;
  line-height: 1.7;
  color: #577662;
}
.btnn {
  display: block;
  padding: 10px 20px;
  background: #58997a;
  color: #fff;
  text-decoration: none;
  border: 1px solid #ccc;
  margin-bottom: 5px; /* Add some space between buttons */
  border-radius: 4px;
}

ul {
  list-style: none; /* Remove default bullet points */
  padding: 0;
}

footer {
  text-align: center;
  padding: 20px 0;
  background-color: #b2dbc9;
  color: #093478;
  font-size: 0.9em;
  margin-top: 80px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s, filter 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  margin: 100px auto;
  max-width: 1500px;
  background-color: #efeae4;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}
.contact-form {
  flex: 1 1 300px;
  padding: 40px 50px; 
  background-color: #fffdf8;
}

.contact-form h2 {
  font-family: "Story Script", sans-serif;
  font-size: 1.8em;
  color: #e5cee0;
  margin-bottom: 25px;
  line-height: 1.4;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  color: #473f50;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Shadows Into Light", cursive;
  font-size: 0.95em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #dad8ea;
  outline: none;
  box-shadow: 0 0 4px rgba(82, 211, 164, 0.3);
}

.contact-form .button {
  margin-top: 20px;
  background-color: #395a4b;
  border: none;
  cursor: pointer;
}

.contact-form .button {
  background-color: #aaccbb;
}

.con-img {
  flex: 1 1 400px;
  background-color: #efeae4;
}

.con-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.radio-item{
    display:flex;
    align-items:center;
    gap:0.5rem;
    margin:0.4rem 0;
}
fieldset{
    padding:0.75rem 1rem;
    border-radius:6px
}

#about {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 10px;
  text-align: left;
  line-height: 1.8;
  color: #81ac9f;
}
#about h2 {
  font-family: "Marck Script", cursive;
  font-size: 2.2em;
  color: #395a4b; 
  margin-bottom: 20px;
  text-align: center;
}

#about p {
  font-family: "Shadows Into Light", cursive;
  font-size: 1.5em;
  color: #4e687c;
  margin-bottom: 20px;
}
#about img{
  float:right;
  height: 300px;
  border-radius: 10px;
}
/* ---------- VIDEO SECTION LAYOUT ---------- */
.videos {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.videos h1, .videos h2 {
  margin-bottom: 25px;
  color: #4a5f4b;  
}

/* Use a grid to align videos + buttons cleanly */
.videos-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 40px 25px; /* vertical + horizontal spacing */
  align-items: center;
}

/* Make iframes responsive */
.videos-grid iframe {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

.videos-grid a button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #89a77d; 
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.15);
}

.videos-grid a button:hover {
  background-color: #b7c9a8;
  transform: translateY(-2px);
}

.videos-grid > div {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* When JS adds class "show" */
.videos-grid > div.show {
  opacity: 1;
  transform: translateY(0);
}
.cube-gallery {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
}

.cube-container {
  width: 300px;
  height: 300px;
  position: relative;
  margin: 100px auto;       /* centers vertically and horizontally */
  perspective: 1200px;      /* stronger perspective so top/bottom faces are visible */
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(20deg); /* start with slight X tilt so top/bottom shows */
  transition: transform 1s;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  backface-visibility: hidden;  /* ensures back face doesn’t show incorrectly */
}


.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Position each face */
.front  { transform: rotateY(0deg) translateZ(150px); }
.back   { transform: rotateY(180deg) translateZ(150px); }
.right  { transform: rotateY(90deg) translateZ(150px); }
.left   { transform: rotateY(-90deg) translateZ(150px); }
.top    { transform: rotateX(90deg) translateZ(150px); }
.bottom { transform: rotateX(-90deg) translateZ(150px); }


/* Controls */
.controls {
  margin-top: 20px;
}

.controls button {
  background-color: #AFC6A3; 
  color: #2F3D2B;
  border: none;
  padding: 10px 15px;
  margin: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  transition: 0.3s ease;
}

.controls button:hover {
  background-color: #6F8F72;
  color: white;
}
.controls.keyboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.middle-row {
  display: flex;
  width: 200px; /* total width for left/spacer/right */
  justify-content: space-between;
  align-items: center;
}

.spacer {
  width: 60px; /* same as button width to center it */
}

.controls.keyboard button {
  width: 60px;
  height: 60px;
  font-size: 1.5em;
  background-color: #AFC6A3; 
  color: #2F3D2B;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.controls.keyboard button:hover {
  background-color: #6F8F72;
  color: white;
}


@media (min-width: 768px) {

  button, .button {
    padding: 10px 20px;
  }

  .menu-icon {
    display: none;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 2rem;
    background: none;
    align-items: center;
    width: auto;
  }

  .nav-links a {
    display: inline-block;
    padding: 0;
    font-size: 1rem;
  }

}
@media (max-width: 768px) {
  .logo {
    font-size: 1.2em;
  }
  .logo span.yarn {
    display: none;
  }
  .contact-form, .con-img {
    flex: 1 1 100%;
  }
      .contact {
    flex-direction: column;
  }
  .videos-grid {
    grid-template-columns: auto;
  }
  .cube-container {
    width: 200px;  /* smaller width */
    height: 200px; /* smaller height */
  }

  .controls.keyboard button {
    width: 45px;
    height: 45px;
    font-size: 1.2em;
  }

  .middle-row {
    width: 150px; /* adjust row width for smaller buttons */
  }

  .spacer {
    width: 45px; /* match button width */
  }
  .front  { transform: rotateY(0deg) translateZ(100px); }
  .back   { transform: rotateY(180deg) translateZ(100px); }
  .right  { transform: rotateY(90deg) translateZ(100px); }
  .left   { transform: rotateY(-90deg) translateZ(100px); }
  .top    { transform: rotateX(90deg) translateZ(100px); }
  .bottom { transform: rotateX(-90deg) translateZ(100px); }
  
  .radio-item{
      flex-direction:row;
  }
  #about img{
      float:none;
      display: block;
  }
}
@media (max-width: 500px) {
    .hero {
    background-image: none; /* remove the image */
    height: auto;           
    padding: 40px 20px;     
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #4c6650; 

  }

  .hero-overlay {
    background-color: transparent; 
    padding: 0;
  }
  

  .hero h1 {
    font-size: 1.8em; /* adjust font size for mobile */
  }

  .hero p {
    font-size: 1em;
  }

  .hero button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}

