@import url("https://fonts.googleapis.com/css2?family=Oxanium&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body,
html {
  font-size: 16px;
  font-family: "Oxanium", cursive;
  scroll-behavior: smooth;
  color: #eee;
  padding: 0;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}
.container-box {
  width: 85%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
}

nav .container-box {
  flex-direction: row;
  width: 85vw;
  justify-content: space-around;
}
.main-nav,
nav .container-box {
  display: flex;
  align-items: center;
}
.main-nav {
  top: 0;
  z-index: 99999999;
  position: fixed;
  width: 100%;
  background: #1a518b;
  text-align: center;
  padding: 5px;
}
.main-nav p {
  font-family: "Roboto", cursive;
  color: #fff;
}
.main-nav ul {
  display: flex;
  justify-content: start;
}
.main-nav ul li {
  list-style-type: none;
  margin: 5px;
}
.main-nav ul li a {
  text-decoration: none;
  padding: 5px;
  color: #fff;
  font-size: 1.1rem;
  box-sizing: border-box;
  border: 2px solid #1a518b;
  border-radius: 5px;
  transition: all 0.2s;
}
.main-nav ul li a:hover {
  border: 2px solid gold;
  color: gold;
}

#about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Overlay  */

#about-me > * {
  position: relative;
  z-index: 5;
}

#about-me::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.65);
}

.about-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #101010;
  padding: 20px;
  border-radius: 10px;
  margin-top: 3rem;
}

.me-list {
  font-size: 1.5rem;
}

.image {
  margin: 2rem;
}

#logo {
  text-align: left;
  flex-grow: 1;
  font-size: 2rem;
}

#showcase {
  z-index: 0;
  background-image: url("../images/matrix.jpg");
  background-size: cover;
  position: relative;
  flex-direction: column;
}
#showcase h1 {
  letter-spacing: 1.2px;
  color: #fff;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.content img {
  width: 17rem;
  border-radius: 100%;
}

#skill-list {
  display: flex;
  flex-direction: row;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 25px;
}

#skill-list div {
  width: 30%;
  text-align: center;
  margin: 1rem;
}
#skill-list img {
  width: 25vh;
  padding: 1rem 0;
}

#projects h3 {
  padding: 20px;
}
#project-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
#project-list .project {
  width: 20vw;
  background: #287eff;
  border-radius: 5px;
  margin: 1rem;
  padding: 15px;
}

#project-list a {
  text-decoration: none;
}

#project-list .project h3 a {
  color: gold;
  font-size: 2rem;
}

#project-list .project a.gold {
  color: gold;
  font-size: 1.5rem;
}

#contact {
  display: flex;
  position: relative;
  background-image: url("../images/Optimized-code-pic2.jpg");
  background-size: cover;
  flex-direction: column;
  color: #fff;
}

/* overlay 2 */

#contact > * {
  position: relative;
  z-index: 5;
}

#contact::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

footer {
  background: #1a518b;
  text-align: center;
  padding: 2px;
  z-index: 999;
}

footer .container-box {
  flex-direction: row;
}

footer a {
  color: beige;
  text-decoration: none;
}

.footer-link:hover {
  color: gold;
  text-decoration: underline;
}

#about-me,
#projects,
#skills {
  padding: 50px 0;
}
.fa-plus-circle {
  padding: 2px;
}
.gold {
  color: gold;
}

.topButton {
  text-decoration: none;
  color: #000;
}

.contact-p {
  margin: 2rem auto;
  font-size: 1.2rem;
}

form {
  text-align: left;
  width: 400px;
  margin: 0 auto;
  padding: 40px;
  background-color: #101010;
  border-radius: 10px;
}

.f-group {
  margin-bottom: 2rem;
}

input[type="text"],
input[type="email"],
textarea {
  margin: 5px 0;
  padding: 8px 5px;
  font-size: 1rem;
  border: none;
  width: 100%;
  border-radius: 3px;
}

.button-send-wrapper {
  text-align: center;
}

.btn-send-message {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  text-transform: uppercase;
  font-family: "Roboto";
  background-color: #1a518b;
  color: #eee;
}

.btn-send-message:hover {
  background-color: #06386d;
}

.more-links {
  margin: 3rem auto;
}

.more-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 1rem;
  background-color: #151515;
  padding: 10px 20px;
  border-radius: 5px;
}

.more-links a:hover {
  background-color: #202020;
}

/* Helper classes */

.hidden {
  display: none;
}
.text-center {
  text-align: center;
}
.showDropDown {
  transition: all 0.2s;
  height: 8.8em;
}
.hideDropDown {
  transition: all 0.2s;
  height: 0;
}
#project-list h3 .underline:hover {
  text-decoration: underline;
}
#project-list .project a.gold:hover {
  text-decoration: underline;
}

.alert {
  top: 15vh;
  left: 40vw;
  right: 40vw;
  position: fixed;
  padding: 15px;
  border-radius: 5px;
  margin: 1rem auto;
}

.alert.danger {
  background: red;
}

.alert.success {
  background-color: green;
}

.alert p {
  text-align: center;
  font-size: 1rem;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin: 1rem auto;
}

.cookie-fixed {
  position: fixed;
  z-index: 10000;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 55px;
}

.cookie-fixed h3 {
  font-size: 1.3rem;
  margin: 1rem;
}

.cookie-fixed p {
  font-size: 1rem;
  margin: 1rem;
}

.cookie-fixed button {
  margin: 1rem;
  padding: 10px 20px;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  background-color: steelblue;
  color: white;
  font-weight: bold;
}

.cookie-fixed button:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Keyframes  */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  html {
    background: #101010;
    color: #ddd;
  }
}

/* Media Querys */

@media (min-width: 2560px) {
  body {
    font-size: x-large;
  }
  #about-me {
    padding-top: 16rem;
  }
}
@media (max-width: 768px) {
  #about-me,
  #projects,
  #skills {
    padding-top: 50px;
  }

  .about-wrapper {
    flex-direction: column;
  }

  #logo {
    display: none;
  }

  .navigation-items {
    padding: 10px;
  }

  .alert {
    left: 20vw;
    right: 20vw;
  }

  #about-me {
    padding-top: 30px;
  }

  #showcase .content img {
    width: 15rem;
  }

  #skill-list {
    flex-wrap: wrap;
    text-align: center;
  }

  #skill-list div {
    width: 100%;
  }

  #project-list .project {
    width: 90%;
  }

  #contact-form {
    padding: 20px;
    width: 80vw;
  }
}

@media (max-width: 320px) {
  #contact-form {
    width: 90vw;
  }
}

@media (prefers-color-scheme: light) {
  #skill-list,
  #skills,
  #projects {
    color: #222;
  }
}
