@import url('https://fonts.googleapis.com/css2?family=Metal&display=swap');

:root {
  --primary-color: #172661;
  --border-radius: 10px;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--primary-color);
  background-image: url("https://www.transparenttextures.com/patterns/ice-age.png");
  font-family: 'Metal', cursive;
}

h1 {
  color: #f5f5f5;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 275px;
  margin: 20px auto 10px;
  user-select: none;
  text-transform: uppercase;
  text-align: center;
}

h1:hover {
  background: rgba(0, 0, 0, 0.8);
}

.container {
  display: flex;
  direction: row;
  flex-wrap: wrap;
}

.item {
  background-color: rgba(0, 0, 0, 0.5);
  color: #f5f5f5;
  border-radius: var(--border-radius);
  padding: 10px;
  margin: 10px;
}

.item:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

a {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

a:link,
a:visited {
  color: #f5f5f5;
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}

.fa-solid {
  float: right;
  cursor: pointer;
  z-index: 2;

}

.name {
  margin-top: 10px;
  margin-right: 20px;

}

.name img {
  height: 20px;
  width: 20px;
  vertical-align: sub;
  margin-right: 5px;
}

.modal-container {
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.show-modal {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: #f5f5f5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  max-width: 95%;
  width: 500px;
  animation: modalopen 1s;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.close-icon {
  float: right;
  color: #f5f5f5;
  font-size: 24px;
  position: relative;
  top: 13px;
  right: 13px;
  cursor: pointer;
}

.modal-header {
  background: var(--primary-color);
  color: #f5f5f5;
  padding: 15px;
}

h3 {
  margin: 0;
  font-size: 30px;
  text-transform: uppercase;
}

.modal-content {
  padding: 15px;
  background: #f5f5f5;
}

.form-group {
  height: 55px;
}

.form-input {
  width: 97%;
  padding: 5px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  display: block;
  outline: none;
}

.form-labels {
  color: var(--primary-color);
  display: block;
  font-family: sans-serif;
}

button {
  cursor: pointer;
  color: #f5f5f5;
  background: var(--primary-color);
  height: 30px;
  width: 100px;
  border: none;
  border-radius: var(--border-radius);
  margin-top: 10px;
}

button:hover {
  filter: brightness(200%);
}

button:focus {
  outline: none;
}

@media screen and (max-width: 600px) {
  .container {
    flex-direction: column;
  }

  .name {
    text-align: center;
  }
}