html {
  height: 100%;
}

body {
  background-color: #f0f0f0;
  position: relative;
  min-height: 100vh;
  padding-top: 60px;
  margin: 0;
  font-family: "Cascadia Code", monospace;
}

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

/* CSS for navigation bar */

.navbar {
  position: -webkit-sticky;
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  top: 0;
  z-index: 1000;

  background-color: #2e2b29;
  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;
}

/* CSS for page footer */

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

input[required] {
  letter-spacing: 2px;
  text-decoration: underline;
}

.navbar a:hover {
  color: rgb(0, 11, 128);
}

/*Home Page*/
.about-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: -20%;
  width: 30%;
}

.about-text {
  width: fit-content;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/*Portfolio Page*/
.project img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  margin-top: -20%;
}

.project2 img,
.project1 img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
}

.project1,
.project2,
.project {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
  text-align: center;
}

#samples {
  display: block;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

/*Contact Form*/

input#name,
textarea[name="message"],
input[id="email"] {
  border-radius: 4px;
}

input[type="submit"] {
  display: flex;
}

#contact-form > label {
  width: 100%;
  display: flex;
  color: maroon;
  text-align: left;
  font-size: 30px;
}

.textarea {
  border-color: red;
}

textarea:focus,
input:focus {
  outline: none;
  box-shadow:
    0 1px 6px rgba(32, 33, 36, 0.28),
    0 4px 12px rgba(32, 33, 36, 0.16);

  animation: colors 4s infinite linear;
}

@keyframes colors {
  0%,
  100% {
    border-color: #4285f4;
  } /* Google Blue */
  25% {
    border-color: #ea4335;
  } /* Google Red */
  50% {
    border-color: #fbbc05;
  } /* Google Yellow */
  75% {
    border-color: #34a853;
  } /* Google Green */
}
