:root {
  --primary-color: #fce138;
  --secondary-color: #024e76;
  --tertiary-color: #39a6b2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #39a6b2;
  /*font-family: Helvetica, Arial, sans-serif;*/
  font-family: Georgia, 'Times New Roman', Times, serif;
  
}

.about {
  display: flex;
}

.h2-main {
    font-size: 3em;
    line-height: 1;
    text-align: right;
    padding-left: 70px;
    padding-right: 40px;
    padding-bottom: 30px;
    border-right: 3px solid black;
}

.right-side {
  /* border-left: 3px solid black; */
  padding-left: 30px;
  padding-bottom: 30px;
}

.main {
  /* background-color: gray; */
  /* css variables for padding here */
  padding: 20px;
}

.work {
  display: flex;
  flex-direction:row;
  /* height:300px; */
}

.h2-work{
    font-size: 3em;
    line-height: 1;
    text-align: right;
    padding-top: 30px;
    padding-left: 70px;
    padding-right: 50px;
    padding-bottom: 30px;
    border-right: 3px solid black;
}


.grid-container{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6,50px);
  column-gap: 10px;
  row-gap: 10px;
  padding-top: 1%;
  padding-left: 10%;
  padding-right: 15%;
  padding-bottom: 1%;
}
.grid-item{
grid-column: span 4;
grid-row: span 4;
border: 3px solid black;
}
.first-item{
  grid-column: span 8;
  grid-row: span 8;
}

.grid-item img{
  transition: transform .2s;
  opacity: .7;
}
.grid-item img:hover{
  
  opacity: 1;
}

.work img {
  width: 100%;
  height: 100%;
}


.contact-mg {
  flex: 1 1 auto;
}


.contact-container{
  padding-left: 10%;
  padding-right: 15%;
  padding-bottom: 15%;
}

.text-style{
text-decoration: none;
color:black;

}

.contact-links {

  flex: 0 0 auto;
  border-bottom: 2px solid black;
  margin: 0 10px;
  border-collapse: separate;
  border-spacing: 1px;
}
.contact-list {
  display: flex;
  flex-direction: row;  
  width: 70%;
  padding-left: 30%;
  
}
.contact-h2{

  font-size: 3em;
  line-height: 1;
  text-align: right;
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 50px;
  padding-bottom: 30px;
  border-right: 3px solid black;
 
}


/* apply styles to <header> */
header  {
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 35px;
    background-color: #39a6b2; 
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-image: url("../images/bayarea.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-position: 30%;
    z-index: 9999;
}

header a {
  text-decoration: none;
  color: #060b4b;
}

header nav {
  margin: 7px 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

header nav ul li a:hover {
  background: #fce138;
  color: #024e76;
  border-radius: 15px;
  text-shadow: none;
}

.hero-form button:hover {
  background-color: #39a6b2;  
}

.contact-form button:hover {
  color: #fce138;
  background: #39a6b2;
}

header nav ul li a {
  padding: 10px 15px;
  font-weight: lighter;
  font-size: 1.55vw;
}

 h1 {
  font-weight: bold;
  margin: 0;
  font-size: 36px;
  color: #fce138;
}

  footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #fce138;
    width: 100%;
    padding: 40px 35px;
  }

 h2 {
   display: inline;
   color: #024e76;
   font-size: 30px;
   margin: 0;
 }

 footer div {
   line-height: 1.5;
   text-align: right;
 }

 footer a {
   color: #024e76;
 }


/* Hero Style Start */
.hero {
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
  background-image: url("../images/bayarea.jpg");
  background-size: cover;
  /*background-position: center;*/
  background-attachment: fixed;
  background-position: 80%;
 
}
/* Hero Style End */

.hero-form {
  border: solid 3px #024e76;
  background-color: #fce138;
  padding: 20px;
  color: #024e76;
  border-style: solid;
  border-width: 3px;
  border-color: #024e76;
  margin: 3.5%;
  width: 40%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

hero-form h3 {
  font-size: 24px;
  margin: 0;
}

.hero-form p {
  margin: 5px 0 15px 0;
}

.hero-cta {
  width: 35%;
  text-align: right;
  margin: 3.5%;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.hero-cta h2 {
  font-style: italic;
  font-size: 40px;
  color: #b5c115;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.form-input {
  border: 1px solid #024e76;
  display: block;
  padding: 7px 15px;
  font-size: 16px;
  color: #024e76;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 10px;
  background-color: rgba(255,255,255, 0.75);

}

/* create a new rule for focus state */
.form-input:focus {
  background-color: rgba(255,255,255, 1);
  outline: none;
}

.hero-form label {
  margin: 0 5px;
}

.hero-form button {
  color: #fce138;
  background-color: #024e76;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 10px;

}
/* HERO STYLES END */


.intro p {
  line-height: 1.7;
  color: #39a6b2;
  width: 80%;
  font-size: 20px;
  text-align: center;
}

.steps { 

  background: #efeee7;
}

.section-title {
  font-size: 48px;
  color: #024e76;

  border-bottom: 3px solid;
}

.primary-border {
  border-color: #fce138;
}

.secondary-border {
  border-color: #39a6b2;
}


.step h3 {
  color: #024e76;
  font-size: 46px;
  flex: 1 30%;
}

.step-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 2 70%;
}

.step-text p {
  color: #39a6b2;
  font-size: 18px;
}

.step-text h4 {
  font-size: 26px;
  line-height: 1.5;
  color: #024e76;
}

.step {
  margin: 50px auto;
  padding-bottom: 50px;
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #39a6b2;
}

.step:last-child {
  border-bottom: none
}

.step:nth-child(even) {
  border-bottom: 1px solid #39a6b2;
}

.step-img {
  flex: 1 12%;
  margin-right: 20px;
}

.step-text {
  flex: 12;
}

.step-img img {
  max-width: 100%;
}

.personal {
  flex: 1;
  margin: 0 auto 30px auto;
  background: #024e76;
  color: #fce138;
  
}

.personal img {
  width: 100%;
}

.personal-bio {
  padding: 25px;
  line-height: 1.3;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.personal-bio h3 {
  font-size: 28px;
}

.personal-bio h4 {
  font-weight: lighter;
  font-size: 22px;
  margin-bottom: 15px;
}

.personal-bio p {
  font-size: 17px;
}

.personal-info {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.section-title {
  font-size: 55px;
  display: inline-block;
  padding: 0 100px 20px 100px;
  border-bottom: 20px;
  margin: 0 auto 35px auto;
  margin-bottom: 35px;
  color: #024e76;
  text-align: center;
  width: 50%;
}


.contact-info iframe {
 
  height: 400px;
}

.contact-info iframe {
  width: 400px;
  height: 400px;
}

.contact-info div {
 
  color: white;
}

.contact-info h3 {
  color: #241f03;
  font-size: 32px;
}

.contact-info p, .contact-info address {
  margin: 20px 0;
  line-height: 1.5;
  font-size: 16px;
  font-style: normal;
 
}

.contact-info a {
  color: #241f03;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-form input, .contact-form, textarea {
  border: 1px solid #024e76;
  display: block;
  padding: 7px 15px;
  font-size: 16px;
  color: #024e76;
  width: 100%;
  margin-bottom: 15px;
  margin-top: 5px;
  border-radius: 10px;
  background-color: rgba(255,255,255, 1);
}

/* create a new css rule for focus state */
.contact-form input:focus, .contact-form textarea:focus {

}

.contact-form button {
  width: 100%;
  border: none;
  background: hsl(55, 79%, 54%);
  color: #024e76;
  text-align: center;
  padding: 15px 0;
  font-size: 16px;
  border-radius: 10px;
}

.checkbox-wrapper input, .radio-wrapper input {
  opacity: 0;
}

.checkbox-wrapper label, .radio-wrapper label {
  position: relative;
  left: 10px;
  margin: 10px;
  line-height: 1.6;
}

.checkbox-wrapper label::before, .radio-wrapper label::before {
  content: "";
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.75);  
  border: 1px solid #024e76;  
  position: absolute;
  top: -4px;
  left: -30px;
  border-radius: 50%;
}

.radio-wrapper label::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #024e76;
  position: absolute;
  left: -29px;
  top: -3px;
  transform: rotate(-58deg);
  background-image: radial-gradient(circle, #39a6b2, #024e76);
}

.checkbox-wrapper label::after {
  content: "";
  height: 6px;
  width: 14px;
  border-left: 2px solid #024e76;
  border-bottom: 2px solid #024e76;
  position: absolute;
  left: -26px;
  top: 1px;
}

.checkbox-wrapper input + label::after, 
.radio-wrapper input + label::after {
  content: none;
}

.checkbox-wrapper input:checked + label::after, 
.radio-wrapper input:checked + label::after {
  content: "";
}

.flex-row {
  display: flex;
}

/* need to be added before media queries */
.grid-container {
  display: grid;
}

/*.grid-item {
  width: 200px;
  height: 50px;
  border: solid;
  color: black;
}
/*.grid-container {
  background: rgb(243, 237, 237);
  width: 100%;
  display: grid;
  /* repeat(iterator, size) */
  grid-template-columns: 1fr repeat(2, 8fr);
  grid-template-rows: repeat(5, 1fr) 2fr;
  border: 2px solid #024e76;
  color:  #024e76;
  font-size: 1.2rem;
}

/* specific match */
.grid-item.basic {
  grid-column: 2 / span 1;
}

/*.grid-item {
  padding: 15px 0;
  border: 2px solid #024e76;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
 
}

/* SERVICE STYLES BEGIN 
.services {
  background: #fce138; */
}

.grid-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
}

.grid-item.work {
  grid-row: 1 / -1;
}

.grid-item.work {
  writing-mode: horizontal; 
  grid-column: 1;
  grid-row: 1 / -1;
  /*transform: rotate(180deg);*/
}



/* MEDIA QUERY FOR SMALLER DESKTOP SCREENS AND SMALLER */
@media screen and (max-width: 980px) {
  header {
    padding-bottom: 0;
    justify-content: center;
    position: relative;
  }

  header h1 {
    width: 100%;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

  header nav ul {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }

  header nav ul li a {
    font-size: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

  footer h2, footer div {
    text-align: center;
    width: 100%;
  }
  .hero-cta, .hero-form {
    width: 100%;
  }
  
  .hero-cta {
    text-align: center;
  }

  .section-title {
    width: 80%;
  }
  
  .trainer {
    flex: 0 70%;
  }
  
  .contact-info iframe{
    flex: 1 100%;
  }
}

/* MEDIA QUERY FOR TABLETS AND SMALLER */
@media screen and (max-width: 768px) {
  section {
    padding: 30px 15px;
  }
  .step h3 {
    flex: 1 100%;
    text-align: center;
  }

  .step-info {
    flex: 2 100%;
    text-align: center;
    justify-content: center;
  }

  .step-img {
    flex: 0 32%;
    margin-right: 0;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .step-text {
    flex: 100%;  
  }

  /*.grid-container {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-item.basic {
    grid-column: 1;
  }
  .grid-item.work {
    transform: none;
    writing-mode: unset;
    grid-column: 1 / -1;
    grid-row: -1;
  }
}

/* MEDIA QUERY FOR MOBILE PHONES AND SMALLER */
@media screen and (max-width: 575px) {

  .hero-form button {
    width: 100%;
  }

  .section-title {
    width: 95%;
  }

  .intro p {
    width: 100%;
  }

  .trainer {
    flex: 0 100%;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info > * {
    flex: 0 100%;
  }
  .contact-form {
    order: 3;
  }
}
 
.some-class {
  text-shadow: 5px 10px 15px black;
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.25);
}
