:root {
  --navbar-bg-color: hsl(0, 0%, 100%);
  --navbar-text-color: rgb(102, 6, 54);
  --navbar-text-color-focus: white;
  --navbar-bg-contrast: hsl(0, 0%, 25%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px #000 solid; */
  
}



body {
  padding: 0;
  margin: 0;
  
  height: 100vh;
 
  
}



.wrapper-page {
  padding: 0;
  margin: 0;
  
 border-style: solid;
 border-color: rgb(102, 6, 54);
   display: grid;
  grid-gap: 5px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
 
  grid-template-areas:
    "nav"
    "content"
    "footer";
    
}




/* NAV */
#navbar {
  display: flex;

  grid-area: nav;

  height: auto;
  width: 100%;
  padding: 0;
  margin: 0;
  
  
}

.navbar-container {
  display: flex;

  justify-content: space-between;
  flex-basis: 100%;
}

.navbar-item {
  margin: 0.4em;
  width: 100%;
  text-transform: uppercase;
}

.navbar-link {
  color: var(--navbar-text-color);
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  font-weight: 400;
  align-items: center;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  font-weight: 600;
}

.home-link:focus,
.home-link:hover {
  color: var(--navbar-text-color-focus);
}

.navbar-link {
  justify-content: center;
  width: 100%;
  padding: 0.4em 0.8em;
  border-radius: 5px;
}

.navbar-link:focus,
.navbar-link:hover {
  color: var(--navbar-text-color-focus);
  background-color: var(--navbar-bg-contrast);
}

.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

#logo {
  border-radius: 10%;
  max-width: 250px;
  height: auto;
}
.navbar-toggle {
  margin-top: 35px;
  margin-right: 10px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  /* width: 90px;
  height: 90px; */
  display: flex;
  /* align-items: center; */
  /* justify-content: center; */
  flex-direction: column;
}

.icon-bar {
  display: block;
  width: 45px;
  height:6px;
  margin: 4px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
  background-color: var(--navbar-text-color);
}
.navbar-toggle:focus .icon-bar,
.navbar-toggle:hover .icon-bar {
  background-color: var(--navbar-text-color-focus);
}

#navbar.opened .navbar-toggle .icon-bar:first-child,
#navbar.opened .navbar-toggle .icon-bar:last-child {
  position: absolute;
  margin: 0;
  width: 30px;
}

#navbar.opened .navbar-logo {
  display: none;
}

#mob-logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin:0;
  padding:0;
  
}

#mob-logo {
  height: auto;
  width: 90px;
}

#navbar.opened .navbar-toggle .icon-bar:first-child {
  transform: rotate(45deg);
}

#navbar.opened .navbar-toggle .icon-bar:nth-child(2) {
  opacity: 0;
}

#navbar.opened .navbar-toggle .icon-bar:last-child {
  transform: rotate(-45deg);
}

.navbar-menu {
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  opacity: 0;
  visibility: hidden;
position: absolute;
height: 100%;
  left: 0;
  right: 0;
}

#navbar.opened .navbar-menu {
  background-color: rgb(79, 25, 104);
  opacity: 1;
  visibility: visible;
}

.navbar-links {
  width: 100%;

  list-style-type: none;

  overflow: hidden;
  position: absolute;
  background-color: var(--navbar-bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;

  border-radius: 5px;
}

#navbar.opened .navbar-links {
  padding: 1em;
  max-height: none;
}



/* CONTENT */


.content {

  color: #333333;
  border-top-width: 5px;
  border-style:groove;
  border-color: rgb(104, 14, 77);
 
height: 100%;
width: 100%;
  
  grid-area: content;

  

}

section {
  
  
  border-bottom: 1px solid rgba(131, 16, 83, 0.2);
  border-top: 1px solid rgba(131, 16, 83, 0.2);

  color: #333333;
}

h2 {


  margin-top: 2rem;
  text-align: center;
  text-decoration: underline;
  color: rgb(102, 6, 54);
}

p {
  
  margin-top: 1rem;
  text-align: left;
  padding: 2%;
}


.pilates-mini-images {
  width: 100%;
  display: flex;
  flex-basis: 100%;
  align-items: center;
  justify-content: space-around;
  
}

.pilates-mini-images img {
  width: 90px;
  height: auto;
}

/* FOOTER */

footer {
  width: 100%;
  height: 100%;
  grid-area: footer;
  
}

.socmed {
width: 100%;

display: flex;
flex-direction: row;
align-items: center;
justify-content: center;



}

small {
  opacity: 0.8;
  font-weight: 900;
}
small a {
  color: inherit;
  
}


/* Style all font awesome icons */
.fa {
  
 
  padding: 20px;
  font-size: 30px;
  width: 70px;
  text-align: center;
  text-decoration: none;
 margin: 5px
}


/* Add a hover effect if you want */
.fa:hover {
  opacity: 0.7;
}


/* Facebook */
.fa-facebook {
  background: #3B5998;
  color: white;
}

/* youtube */
.fa-youtube {
  background: #db1111;
  color: rgb(255, 255, 255);
}




/* MEDIA QUERIES */


@media screen and (min-width: 500px) {
  body {
    
  }
  .wrapper-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px 900px auto; 
    grid-template-areas:
      "nav"
      "content"
      "footer";
     
  }

  #navbar {
    display: grid;
    grid-area: nav;
    padding: 0;
    margin: 0;
width: 100%;
   height: 100%;
    
  }

  

  .navbar-container {
   height: 100%;
    width: 100%;
    
  }

  .navbar-menu {
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
  position: absolute;
  
  }

  .navbar-toggle {
    display: none;
  }

  #navbar .navbar-menu,
  #navbar.opened .navbar-menu {
    visibility: visible;
    opacity: 1;
    
    width: 100%;
    
  }

  #navbar .navbar-links,
  #navbar.opened .navbar-links {
    margin:0;
    flex-direction: row;
    padding: 0;
    box-shadow: none;

    list-style-type: none;
    height: 150px;
    

    
  }

  #navbar .navbar-link:last-child {
    margin-right: 0;
  }
  .navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 150px;
    margin: 0;
    padding: 0;
  }
  #logo {
    border-radius: 10%;
    max-width: 250px;
    height: auto;
  }

  #mob-logo {
    display: none;
  }
  .pilates-mini-images {
    padding: 0;
margin:0;
    width: 100%;
    display: flex;
    flex-basis: 100%;
    align-items: center;
    justify-content: space-around;
    
  }
  
  .pilates-mini-images img {
padding: 0;
margin:0;
    width: 100px;
    height: auto;
  }

  .pilates-mini-images #logo{
    width: 125px;
    height: auto;
  }

}




@media screen and (min-width: 900px) {
  body {
    overflow: hidden;
  }
  .wrapper-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px auto auto; 
    grid-template-areas:
      "nav"
      "content"
      "footer";
     
  }

  #navbar {
    display: grid;
    grid-area: nav;
    padding: 0;
    margin: 0;
width: 100%;
   height: 100%;
    
  }

  

  .navbar-container {
   height: 100%;
    width: 100%;
    
  }

  .navbar-menu {
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
  position: absolute;
  
  }

  .navbar-toggle {
    display: none;
  }

  #navbar .navbar-menu,
  #navbar.opened .navbar-menu {
    visibility: visible;
    opacity: 1;
    
    width: 100%;
    
  }

  #navbar .navbar-links,
  #navbar.opened .navbar-links {
    margin:0;
    flex-direction: row;
    padding: 0;
    box-shadow: none;

    list-style-type: none;
    height: 150px;
    

    
  }

  #navbar .navbar-link:last-child {
    margin-right: 0;
  }
  .navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 150px;
    margin: 0;
    padding: 0;
  }
  #logo {
    border-radius: 10%;
    max-width: 250px;
    height: auto;
  }

  #mob-logo {
    display: none;
  }
  .pilates-mini-images {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-basis: 100%;
    align-items: center;
    justify-content: space-around;
    padding:0;
    margin:0;
    
  }
  
  .pilates-mini-images img {
    width: 150px;
    height: auto;
  }

  
  .pilates-mini-images #center-img{
    width: 150px;
    height: auto;
  }
  
}

