@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  border: 0;
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;

  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial;

  scrollbar-width: auto;
  scrollbar-color: #d53a9d #151417;
  color: #c8c8c8;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: #151417;
}

*::-webkit-scrollbar-thumb {
  background-color: #d53a9d;
  border-radius: 10px;
  border: 10px solid #d53a9d;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background-color: #0c0a09;
}

header {
  height: 80px;
  background-color: #050505;
  color: #ffffff;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 50px;
}

header h1 {
  color: #d53a9d;
  font-size: 1.75rem;
}

nav ul li {
  list-style: none;
}

a {
  all: unset;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

a:hover {
  background-color: #171717;
}

 a:focus {
  background-color: #171717;
}


.btn {
  width: 40px;
  height: 40px;

  color: #ffffff;
  background-color: #171717;
  cursor: pointer;
  border-radius: 8px;

  border: 1px solid transparent;
  margin-right: 10px;
}

.btn:hover {
  background-color: #d53a9d;
}

.btn:focus {
  border-color: #d53a9d;
}

.btn:disabled {
  background-color: #050505;
  cursor: not-allowed;
}

.parallax {
  width: 100%;
  height: 500px;
  background-image: url('../images/rmspace.png');

  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;

  margin-bottom: 15px;
}

.container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

form label {
  display: block;
  color: #c8c8c8;
  padding: 10px 0;
}

form > label:first-child {
  text-align: center;
}

form input {
  background-color: #171717;
  width: 600px;
  height: 56px;
  color: #c8c8c8;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #171717;
  margin-right: 5px;
}

form input:focus {
  border-color: #d53a9d;
}

form select {
  background-color: #171717;
  padding: 5px !important;
  font-size: 0.875rem	;
  line-height: 1;
  border: 0;
  border-radius: 6px;
  height: 42px;
  width: 200px;
}

.input-wrapper {
  display: flex;
  align-items: center;
}

.select-group {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.select-group select {
  display: inline-block;
}

form .btn {
  width: 56px;
  height: 56px;
  border: 1px solid #d53a9d;
  border-radius: 8px;
  background-color: #d53a9d;
}
form .btn:hover {
  background-color: #aa307e;
  border-color: #aa307e;
}

form .btn:focus {
  background-color: #aa307e;
  border-color: #d53a9d;
}

form {
  margin-bottom: 20px;
}

.cards {
  display: grid;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

.card {
  width: 240px;
  height: auto;
  padding-bottom: 20px;
  word-wrap: break-word;

  background-color: #171717;

  border-radius: 8px;
  border: 1px solid transparent;
}

.card figure img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.card figure .stats {
  position: relative;
}

.card figure .stats span {
  background-color: #d53a9d;
  opacity: 0.8;
  padding: 8px;
  border-radius: 8px;
  

  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.875rem;
  color: #ffffff;
}

.card .content {
  padding: 10px;
}

.card .content p {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card .content span {
  color: #c5c5c5;
  display: block;
}

.pagination {
  margin: 30px 0;
  display: flex;
}

.pagination .btn {
  font-size: 1.1rem;
}

#error {
  color: #d53a9d;
  width: 100%;
  text-align: center;
  font-size: 1.75rem;
  padding: 50px 0;
  height: 100px;
}

.hidden {
  display: none;
}

footer {
  width: 100%;
  height: auto;
  background-color: #050505;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 20px;
}

footer div {
  display: flex;
  flex-direction: row;
}

footer span {
  display: inline-block;
  margin: 20px;
}

 footer a {
  color: #d53a9d;
  /* padding: 0.2em; */
} 


.loader {
  border: 10px solid #171717; 
  border-top: 10px solid #d53a9d; 
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
}

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

@media (max-width: 1280px) {
  .container form input {
    width: 400px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    width: 200px;
  }

  .card figure img {
    width: 200px;
    height: 200px;
  }

  .parallax {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .container form input {
    width: 300px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    width: 200px;
  }

  .card figure img {
    width: 200px;
    height: 200px;
  }

  footer {
    flex-direction: column;
  }

  footer div {
    flex-direction: column;
  }

  .parallax {
    background-attachment: scroll;
    height: 300px;
  }

  form select {
    width: 180px;
  }

  header {
    padding: 20px;
  }
}

@media (max-width: 450px) {
  .container form input {
    width: 220px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    width: 150px;
  }

  .card figure img {
    width: 150px;
    height: 150px;
  }

  footer {
    flex-direction: column;
  }

  form select {
    width: 130px;
  }

  .parallax {
    background-attachment: scroll;
    height: 200px;
  }

  #error {
    margin-bottom: 50px;
  }
}
