/* Modern reset + base (keeping your Meyer reset spirit) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px base */
}

body {
  margin: 0;
  padding: 0;
  background-color: #aaa;
  line-height: 1.5;
  font-family: 'FreeSansRegular', Arial, Helvetica, sans-serif;
  color: #000;
}

a:link,
a:visited {
  color: #009;
  text-decoration: none;
}

a:hover {
  color: #f99;
}

/* Custom fonts – keep as-is */
@font-face {
  font-family: 'FreeSansRegular';
  src: url('freesans.eot');
  src: url('freesans.eot?#iefix') format('embedded-opentype'),
       url('freesans.woff2') format('woff2'),
       url('freesans.woff') format('woff'),
       url('freesans.ttf') format('truetype'),
       url('freesans.svg#FreeSansRegular') format('svg');
}

@font-face {
  font-family: 'MonotonRegular';
  src: url('fonts/MonotonRegular.eot');
  src: url('fonts/MonotonRegular.eot?#iefix') format('embedded-opentype'),
       url('fonts/MonotonRegular.woff2') format('woff2'),
       url('fonts/MonotonRegular.woff') format('woff'),
       url('fonts/MonotonRegular.ttf') format('truetype'),
       url('fonts/MonotonRegular.svg#MonotonRegular') format('svg');
}

/* ============================================= */
/* Layout & main containers                      */
/* ============================================= */

#website {
  max-width: 56em;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#window {
  background: url('background.jpg') repeat-y center top / auto 100%;
  flex: 1;
  padding: 1rem;
  position: relative;
}

/* Better centering & spacing */
h1 {
  font-family: MonotonRegular, cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-align: right;
  margin: 0.5rem 1rem;
  text-shadow: 4px 4px 6px #888;
}

.tagline {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  text-align: center;
  margin: 1rem;
  padding: 0.5rem;
  font-weight: bold;
}

h2 {
  font-family: FreeSansRegular, sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  margin: 1.5rem 0 1rem;
  padding: 0 1rem;
  text-shadow: 2px 2px 4px #888;
}

h3 {
  color: white;
  font-size: 1.4rem;
  margin: 1.5rem 1rem 0.5rem;
}

p {
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin: 1.2rem 1.5rem;
  line-height: 1.6;
}

#text {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Logo – responsive placement */
#logo {
  max-width: 15rem;
  width: 35vw;
  height: auto;
  display: block;
  margin: 1rem auto 0;
}

@media (min-width: 640px) {
  #logo {
    width: 15rem;
    float: right;
    margin: 1rem 1rem 1rem 2rem;
  }
}

/* Video wrapper – already good, just ensure fluid */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 1.5rem auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

/* Testimonials block */
#lessonsreviews {
  width: 90%;
  max-width: 50rem;
  margin: 2rem auto;
  padding: 1.5rem;
  font-style: italic;
  background: rgba(225, 220, 240, 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#lessonsreviews p {
  margin: 1.2rem 0;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
}

/* Bottom pane */
#bottompane {
  background: rgba(125, 155, 155, 0.85);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  margin-top: auto; /* pushes to bottom if flex column */
}

/* Notice – make it more responsive */
#notice {
  background: rgba(255, 200, 155, 0.8);
  border: 2px solid #000;
  border-radius: 50px 0 50px 0;
  color: #f33;
  font-family: Georgia, serif;
  padding: 1rem;
  margin: 1.5rem;
  max-width: 20rem;
}

#notice h2 {
  color: #f33;
  font-size: 1.3rem;
  margin: 0.8rem 0;
}

#notice p {
  color: #000;
  font-size: 1rem;
}

/* Small screens tweaks */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  #notice {
    max-width: none;
    margin: 1rem;
  }
}

/* Optional: hide h1 on very small if it was intentional, but better to keep visible */
@media (max-width: 360px) {
  h1 {
    /* visibility: hidden; */ /* comment out or remove unless really needed */
  }
}