:root {
  --light-blue: #ccebed;
  --my-blue: #87ceeb;
  --dark-blue: #00044a;

  --gold-contrast: #d1a309;

  --text-grey: #222222;
  --text-white: #f0f0f0;

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

}

html {
  font-size: 12px;
}

html,
body {
  min-height: 100vh;

  font-family: Arial, sans-serif;
  font-size: 1.2em;

  background-color: var(--light-blue);
  color: var(--text-grey);

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Loading name */
.name {
  height: 100vh;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--dark-blue);
}

.name h1 {
  font-family: "Consolas", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
  font-size: 1.2em;
  font-weight: 900;
  margin-top: 50vh;
}

.typing-container {
  display: flex;
  justify-content: center;
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid black;
  text-align: center;
  animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.scroll {
  text-align: center;
  font-size: 0.8em;
  margin-top: auto;
  margin-bottom: 10vh;
}

.scroll p {
  font-size: 2em;
  animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Navigation menu */
.navigation {
  width: 100%;
  font-size: 1em;
}

nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  list-style: none;
  background-color: var(--dark-blue);
  width: 100%;
}

nav ul li {
  text-decoration: none;
  width: 100%;
  transition: all 0.3s ease-in-out;
  list-style: none;
}

nav ul li a {
  display: block;
  color: var(--my-blue);
  padding: 10px 0;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid var(--text-white);
}

nav ul li:last-child {
  border-bottom: none;
}

/* Section Header */
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--gold-contrast);
  color: var(--text-grey);

  padding: 15px 20px;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;

  width: 100%;
}

.heading h2 {
  margin: 0;
}

.back-to-menu {
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--dark-blue);
  color: var(--text-white);

  width: 32px;
  height: 32px;

  padding: auto;
  border-radius: 10px;
  text-decoration: none;

  font-size: 1.2em;
}

.inline-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  gap: 20px;
  padding: 2%;
  margin: 2% 2%;
  margin-top: 0;
}

.full-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background-color: var(--my-blue);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--dark-blue);
  border-radius: 10px;

  padding: 2%;
  margin: 5% 5%;
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 !important;
  padding: 0 !important;
}

.projects-grid h3 {
  display: inline-block;
  margin: 1% 1%;
  margin-top: 3%;
  margin-bottom: 0%;
  padding: 2%;
  width: auto;
  font-weight: 900;
  border: 3px solid var(--text-white);
}

.project-card {
  width: 100%;

  background-color: var(--dark-blue);
  color: var(--text-white);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;

  scroll-snap-align: start;
  margin: 0 auto;
}

.project-card h4 {
  padding: 10px;
}

.project-card img {
  max-width: 80%;
  border-radius: 10px;
}

.project-button {
  display: block;

  background: var(--light-blue);
  color: var(--text-grey);
  box-shadow: 0px 2px 4px var(--my-blue);
  text-decoration: none;

  padding: 10px 20px;
  margin: 2% 20%;

  border-radius: 10px;
  font-weight: bold;
}

/* Contact Me Section */
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 2vh;
  max-height: 80vh;
  border: none;
  border-radius: 0px;
  margin: 0% auto;
}

.inline-container-contact {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 20vw;
  margin: auto;
}

.social-button {
  display: block;

  background: var(--light-blue);
  color: var(--text-grey);
  box-shadow: 0px 2px 4px var(--my-blue);
  text-decoration: none;

  padding: 5px 10px;
  margin: 5% 10%;

  border-radius: 10px;
  font-weight: bold;
}

.social-media svg {
  width: 20vw;
  height: 10vh;
}

/* Footer */
footer {
  background-color: var(--dark-blue);

  display: flex;
  justify-content: center;
  width: 100%;

  padding: 0.25%;

  border-top: 3px solid var(--light-blue);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

footer,
footer a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: lighter;
  font-size: 0.8em;
}

footer a:hover {
  text-decoration: underline;
  color: var(--gold-contrast);
}

address {
  text-align: center;
  padding: 0.3em;
}

address::first-line {
  font-size: 1em;
  font-weight: bold;
}

/* Responsive Design!*/
/* Tablets */
@media screen and (min-width: 768px) {
  .name h1 {
    margin-top: 45vh;
    font-size: 2em;
  }

  .scroll {
    font-size: 1em;
  }
  
  .scroll p {
    font-size: 2.5em;
  }
  
  .back-to-menu {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
  }

  .inline-container {
    flex-wrap: wrap;
    margin: auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .full-container {
    justify-content: center;
    flex: 1;
  }

  .projects-grid {
    flex-direction: row;
    gap: 20px;
    padding-bottom: 10px;
    align-items: stretch;
  }

  .project-card {
    flex: 0 0 auto;
    max-width: 40vw;
    max-height: 40vh;
  }

  .project-card h4 {
    font-size: 1em;
  }

  .project-card img {
    max-height: 20vh;
    max-width: 80%;
  }

  .project-card a {
    font-size: 0.75em;
  }

  .social-media .inline-container {
    align-items: center;
    text-align: center;
    justify-content: center;    
  }
}

/* Laptops */
@media screen and (min-width: 1024px) {
  .name h1 {
    font-size: 3em;
    margin-top: 40vh;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    padding: 1%;
    gap: 5vw;
  }

  nav ul li {
    transition: all 0.3s ease-in-out;
  }

  nav ul li a {
    margin: auto 10px;
    border-bottom: none;
    transition: all 0.3s ease-in-out;
  }

  nav ul li a:hover {
    background-color: var(--my-blue);
    color: var(--text-grey);
    font-weight: bold;
    transform: scale(1.1);
    border-radius: 5px;
    padding: 7px;
  }

  .back-to-menu {
    width: 48px;
    height: 48px;
    font-size: 1.6em;
  }

  .projects-grid {
    gap: 40px;
    padding-bottom: 15px;
  }

  .project-card h4 {
    font-size: 1.25em;
  }

  .project-card img {
    max-height: 25vh;
    max-width: 90%;
  }

  .project-card a {
    font-size: 0.9em;
  }

  .project-button:hover {
    background: var(--gold-contrast);
    transform: scale(1.05);
  }
}

/* Desktops */
@media screen and (min-width: 1280px) {
  main {
    margin: 0 auto;
  }
}
