@import url('https://fonts.googleapis.com/css2?family=Average+Sans&family=Poppins:wght@300&family=Stick&display=swap');

:root {
    --mainfont: "Poppins", sans-serif;
    --secondfont: "Stick", sans-serif;
    --commandColour: #ff6600;
    --textColour: black;
    --background: #ffebd9;
    --headerbackground: #7e542a;
    --brownhover: #6b4723; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    font-family: var(--mainfont);
    font-size: 25px;
    font-weight: 400;
    background: var(--background);
    color: var(--textColour);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}


nav.main {
    max-width: 100%;
    width: auto;
    
}

nav.main ul { 
    max-width: 100%;
    width: auto;
    background-color: var(--headerbackground);
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    box-sizing: border-box;
    padding: 0.2rem;
}

nav.main ul li a {
  display: block;
  font-family: var(--secondfont);
  color: white;
  padding: 14px 50px;
  text-decoration: none;
}

nav.main ul li a:hover {
  background-color: var(--brownhover);
}

/* Dropdown Button */
nav.main .dropbtn {
  background-color: var(--headerbackground);
  color: white;
  font-family: var(--secondfont);
  padding: 20px;
  font-size: 24px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */

nav.main .dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */

nav.main .dropdown-content {
  display: none;
  position: absolute;
  text-wrap: nowrap;
  background-color: var(--brownhover);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */

nav.main .dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Show the dropdown menu on hover */

nav.main .dropdown:hover .dropdown-content {
  display: block;
}

h1 {
  margin: 0;
}

h1 a, h1 img {
  display: block;
  
}

div.info-and-social {
  display: flex;
  font-size: 20px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 23rem;
  background-color: #ff6600;
}

div.info-and-social p {
  margin: 0;
  padding: 0;
}

div.info-and-social a {
  color: white;
}

div.contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}


header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  background: var(--headerbackground);
}


h2 {
  font-family: var(--secondfont);
  font-size: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%; 
}


/* needs a hero banner with text overlaid*/

div.hero-image {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: auto;
}


.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-image {
  min-height: 1200px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    url("../DoBuImages/HeroBanner2000x1000.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}


h3 {
    font-family: var(--secondfont);
  font-size: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%; 

}

a {
  color: var(--commandColour);

}

.facilities-heading {
  margin: 2rem auto 1rem;
  padding: 0 1rem;
  text-align: center;
}

.facilities-heading h3 {
  margin: 0 0 5rem;
}

/* dojo section */

.row-dojo {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.row-dojo figure {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.row-dojo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.text-dojo {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.text-dojo h4 {
  margin: 0 0 0.75rem;
}

.text-dojo p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* gym section */

.row-gym {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.row-gym figure {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.row-gym img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.text-gym {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.text-gym h4 {
  margin: 0 0 0.75rem;
}

.text-gym p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* sauna section */

.row-sauna {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.row-sauna figure {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.row-sauna img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.text-sauna {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.text-sauna h4 {
  margin: 0 0 0.75rem;
}

.text-sauna p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

/*google maps*/

.location {
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 2rem auto;
}

.location h3 {
  text-align: center;
}

.map-container {
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 2rem;
  width: auto;
  max-width: 100%;
  background: var(--headerbackground);

}

.footermenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.footer.heading {
  flex: 0 0 100%;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex: 0, 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.footer-copyright {
  flex: 0 0 100%;
  text-align: center;
}

.footer.heading p {
  margin: 0;
}

.footer-contact p {
  margin: 1;
}

.footer-copyright p {
  margin: 0;
}

footer a {
  color: white;
}


/* Timetable page */


.timetable {
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin: 0 auto 2rem;
  overflow-x: auto;
}

.timetable-table {
  width: 100%;
  min-width: 850px;
  table-layout: fixed;
  background: var(--background);
  font-size: 20px;
}


.timetable-table th,
.timetable-table td {
  padding: 1rem;
  border: 2px solid #000000;
  text-align: center;
}

.timetable-table thead th{
  background: var(--headerbackground);
  color: white;
}

.timetable-table tbody th {
  background: var(--headerbackground);
  color:white;
}

/* Prices page */


.prices-heading h3 {
  display: block;
  margin: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 50px;
}

.memberships-table {
  width: calc(100% - 2rem);
  max-width: 1000px;
  margin: 0 auto 2rem;
  overflow-x: auto;
}

.memberships {
  width: 100%;
  min-width: 650px;
  table-layout: fixed;
  background: var(--background);
  font-size: 20px;
}

.memberships caption {
  padding: 0.6rem;
  border: 2px solid #000;
  border-bottom: 0;
  background: var(--headerbackground);
  color: white;
  font-weight: bold;
  text-align: center;
}

.memberships th,
.memberships td {
  padding: 1rem;
  border: 2px solid Black;
}

.memberships tbody th {
  width: 70%;
  background: var(--background);
  color: black;
  text-align: left;
}

.memberships td {
  background: var(--background);
  text-align: center;
}

/* Martial Arts page */

.about-martial-arts {
  width: 100%;
  padding: 1rem 0 2rem;
  box-sizing: border-box;
}

.martial-arts-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.martial-arts-section h2 {
  margin: 0 auto 1.5rem;
  padding: 4rem 0rem 1rem;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  color: black;
  font-size: 50px;
  text-align: center;
}

.martial-arts-section h3 {
  font-size: 30px;
}

.martial-arts-section p {
  margin: 0 auto 1.5rem;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  color: black;
  font-size: 20px;
  text-align: center;
}

.martial-arts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem 2rem;
}

.martial-arts div {
  flex: 1 1 400px;
}

.kids-jiu-jitsu {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
}

.jiu-jitsu-middle-section {
  width: 100%;
  max-width: 500px;
}

/* Instructors page */

.instructors {
  width: 100%;
  padding: 1rem 0 2rem;
  box-sizing: border-box;
}

.instructors h2 {
  margin: 0 auto 2rem;
  font-size: 50px;
  text-align: center;
}

.instructors-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.row-instructors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}


.instructor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-details {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  gap: 1rem;
}

.instructor-details h3 {
  margin: 0;
  padding: 0.5rem;
  color: black;
  font-size: 30px;
  text-align: center;
}

.instructor-description {
  flex: 1 1 0;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  font-size: 0.8rem;
  text-align: center;
}

/* Log In page */

.login-main {
  width: 100%;
  padding: 2rem 0 23rem;
  box-sizing: border-box;
}

.login-heading {
  margin: 0 1rem 2rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 500px;
  margin: 0 auto;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-field label {
  flex: 0 0 5rem;
  text-align: right;
}

.login-field input {
  height: 2rem;
  padding: 0.4rem 0.6rem;
  box-sizing: border-box;
  border: 0;
  background: white;
  font-size: 1rem;
  font: var(--secondfont);
}

.login-button {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0 1rem;
  background: var(--commandColour);
  color: white;
  font: var(--secondfont);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.login-confirm {
  margin: 0 auto 25rem;
  font-size: 1rem;
  text-align: center;
}
