/******************************************
/* CSS
/*******************************************/

/* Box Model Hack */
*{
  box-sizing: border-box;
}

/* Smooth scrolling buttons */
html {scroll-behavior: smooth;}

/* Hidden elements */
#hire-me {
  display: none;
  /* display: hidden; */
}

.card-tech {

}

/* Form submission page */
#form-submitted {
  height: 260px;
  margin-top: 25%;
  width: 300px;
  flex-direction: column;
}
#form-submitted * {
  width: 100%;

}
#form-submitted p {
  width: 100% !important;
}


/******************************************
/* ANIMATIONS
/*******************************************/

/* Main Section Buttons */
a.button:hover {
  animation: in 0.2s forwards;
}
@keyframes in {
  0% {}
  100% {
    /* background-color: #838383; */
    filter: brightness(0.93)
    /* color: white; */
  }
}
a.button {
  animation: out 0.1s forwards;
}
@keyframes out {
  0% {
    filter: brightness(0.93)
  }
}

/* Card Buttons */
a.card-button:hover, .card-button:hover, #contact-button:hover {
  animation: card-in 0.2s forwards;
  cursor: pointer;
}
@keyframes card-in {
  100% {
    filter: opacity(75%);
  }
}
a.card-button, .card-button, #contact-button {
  animation: card-out 0.2s forwards;
}
@keyframes card-out {
  0% {
    filter: opacity(75%);
  }
}

/* Footer Links */
footer a:hover {
  animation: rise 0.2s forwards;
}
@keyframes rise {
  0% {
    translate: 0 -1px;
  }
  100% {
    translate: 0px -4px;
    filter: opacity(90%);
  }
}
footer a {
  animation: fall 0.2s forwards;
}
@keyframes fall {
  0% {
    translate: 0px -4px;
    filter: opacity(90%);
  }
  100% {
    
    translate: 0 -1px;
  }
}


/******************************************
/* UNIVERSAL STYLING
/*******************************************/

/* Background Color */
body {
  background: rgb(244,244,244);
  background: linear-gradient(180deg, rgba(244,244,244,1) 0%, rgba(208,208,208,1) 100%);
  background-attachment: fixed; /* Span the full page */
}

/* Font and Text */
body {
  font-family: 'Outfit', sans-serif;
}
h1,
  h2,
    h3,
      h4,
        h5 {
          margin: 0%;
        }
#main-tagline {
  font-weight: 300;
}
h2,
  h3 {
    font-weight: 600;
}
p {
  font-weight: 300;
  color: #1f1f1f;
  line-height: 150%;
  margin: 0;
}
.card-tech {
  color: #707070;
}
.card-tagline {
  font-weight: 300;
  color: black;
}
footer small {
  color: #838383;
}
footer > div > a > i {
  color: #686868;
}

/* Sections */
main {
  height: 100vh;
}
main > section > section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
}
#my-work {
  margin-top: -20px;
  height: auto;
}


/* Buttons */
.button:active {
  filter: brightness(94%);
}
.button, #contact-button {
  text-decoration: none;
  color: white;
  background-color: #1f1f1f;
  text-transform: capitalize;
  border-radius: 50vh; 
  font-weight: bold;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: -4px -4px 10px rgba(255,255,255,0.75),4px 4px 10px rgba(134, 134, 134, 0.7);
}
.card-button {
  box-shadow: -4px -4px 10px rgba(231, 231, 231, 0.75),4px 4px 10px rgba(110, 110, 110, 0.753)
}
#main-buttons {
  display: flex;
  flex-direction: row;
}
.white-button {
  background-color: white;
  color: #363636;
  margin-right: 1.25em;
}
.gray-button {
  background-color: #838383;
  color: white;
}


/******************************************
/* VIEWPORT RELATED LAYOUTS
/*******************************************/

    
  /* Font and Text */
  #main-tagline {
    font-size: 1.7em;
  }
  h1 {
    font-size: 3.5em;
  }
  h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
  }
  h3 {
    font-size: 2em;
    letter-spacing: -0.02em;
  }
  footer > div > a > i {
    font-size: 1.8em;
  }
  footer > small {
    font-size: 1em;
  }

  /* Buttons */
.button, #contact-button {
  padding: 10px 48px;
  font-size: 0.80em;
}

  /* SECTIONS */
  main {
    margin-left: 10%;
  }
  main > section {
    position: relative;
    margin: auto;
  }
  main > section > section {
    position: absolute;
    width: 380px;
    height: 20%;
    top: 450px;
  }
  main > section > div {
    position: absolute;
    width: 100%;
    padding-left: 170px;
    top: 290px;
    overflow: hidden;
  }
  main > section > div > img {
    width: 200px;
  }
  #main-buttons {
    margin-top: 10%;
  }
  body > section {
    width: 380px;
    margin: auto;
  }
  .h2-div {
    width: 95%;
    margin: auto;
  }
  footer {
    height: 100px;
    width: 350px;
    margin: auto;
  }
  footer > * {
    display: flex;
    justify-content: space-between;
    width: 55%;
    margin-bottom: 2em;
    margin: auto;
    margin-bottom: 40px;
  }
  footer small {
    margin: auto;
    text-align: center;
    width: fit-content;
  }



  /* CARDS */
  .card {
    width: 350px;
    margin: auto;
    height: 510px;
    background-color: white;
    border-radius: 3vh; 
    margin-bottom: 4.5em;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -4px -4px 10px rgba(248, 248, 248, 0.75),4px 4px 10px rgba(63, 63, 63, 0.068);
    background: radial-gradient(145% 145.46% at 0% 0%,#FFF 0%,#f0f0f0 100%);
  }
  .card > p {
    font-size: 1.1em;
    letter-spacing: -0.02em;
  }
  #my-work img {
    width: 100%;
    height: auto;
    border-radius: 1vh;
  }
  .card > .card-tagline {
    font-size: 1.2em;  
    font-weight: 500;
  }
  .card > .card-tech {
    font-size: 0.85em;
    letter-spacing: 0.1em;
  }
  .card > div {
    margin-top: 40px; 
    /* space above card buttons */
  }
  .card > .button {
    width: 40%;
    height: 9%;
  }
  .card > .button > a {
    margin: auto;
  }

  /* About me card - MOBILE */
  #my-bio {
    position: relative;
    display: flex;
    /* flex-direction: row; */
    height: 610px;
  }
  #my-bio p {
    line-height: 140%;
    font-size: 1.1em;
  }
  #sosa-drawing {
    width: auto;
    height: 75px;
    position: absolute;
    bottom: 0px;
    align-self: flex-end;
  }

  /* Skills card */
  #skills-card {
    height: 475px;
    display: block;
  }
  #skills-card > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
  }
  #skills-card > div > div {
    margin: 5% auto 7% auto;
    width: 33.333%;
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  #skills-card i {
    font-size: 3.2em;
    color: #363636;
  }
  #skills-card span {
    color: #686868;
    margin-top: 8px;
  }
  #skills-card .cards-tech {
    color: #686868;
  }

  /* Hire me card */
  #hire-me {
    height: 180px;
    flex-direction: row;
    padding: 40px 30px;
  }
  #hire-me > #resume-div {
    flex-direction: column;
    align-self: flex-end;
  }
  #hire-me div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* margin: auto; */
  }
  #hire-me > div > p {
    font-size: 1em;
  }

  /* Contact card */
  #contact-me {
    display: block;
    height: 800px;
  }
  #contact-me > p {
    margin: 12px 0 0 0;
  }
  #my-email, #my-email a {
    text-decoration: none;
    color: #6d6d6d;
    font-size: 1.15em;
    margin: 10px 0;
  }
  #my-email:hover, #my-email a:hover {
    color: #363636;
  }
  form {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
  form > label {
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
  }
  form > label > span {
    font-weight: 300;
    margin-bottom: 5px;
  }
  .form-msg-container {
    width: 100%;
  }
  .form-contact-info {
    border-radius: 1vh;
    height: 40px; 
    margin-bottom: 15px;
    padding: 10px;
    border: rgb(221, 221, 221) 1px solid;
    width: 100%;
  }
  textarea {
    border-radius: 1vh;
    margin-bottom: 30px;
    padding: 8px;
    border: rgb(221, 221, 221) 1px solid;
  }
  #contact-button {
    width: 100%;
    font-size: 1.1em;
    margin: auto;
  }

@media screen and (min-width: 600px) and (max-width: 879px) {

  /* Sections - 600PX */
  main > section  {
    margin-left: 10%;
    top: 50px;
  }
  main > div {
    position: absolute;
  }
  main > div > img {
    width: 420px;
  }
  #main-buttons {
    margin-top: 50px;
  }
  body > section {
    width: 600px;
    margin: auto;
  }

  /* Buttons - 600PX */
  /* Card button */
  .card > div {
    margin-top: 35px;
  }

  /* Cards - 600PX */
  .card {
    width: 600px;
    height: 660px;
    margin-bottom: 4.5em;
    padding: 50px 25px;
  }

  /* About me card - 600PX */
  #my-bio {
    height: 460px;
  }
  #my-bio > section > p + p {
    width: 65%;
  }
  #my-bio p {
    line-height: 150%;
  }
  #sosa-drawing {
    width: auto;
    height: 90px;
    position: absolute;
    bottom: -1px;
    align-self: flex-end;
  }

   /* Skills card - 600PX */
   #skills-card {
    height: 400px;
  }
  #skills-card > div {
    margin-top: 0;
  }
  #skills-card > div > div {
    width: 25%;
  }
  #skills-card i {
    font-size: 3em;
  }

  /* Contact card - 600PX */
  #contact-me {
    height: 720px;
  }
  form  {
    font-size: 1.0em;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  }
  .top-form {
    width: 49%;
  }
  textarea {
    margin-bottom: 35px;
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  main {
    margin-left: 2%;
  }
}

@media screen and (min-width: 880px) {

  /* Sections - 880px */
  main > section  {
    width: 880px;
    margin: auto;
  }

  main > section > div {
    position: absolute;
    width: 100%;
    padding-left: 40%;
  }
  main > section > div > img {
    width: 340px;
    height: 355px;
  }
  #main-buttons {
    margin-top: 40px;
  }
  #my-work {
    margin-top: -20px;
  }
  body > section {
    width: 880px;
    margin: auto;
  }

  /* CARDS - 880px */
  .card {
    width: 880px;
    height: 375px;
    margin-bottom: 4.5em;
    
    background-color: white;
    border-radius: 3vh; 
    display: block;
    padding: 50px 50px;
  }

  /* My Work Cards */
  #my-work img {
    width: 55%;
    height: auto;
    border-radius: 1vh;
    float: right;
  }
  #my-work p {
    width: 35%;
  }
  #my-work > .card > * {
    margin-bottom: 10px;
  }
  .my-work-img {
    margin-top: -70px;
  }

  /* About me card - 880px */
  #my-bio {
    height: 385px;
    display: flex;
    flex-direction: column;
  }
  #my-bio > section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  #my-bio > section > p {
    width: 45%;
  }
  #sosa-drawing {
    width: auto;
    height: 180px;
    position: absolute;
    bottom: -1px;

  }

   /* Skills card - 880px */
   #skills-card {
    height: 260px;
  }
  #skills-card > div {
    flex-wrap: nowrap;
    flex-direction: row;
    margin-top: 10px;
  }
  #skills-card > div > div {
    margin-top: 20px;
  }
  #skills-card i {
    font-size: 2.7em;
  }
  .tools + span {
    font-size: 0.92em;
  }

  /* Contact card - 880px */
  #contact-me {
    height: 670px;
    display: flex;
  }

  #contact-me > p {
    display: inline-block;
    width: 100%;
    line-height: 150%;
    margin: 8px auto 0 auto;
  }
  #contact-me a {
    margin: 12px 0 12px 0 ;
  }
  form  {
    font-size: 1.0em;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  }
  .top-form {
    width: 49%;
  }
  textarea {
    margin-bottom: 25px;
    width: 100%;
  }
}


/******************************************
/* ADDITIONAL STYLES
/*******************************************/
