:root{
    --cool: linear-gradient(228deg, rgba(57,162,159,1) 23%, rgba(57,82,162,1) 53%, rgba(221,13,217,1) 100%);
    --warm: linear-gradient(228deg, rgba(57,162,159,1) 23%, rgba(253,29,29,1) 38%, rgba(252,176,69,1) 80%);
    --test: rgb(233, 239, 238);
    --white: rgb(164, 217, 214);
    --select: linear-gradient(45deg, rgb(85, 19, 178), rgba(97, 201, 172, 0.623) );
}

body{
    background: var(--white);
    line-height: 1.5;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
  }
 
header h1 {
    color: rgba(26, 4, 4, 0.473);
    padding: 3%;
    line-height: 1.2;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  }
   
nav {
    display: flex;
    flex-flow: row nowrap;
    background: var(--warm);
  }

nav a {
    text-decoration: none;
    padding: 10px 50px;
    margin-left: -20px;
    font-size: 1.5rem;
  }

/*hover features for fun*/
h2:hover{
  animation: glow 2s ease infinite alternate;
}

/*https://www.w3schools.com/howto/howto_css_glowing_text.asp*/
@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 1px rgb(16, 6, 6), 0 0 2px rgb(83, 40, 40), 0 0 3px #123257, 0 0 4px #5bada4, 0 0 5px #7aa339, 0 0 6px #88b7cb, 0 0 7px #e60073;
  }
  
  to {
    text-shadow: 0 0 2px #fff, 0 0 3px #ff4da6, 0 0 4px #ff4da6, 0 0 5px #ff4da6, 0 0 6px #ff4da6, 0 0 7px #ff4da6, 0 0 8px #ff4da6;
  }
}

h1:hover{
  transition: 2s;
  transform: rotateY(360deg);

}

#Work:hover, #Contact:hover, #About:hover, header:hover, footer:hover{
  background: var(--select);
} 

a:link {
    text-decoration: none;
    color:azure;
}

a:hover{
    transition: 0.3s ease-out;
    font-size: 110%;

}

nav > a:hover{
  font-size: 1.7rem;
}

a:active{
    color:black;
}

a:visited {
    color: azure;
}

/*main*/
.main_container {
  max-width: 95%;
  margin: 0 auto;
  border: 10px double black;
}

/*About start*/
.page_section > h2{
  flex: 0 0 15%;
  font-size: 1.7rem;
  text-align: center;
  padding: 5%;
  width: 17%;
  height: 100%;
  padding-right: 40px;
  border-right: 5px solid rgb(184, 201, 233);
}

.page_section{
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  justify-content: space-between;
  margin: 30px 0;
  padding: 10px 0;
}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 83%;
}
/*About end*/

/*Work start*/

.container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 80%;
  height: 30%;   
}

.flex{
  position: relative;
  display: flex;
  align-items: center;
  max-width: 80%;
  border: 5px solid black;
  background-color: blue;
  /*tutor recommendations*/
  flex-basis: calc(50% - 1em);
  padding: 0 0 20px 0;
  margin: 0.5em;
}

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

.flex h3{
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #ff4da6;
}

/*Work end*/


/*Contact start*/
#Contact{
    display: flex;
    flex-direction: row;
}

.contact_box{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px;
    width: 80%;
}

.phone_box, .email_box, .social_box{ 
    width: 150px;
    height: 150px;
    text-align: center;
    line-height: 1.5;
}

footer{
    text-align: center;
    margin: 10px;
    font-family:'Times New Roman', Times, serif;
    font-style: italic;
}

.screen_reader{
    display: none;
}

  /*tutor recommendations*/
  @media screen and (max-width: 768px) {
    header{
      display: flex;
      justify-content: center;
      text-align: center;
    }

    /*attempt to make individual nav links occupy it's own row

    header > h1, header > nav{
      flex-direction: column;
    }

    header > h1{
      order: 1;
    }

    header > nav{ 
      order: 2;
    }

    main{
      justify-content: center;
    }
    */

    .page_section > h2,
    .page_section > div,
    .flex {
      flex: 0 0 100%;
      margin-bottom: 10px;
    }
    
    .page_section > h2{
      text-align: left;
    }
  }
