* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0px;
}

@font-face {
  font-family: "Jumps Winter";
  src: url("../fonts/JumpsWinter.woff2") format("woff2"),
    url("../fonts/JumpsWinter.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Luckywish";
  src: url("../fonts/Luckywish.woff2") format("woff2"),
    url("../fonts/Luckywish.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson";
  src: url("../fonts/AtkinsonHyperlegibleNextVF-Variable.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #fffcf6;
  font-family: "Atkinson", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

img {
  width: 100%;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

header {
  margin-top: 0.5em;
}

main {
  padding: 30px;
  margin-bottom: 6em;
}

main {
  margin-bottom: 5vw;
}
footer {
  background-color: #375f30;
  color: white;
  font-family: "Jumps Winter", sans-serif;
  padding: 2em;
  margin-top: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

section {
  display: flex;
  flex-direction: column;
}

#resume section {
  display: block;
}

#resume,
#about {
  margin-top: 40px;
}

#about h2,
#resume h2 {
  margin-top: 2em;
}

#cc-logo {
  padding: 0px 3em;
  margin-top: 0;
  background-image: radial-gradient(
    circle,
    #7db38130 -30%,
    rgba(255, 255, 255, 0) 50%
  );
}

#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero p:first-of-type {
  font-size: 1.2em;
  font-weight: 400;
  font-family: "Atkinson", sans-serif;
  margin-top: 1.5em;
}

#resume,
#about {
  margin-top: 40px;
}

#reflection,
#outcomes > h2 {
  margin-bottom: 0.5em;
}

#outcomes img {
  width: 50%;
  margin-bottom: 2em;
}
.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  z-index: 99;
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  background-color: #375f30;
  border: 2px solid #23581c;
  margin: 0px auto 15px auto;
  color: white;
  padding: 1em;
  border-radius: 25px;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.22);
}

h1 {
  font-family: "Jumps Winter", sans-serif;
  font-weight: bold;
  font-size: 3em;
  line-height: 90%;
  text-align: center;
  margin: 0.5em auto 0.3em;
  color: #375f30;
}

h2 {
  font-family: "Jumps Winter", sans-serif;
  color: #375f30;
  font-size: 2.2em;
  text-align: center;
}
.project .info h2 {
  font-family: "Atkinson";
  color: black;
  font-size: 24px;
}
h3 {
  font-size: 24px;
  text-align: center;
}

.header-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #fffcf6;
  top: 0px;
  padding: 20px 30px 20px 30px;
  z-index: 98;
  position: sticky;
  align-items: center;
}

nav {
  font-family: "Jumps Winter", sans-serif;
  margin-top: 10px;
  display: none;
  grid-area: 2 / 1 /2 / span 2;
}

nav * {
  display: block;
  padding: 14px;
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
}

nav *:hover {
  font-size: 1.5em;
  font-weight: bolder;
  color: #be79b4;
}

nav > a {
  color: #375f30;
}
footer a:hover {
  font-size: 1.2em;
  font-weight: bolder;
}
iframe {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  width: 100%;
  height: 400px;
}

.bottom_logo {
  color: white;
  padding: 14px;
  font-size: 1.4em;
  font-family: "Jumps Winter", sans-serif;
  font-weight: bold;
}

.bottom_logo:hover {
  font-size: 1.6em;
}

.wordmark {
  margin: 0;
  font-family: "Jumps Winter", sans-serif;
  font-weight: bold;
  font-size: 2.4em;
  color: #375f30;
}

.wordmark:hover {
  font-weight: bold;
  font-size: 2.6em;
  color:#be79b4;
}

.card_grid {
  display: block;
}

.small-grid {
  display: block;
}

.logo {
  width: 70%;
  max-width: 400px;
  align-self: center;
}

.logo:hover {
  cursor: pointer;
}

.logo.animate {
  animation: bounce 1.4s ease-in-out;
}

/* base css for .card gotten from [https://uiverse.io/SteveBloX/dangerous-warthog-85](https://uiverse.io/SteveBloX/dangerous-warthog-85)  */
.small-grid p,
.card {
  height: auto;
  background-color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(#a6da9e38, rgba(255, 255, 255, 0.58) 110%);
  border: 2px white solid;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.22);
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: black;
  margin: 40px 0px;
  padding: 20px;
}

.small-grid p {
  margin: 20px 0px;
  background: linear-gradient(#a6da9e38, rgba(255, 255, 255, 0.58) 110%);
  box-shadow: none;
  border: 2px #a6da9e solid;
  cursor: default;
}
.topmargin {
  margin-top: 2em;
}
.card:hover {
  border: 2px solid #375f30;
  background-color: #2d962321;
  transform: scale(1.05);
}

.card:active {
  transform: scale(0.95);
}

.card img {
  margin: 1em 0;
  width: 50%;
}

.card ul {
  padding: 0;
  margin: 0;
}

.card ul li,
.skills li,
.tools li {
  list-style: none;
  display: inline-block;
  border: 1px solid;
  padding: 0.5em;
  border-radius: 25px;
  font-size: 0.8em;
  margin-bottom: 1em;
}

.card p {
  margin-top: 0;
}

.tools {
  margin-top: -10px;
}

.skills {
  margin: 0px;
}

.skills li,
.tools li {
  font-size: 1em;
}

.skills,
.tools {
  padding: 0;
  text-align: center;
}

div:has(> .skills) {
  margin-top: 0.5em;
}

.about_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about_content img {
  width: 50%;
  max-width: 400px;
  border-radius: 50%;
  align-self: center;
}

.about_content h3 {
  color: #375f30;
  text-align: center;
  font-weight: bold;
  margin: 1.5em 0px 0.5em 0px;
}

.workex {
  margin: 1em 0;
}

.workex * {
  margin: 0.5em 0;
}

hr {
  margin: 4em 0px;
}

.resumebutton {
  padding: 1em;
  border-radius: 50px;
  color: white;
  font-weight: bold;
  background-color: #294724;
  border: 2px solid #243f1e;
  margin: 10px auto 30px auto;
  transition: all 0.5s;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.22);
}

.resumebutton:hover {
  transform: scale(1.05);
}

.resumebutton:active {
  transform: scale(0.95);
}

.scroll-to-top {
  padding: 10px;
  color: white;
  background-color: #294724;
  border: 2px solid #243f1e;
  border-radius: 100%;
  align-items: center;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.22);
  z-index: 99;
  position: fixed;
  bottom: 80px;
  right: 20px;
  transition: all 0.5s;
}

.scroll-to-top:hover {
  transform: scale(1.05);
}

.scroll-to-top:hover {
  transform: scale(1.05);
}

.dark-mode-button {
  padding: 10px;
  color: white;
  background-color: #294724;
  border: 2px solid #243f1e;
  border-radius: 100%;
  align-items: center;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.22);
  z-index: 99;
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: all 0.5s;
}

.dark-mode-button:hover {
  transform: scale(1.05);
}

.dark-mode-button:active {
  transform: scale(0.95);
}

.left-align {
  text-align: center;
}

.right-align {
  text-align: center;
}

.socials {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.socials a {
  padding: 14px;
  color: white;
}

.project img {
  margin-top: 2em;
}

.project .img2 {
  margin: 2em auto;
}

.project h2 {
  margin: 0;
}

.project-info p {
  text-align: center;
}

.project-info h3 {
  font-size: 1.5em;
}

.info h3 {
  font-size: 1.3em;
}

.project-info h3 {
  font-size: 1em;
}
.callout {
  display: grid;
  align-items: center;
  text-align: center;
  padding: 7%;
  font-size: 1.3em;
  margin: 1.5em 0px;
  background: linear-gradient(#a6da9e38, rgba(255, 255, 255, 0.58) 110%);
  box-shadow: none;
  border: 2px #a6da9e solid;
  border-radius: 25px;
}
.callout img {
  width: 100px;
  margin: auto;
}
/* from w3schools [https://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery_responsive_js](https://www.w3schools.com/css/tryit.asp?filename=trycss_image_gallery_responsive_js) */
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content,
#caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.clickable {
  cursor: pointer;
}

/* code for wrapper/line menu modified from [https://codepen.io/JoseRosario/pen/BWqMwK](https://codepen.io/JoseRosario/pen/BWqMwK) */
.wrapper-menu {
  width: 50px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  justify-self: end;
  cursor: pointer;
  transition: scale 0.5s;
  transition: transform 330ms ease-out;
  border: none;
  background: none;
}

.wrapper-menu:hover {
  transform: scale(1.05);
}

.wrapper-menu:active {
  transform: scale(0.95);
}

.wrapper-menu.open {
  transform: rotate(-45deg);
}

.line-menu {
  background-color: #375f30;
  border-radius: 8px;
  width: 100%;
  height: 5px;
}

.line-menu.half {
  width: 50%;
}

.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}

.open .line-menu.start {
  transform: rotate(-90deg) translateX(12px);
}

.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}

.open .line-menu.end {
  transform: rotate(-90deg) translateX(-12px);
}
ol li {
  margin: 1em 0px;
}
.three-group {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.three-group li {
  display: grid;
  width: 60vw;
  height: 60vw;
  list-style: none;
  padding: 2em;
  font-weight: bold;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin: 1em auto;
  background: linear-gradient(#a6da9e38, rgba(255, 255, 255, 0.58) 110%);
  box-shadow: none;
  border: 2px #a6da9e solid;
  border-radius: 50%;
}
.socials {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.caption {
  text-align: center;
}
.socials a {
  padding: 14px;
  color: white;
}
.dark-mode {
  background-color: #14161f;
  color: #f7f2f2;
}
.dark-mode #project-hero h2 {
  color: #f7f2f2;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode .about_content h3 {
  color: #48b843;
}

.dark-mode .header-menu,
.dark-mode .wordmark {
  background-color: #14161f;
  color: #48b843;
}

.dark-font {
  color: #14161f;
}

.dark-mode .line-menu {
  background-color: #48b843;
}

.dark-mode footer,
.dark-mode .bottom_logo,
.dark-mode .socials a {
  background-color: rgb(72 173 70);
  color: black;
}

.dark-mode .header-menu nav a {
  background-color: #14161f;
  color: #48b843;
}

.dark-mode .header-menu nav a:hover,
.dark-mode .wordmark:hover {
  background-color: #14161f;
  color: #be79b4;
}

.dark-mode .card {
  background-color: #15642040;
  background: linear-gradient(#15642050, #051f038f 100%);
  border: 3px solid #0e250b;
  color: #f7f2f2;
}

.dark-mode .small-grid p,
.dark-mode .callout {
  background: linear-gradient(#15642050, #051f038f 110%);
  border: 2px #0e250b solid;
  color: white;
}

.dark-mode button {
  background-color: #375f30;
  border: 3px solid #1e4b18;
}

.dark-mode .card:hover {
  border: 2px solid #07380a;
  background-color: #15642070;
  transform: scale(1.05);
}

/* Add Animation */
@-webkit-keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes zoom {
  from {
    transform: scale(0.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-30px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@media screen and (min-width: 576px) {
  h1 {
    font-size: 5em;
  }
  .project img {
    display: block;
    width: 70%;
    margin: 2em auto;
  }
  .callout img {
    width: 100px;
    margin: auto;
  }
  .project h1 {
    font-size: 4em;
  }
  .intro {
    display: block;
    margin: 0 auto;
  }

  .skills {
    text-align: left;
  }
  .project-info div {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 5px;
  }
  .small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin: 2em 0px;
  }
  .small-grid p {
    margin: 0;
  }
  .three-group {
    flex-direction: row;
  }
  .three-group li {
    width: 28vw;
    height: 28vw;
  }
}

@media screen and (min-width: 768px) {
  .card_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .three-group li {
    width: 22vw;
    height: 22vw;
  }
  .card {
    margin: 0px;
  }
  #hero {
    text-align: center;
  }
  footer {
    padding: 1vw 5vw;
  }
  main,
  header {
    margin: 0vw 5vw;
  }
  iframe {
    height: 500px;
  }
  .twogrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
  }

  .twogrid hr {
    display: none;
  }
  footer {
    flex-direction: row;
  }
  .socials {
    display: block;
  }
  .wrapper-menu {
    display: none;
  }

  nav {
    display: block;
    justify-self: end;
    grid-area: 1 / 2 / 1 / 2;
  }
  nav a {
    display: inline;
    width: auto;
  }
  .project section h2 {
    grid-area: 1 / 1 / 1 / 2 span;
  }
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
  }
  .grid-left div {
    grid-area: 1 / 2/1/2;
  }
  .info * {
    text-align: center;
  }
  #reflection,
  #outcomes > h2 {
    margin-bottom: 0.5em;
  }
  .project-info h3,
  .project-info p {
    margin: 0.5em;
  }
  .project-info {
    margin-top: 2em;
  }
  .info {
    display: flex;
    gap: 2em;
    align-items: center;
  }
  .info img {
    width: 50%;
  }
  .callout {
    display: grid;
    grid-template-columns: 0.15fr 0.85fr;
    gap: 2em;
    align-items: center;
    text-align: left;
    padding: 7%;
    font-size: 1.3em;
    margin: 2em 0px;
    background: linear-gradient(#a6da9e38, rgba(255, 255, 255, 0.58) 110%);
    box-shadow: none;
    border: 2px #a6da9e solid;
    border-radius: 25px;
  }
  .callout img {
    max-width: 100px;
    margin: auto;
  }
}

@media screen and (min-width: 992px) {
  .card_grid {
    gap: 40px;
  }
  footer {
    padding: 1vw 10vw;
  }
  .left-align {
    text-align: left;
  }
  .right-align {
    text-align: right;
  }
  main,
  header {
    margin: 0vw 10vw;
  }
  * {
    font-size: 16px;
  }
  .three-group li {
    width: 20vw;
    height: 20vw;
  }
  #hero {
    height: 83vh;
    margin: 0px 3vw;
    text-align: left;
    flex-direction: row;
    align-items: center;
  }
  h1 {
    text-align: left;
  }
  iframe {
    height: 550px;
  }
  .small-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1em;
  }
  .callout {
    padding: 4%;
  }
  .callout em {
    font-size: 1.2em;
  }
}

@media screen and (min-width: 1200px) {
  .about_content {
    flex-direction: row;
    gap: 4em;
  }
  iframe {
    height: 600px;
  }
  div:has(> .skills) {
    margin-top: 0px;
  }
  .skills li {
    margin-bottom: 0.5em;
  }
  .about_content h3 {
    text-align: left;
  }
  .about_content img {
    text-align: left;
  }
  #hero {
    margin: 0px 7vw;
  }
  #outcomes img {
    width: 50%;
    margin-bottom: 2em;
  }
  .project-info {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .project-info div:nth-child(2) {
    justify-self: right;
  }
  .project-info div:nth-child(4) {
    justify-self: right;
  }
  .tools {
    margin-top: 0px;
  }
  .small-grid {
    gap: 2em;
  }
}

@media screen and (min-width: 1400px) {
  .card_grid {
    gap: 50px;
  }
  footer {
    padding: 1vw 20vw;
  }
  main,
  header {
    margin: 0vw 20vw;
  }
  .three-group li {
    width: 15vw;
    height: 15vw;
  }
  iframe {
    height: 600px;
  }
}

@media screen and (min-width: 1900px) {
  * {
    font-size: 18px;
  }
  footer {
    padding: 1vw 20vw;
  }
  main,
  header {
    margin: 0vw 20vw;
  }
  iframe {
    height: 650px;
  }
  .small-grid {
    margin: 2em 3.5vw;
  }
}
