@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --dark-theme: #0d1117;
  --dark-border: gray;
  --dark-shadow: #0d1117;
  --dark-color: #fff;
}

body.dark {
  background: #0d1117;
}

body,
ul,
li,
a {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: black;
  text-decoration: none;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body.dark p,
  body.dark label,
  body.dark a {
    color: var(--dark-color);
  }

  body.dark .mail-container {
    border-color: var(--dark-color);
  }
}

.Logo {
  height: 7vh;
}

.nav-bar {
  display: flex;
}

.nav-elements {
  display: flex;
  align-items: center;
  margin-left: 4vh;
  flex: 1;
  z-index: 999;
}

.nav-elements p {
  display: flex;
  flex-direction: column;
  font-family: "Jost";
}

.nav-elements a {
  transition: 0.2s all;
}

.nav-elements a:hover {
  color: gray;
  transition: 0.2s all;
}

.nav-elements li {
  margin-right: 10vh;
  list-style: none;
  font-family: "Jost";
  font-weight: 470;
}

.mode-toggle {
  height: 3vh;
  transition: 0.2s all;
}

.mode-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
  margin-right: 2vh;
}

/* UPPER PART IS OVER */

.mail-container {
  border: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
  width: 29%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  margin-top: 10%;
  margin: 10% auto;
  padding: 10%;
  border-radius: 2em;
}

.contact-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 2rem;
  font-family: "Jost";
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: "Jost";
}

.message-text {
  width: 90%;
}

.contact-form button {
  background-color: white;
  color: black;
  border: 1px solid black;
  padding: 0.75rem;
  border-radius: 1em;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Jost";
}

.contact-form button:hover {
  background-color: gray;
  color: white;
}

.name-input {
  margin-left: 1%;
}

.footer {
  background-color: #222;
  color: white;
  padding: 20px 10px;
  text-align: center;
  font-family: "Jost";
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: 0.2s all;
}

.footer-links a:hover {
  transform: scale(1.1);
  transition: 0.2s all;
}

/* Responsive */
@media (min-width: 600px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav-elements {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 100%;
    position: absolute;
    top: 8vh;
    left: 0;
    border-top: 1px solid #f5f5f5;
    padding: 1rem 0;
  }

  .nav-elements.active {
    display: flex;
    max-width: 90vw;
  }

  .menu-toggle {
    display: block;
  }

  body.dark .menu-toggle {
    color: var(--dark-color);
  }

  body.dark label {
    color: var(--dark-color);
  }

  body.dark .mail-container {
    border-color: var(--dark-color);
  }

  .nav-elements li {
    margin: 1rem 0;
    margin-left: 0;
  }

  .mail-container {
    width: 65%;
  }

  .mail-container .name-input {
    position: relative;
    right: 1%;
    width: 179px;
  }
}
