
:root {
  --green: #1e453e;
  --yellow: #ffdfac;
  --white: #f1f1f1;
}

html,
body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--white);
  background-size:100%;
  background-image: url("..//projects/img/output-onlinepngtools-8.png");
  padding-bottom: 3vw;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* navigation */


nav {
  background-color: var(--green);
  padding-top: 2vh;
  padding-bottom: 2vh;
  padding-left: 17vw;
  padding-right: 13vw;
  font-size: larger;
  display: flex;
  flex-direction:row-reverse;
  justify-content: space-between;
  position: sticky;
	top: 0;
  z-index: 69420;

}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
}


/* text */


.bold {
  font-weight: 500;
  color: #1e453e;
  padding: 0 0 10px 0;
  margin: 0;
}

.link {
  color: var(--white);
  text-decoration: none;
}

h1 {
  width: 53vw;
}

#text {
  padding:4vh 23vw 2vh 23vw; 
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.811) 42%, rgba(255,255,255,0) 100%);
}


/* projects */


.list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: center;
}

.list-item {
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.25);
  padding: 1.5vw;
  background-color: #f3f7f4;
  transition: 0.5s;
  animation: fadeIn 0.5s;
  cursor: pointer;
  border-radius: 10px;
  width: 50vw;
}

.list-item:hover {
  transform: scale(1.03);
  box-shadow: 1px 1px 8px #2e9885;
}

.list-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}


/* buttons */


#button {
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: larger;
}

.button {
  background-color: var(--green);
  padding: 10px 15px 10px 15px;
  border-radius: 10px;
  border-width: 0;
}
.button a {
  color: #f1f1f1;
  text-decoration: none;
}

.button:hover{
  background-color: var(--yellow);
  color: #000000;
  padding: 10px 17px 10px 17px;
  border-radius: 10px;
  border-width: 0;
}

.button:hover a{
  background-color: var(--yellow);
  color: #000000;
  text-decoration: none;
}


@media only screen and (max-width: 889px) {
main, #text {
  width: 100vw;
  justify-content: center;
  padding: 0%;
}

  .list-item {
    width: 75vw;
  }
  #name {
    background-color: var(--green);
    color: var(--white);
    width: 100vw;
    text-align: center;
    margin-top: 0%;
    padding: 3vh 0 3vh 0;
  }

  nav {
    display: none;
  }
  #desc {
    width: 75vw;
    margin-left: 12.5vw;
  }
}