@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  color: white;
  background-image: linear-gradient(
    to right top,
    #051937,
    #004d7a,
    #008793,
    #00bf72,
    #a8eb12
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 150ch;
  margin: auto;
}

header {
  max-width: 75ch;
  margin: auto;
  padding: 2rem;
}

.title,
.description {
  text-shadow: 2px 2px 5px black;
}

.title {
  text-align: center;
  font-size: 2rem;
}

.description {
  text-align: center;
}

.container-foto-bareng {
  border-style: solid;
  border-radius: 15px;
  background: linear-gradient(
    to right top,
    #a8eb12,
    #00bf72,
    #008793,
    #004d7a,
    #051937
  );
  padding: 20px;
}
.foto-bareng {
  display: block;
  border-radius: 5px;
  max-width: 100%;
  transition: transform 0.2s;
}

.foto-bareng:hover {
  transform: scale(1.03);
}

.form-wrapper {
  text-align: center;
  padding: 2rem;
}

.form-wrapper select,
.form-wrapper input {
  background: #eee;
  border-radius: 0.5rem;
  padding: 1rem 1.2rem;
}

.list-porto-wrapper {
  padding: 2em;
}

.list-porto {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1em;
}

.anak {
  position: relative;
}

.anak a {
  outline: 1px solid #aaa;
  background: rgb(0, 0, 0, 0.1);
  border-radius: 0.2em;
  text-decoration: none;
  padding: 20px;
  transition: background-color 200ms ease;
  position: relative;
  width: 100%;
  display: inline-block;
}

.anak.sudah::before {
  content: "";
  background: rgb(112, 229, 15);
  position: absolute;
  width: 0.5rem;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
}

.list-porto a:hover {
  background: rgb(0, 0, 0, 0.5);
}

footer {
  background: linear-gradient(to bottom, rgb(0, 0, 0, 0), rgb(0, 0, 0));
  padding: 3rem;
  text-align: center;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 800px) {
  #info {
    max-width: 100%;
  }
}
