@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html.is-changing .transition-main {
  transition: opacity 200ms ease-in 100ms;
}

html.is-animating .transition-main {
  opacity: 0;
}

html.is-changing .transition-main.return {
  transition: opacity 200ms ease-in 0ms;
}


#top {
  transition:
  background-color 200ms ease,
  color 200ms ease,
  border ease 20ms;
}

img {
  justify-self: center;
}

.profile {
  display: grid;
  justify-content: center;
  justify-self: center;
  text-align: center;
}

.work,
.back {
  display: grid;
  justify-content: center;
  justify-self: center;
  text-align: center;
}

h1 {
  margin: 0;
  padding: 0;
  font-size: 42px;
  font-family: "Sen", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

h2 {
  margin: 0;
  font-size: 20px;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1.75px;
}

h2.work {
  font-family: "Sen", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3.5px;
  justify-self: left;
  margin-right: 20px;
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

a,
.submit {
  display: grid;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border ease 20ms;

  font-size: 13px;
  text-decoration: none;
  color: white;
  width: 140px;
  height: 40px;
  border: 1px solid rgb(71, 71, 71);
  background-color: rgb(71, 71, 71);
  letter-spacing: 1.35px;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 450;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  align-items: center;
}

a#top {
  background-color: black;
  margin-top: 20px;
}

a:hover {
  color: rgb(71, 71, 71);
  background-color: white;
  border: 1px solid rgb(71, 71, 71);
}

a#top:hover {
  background-color: white;
}

.sections {
  display: grid;
  padding: 0px 20px;
  justify-content: center;
  min-width: 400px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  margin-top: 50px;
  display: grid;

  grid-template-columns: 1fr 5fr;
  gap: 50px;
  justify-self: left;
}

.history {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 4fr;
  grid-template-rows: auto;
  gap: 15px;
  align-items: start;
}

p {
  margin: 0;
}

div {
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

div.title {
  font-weight: 800;
}

div.summary {
  display: grid;
  gap: 10px;
}

.submit {
  transition:
    background-color 300ms ease-in-out,
    color 300ms ease-in-out,
    border ease 20ms;
  cursor: pointer;
  background-color: rgb(55, 59, 77);
  font-weight: 800;
  font-family: "Sen", sans-serif;
  letter-spacing: 2.5px;
  font-size: 17px;
  height: 53px;
  width: 100%;
  margin-right: 0px;
}

.submit:hover {
  background-color: black;
}

.work.contact {
  font-size: 36px;
  letter-spacing: 6px;

}

.container {
  margin-top: 50px;
  display: grid;
  text-align: left;
  min-width: 400px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

form {
  margin-top: 20px;
  margin-bottom: 20px;
}

input,
textarea {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  border: 2px solid black;
  font-style: italic;
  font-size: 14px;
  width: 100%;
  margin: 5px 0px;
  height: 60px;
  padding-left: 25px;
  outline: none;
  color: rgb(80, 80, 80);
}

.contactinfo {
  margin-top: 10px;
}

textarea {
  resize: none;
  padding-top: 15px;
  height: 120px;
}

input:user-invalid,
textarea:user-invalid {
  border: 2px solid rgb(255, 56, 56);
  background-color: rgb(255, 188, 188);

}

.history {
  padding-bottom: 50px;
}

@media only screen and (max-width: 600px) {
  .section {
    grid-template-columns: 1fr;
    gap: 20px 0px;
  }
  .sections {
    min-width: 300px;
  }

  .container {
    min-width: 300px;
  }
}