/**{
  border: 1px solid black;
}*/

html {
    font-size: 62.5%; /* Set base font size to 62.5% of the default (16px),which is 10px, so 1rem = 10px - makes font size math easier */
}

/*body, nav, main{
  border: 3px solid red;
}

.body-container {
  border: 3px solid green;
}*/

body{
  min-width: 95vw;
  min-height: 95vh;
  display:flex;
}

.body-container{
  min-height: 95%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110vh;
}


nav{
  display: flex;
  flex-direction: column;
}

.toggle-visibility{
  display:none;
}

/**image galleries**/

.gallery{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

}

header > p {
  margin-top: -5rem;
}


/** this is for the hover-y thing in the poetry section**/

.container {
  /*max-width: 23%;*/
  position: relative;
  margin: 0.4rem !important;
  margin: 3px;
  width: 360px;
  height: 270px;
  display:flex;
  justify-content: center;
  align-items: center;
}

.image {
  opacity: 1;
  display: block;
  /* width: 100%; */
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
  /* height: 350px; */
  width: 360px;
  height: 270px;
  /* width: auto; */
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.project-main {
      display: grid;
    justify-items: center;
    justify-content: center;
}

.project-gallery {
    margin-top: -6rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    max-width: 90%;
    margin-bottom: 4rem;
}

.project-hub-gallery {
    margin-top: -6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    max-width: 90%;
    margin-bottom: 4rem;
}

.description {
  max-width: 1086px;
}

.container:hover .image {
  opacity: 0.3
}

.container:hover .middle {
  opacity: 1;
}

.container:hover {
  background-color: black;
}

/**contact form**/

#headshot{
  margin-top: -5rem;

}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 50%;
    font-size: 1.6rem;
    letter-spacing: .1rem;
}

input,textarea {
    font-size: 1.6rem;
    height: 2em;
    margin: .4em 0 1em 0;
}

textarea {
    height: 10em;
}

input {
    max-width: 400px;

}

input[type="submit"]{
    align-self: flex-end;
    width:100%;
    height: 3em;
    max-width:400px;
    font-weight: 100;
    letter-spacing: .1rem;
    text-transform: uppercase;
    --webkit-user-select: text;
    --webkit-appearance: none;

}

input[type="submit"]:hover{
    background: rgb(255, 210, 95); 
}

input[type="submit"]:active{
    background: rgb(196, 149, 32); 
    border: 2px inset orange;
}

.recaptcha {
    max-width: 100%;
}

.index-main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.index-main ul{
  list-style: none;
  max-width: 50%;
  text-transform: uppercase;
  margin-top: -5.0rem;
  margin-left: -50px;
   display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 50px;
    justify-content: center;
    /* asdhasdhd */
    /* align-items: center; */
    justify-items: center;
}

.index-main ul a {
  text-decoration:none;
  margin: 0.5rem;
  color: #075CFB; 
  text-decoration: none;
}

.index-main ul a:hover{
  color: #0f357c;
}

/**for all images in galleries**/
img{
  object-fit: cover;
  margin: 3px;
  width: 360px;
  height: 270px;
  align-self: center;
  justify-self: center;
}

/**Projects, mood page--technically all image galleries i think**/

main {
  /*border: 3px solid purple;*/
  display: flex;
  flex-direction: column;
  align-items: center;

}

/* .gallery ~ p {
  padding: 0.5% 11.5%;
  /*border: 3px solid blue;
} */

.gallery ~ p + p {
  margin-top: -1.6rem;
}

.gallery{
  /*border: 3px solid red;*/
  margin-top: -6rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  max-width: 90%;
  margin-bottom: 4rem;
} 

/**WORKSHOPS**/



/**MOBILE LAYOUT**/
@media (max-width: 850px){
/**{
  border: 2px solid red;
}*/

body{
  flex-direction: column;
} 

nav {
  /*margin: -1.0rem !important;*/
  /*padding: 1.0rem !important;*/
  flex-direction: column;
  height: 50px;
  align-items: center;
  justify-content: center;
}

/*nav, nav p, nav ul {
  border: 1px solid red;
}*/

nav p {
  /*max-width: 20vw;*/
  font-size: 1.0rem;
  padding-top: 3rem;
  padding-bottom: -3.0rem;
}

nav ul {
  width:100%;
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  font-size: 1.0rem; 
}

nav ul li {
  font-size: 1.0rem;
}

.index-main {
  max-width: 100vw;
}

.index-main ul {
  max-width: 100vw;
  flex-wrap: wrap;
}

}

/**MOBILE**/

@media (max-width:480px){
  #contact-form {
    margin-top: 1rem;
    width: 90%;
}
}