html {
  height: 100%;
}

body {
  background-color: white;
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

main {
  padding: 0 20px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-title {
  display: flex;
  justify-content: center;
  font-family: sans-serif;
  font-size: 48px;
}

/* CSS for navigation bar */

.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  max-height: 7%;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;

  background-color: #0492c2;
  color: white;
  padding: 0px 0px;

  /* Debug border */
  /* border: solid red; */
}

.nav-list {
  display: flex;
  flex-direction: row;
  position: relative;
  right: 30px;
  list-style: none;
}

.navbar a {
  color: white;
  font-weight: bold;
  margin: 0 12px;
  text-decoration: none;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 8px;
}

.navbar li a::after {
  display: block;
  position: absolute;
  content: "";
  border-bottom: solid 5px #035d7a;
  border-radius: 6px;
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
  left: 0;
  bottom: 0;
  width: 100%;
}

.navbar li a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.logo a {
  padding: 10px 10px;
}
.logo a:hover {
  background-color: #035d7a;
}

/* CSS for page footer */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0492c2;
  color: white;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;
}

/* CSS for about page */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0px;
  max-width: 1200px;
}

.about-image img {
  max-width: 400px;
  height: auto;
  flex: 1;
}

.about-text {
  flex: 1;
  margin-left: 6%;
  border: 4px solid gold;
  border-radius: 4px;
  padding: 5px 20px;
  position: relative;
  max-width: 400px;
}

.about-text #strawhat {
  position: absolute;
  width: 100px;
  height: auto;
  margin-top: -50px;
  margin-left: -60px;
  object-fit: cover;
}

.about-text #imbibitor {
  position: absolute;
  width: 100px;
  height: auto;
  margin-top: -60px;
  margin-left: 330px;
  object-fit: cover;
}

.about-text p {
  font-size: 22px;
}
.about-text ul li {
  font-size: 22px;
  margin-top: 5px;
}

/* CSS for Resume */
.resume {
  width: 60%;
  background-color: #c8e7f1;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume section ul li {
  margin-top: 10px;
  margin-left: 20px;
}

.resume-download {
  background-color: #0383d8;
  border: none;
  color: white;
  padding: 5px 7px;
  font-size: 16px;
  text-align: center;
  width: 150px;
  height: auto;
}

.resume-download:hover {
  background-color: #3eb2ff;
}

/* CSS For Contact */
#contact-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 28px;
  text-align: center;
  width: 500px;
}

#contact-form p {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 10px;
}

#contact-form label {
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin: 0, auto;
  resize: none;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #005c7a;
  border-radius: 6px;
}

input[type="submit"] {
  background-color: #0383d8;
  border: none;
  color: white;
  padding: 5px 7px;
  font-size: 16px;
  text-align: center;
  width: 100px;
  height: 25px;
}
input[type="submit"]:hover {
  background-color: #3eb2ff;
}

/* CSS for Portfolio */

.project img {
  max-width: 800px;
  height: auto;
}

.project-details {
  text-align: center;
  font-size: 20px;
}

#learn {
  background-color: #0383d8;
  border: none;
  color: white;
  padding: 5px 7px;
  font-size: 16px;
  text-align: center;
  width: 100px;
  height: 25px;
}

#learn:hover {
  background-color: #3eb2ff;
}
