:root {
  --primary: #1e3a8a;
  --background-color: #2c2c2c;
  --accent: #60a5fa;
  --text-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.urban {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0.5em;
  font-size: 1.625rem;
  font-weight: 800;
  &:hover {
    color: #070707;
  }
}

header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;

  color: #2e2e2e;
  display: flex;
  justify-content: space-between;
  background-color: var(--text-color);
}

.logo {
  padding: 0 0.625rem;
}

header li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

header ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 3em;
  padding: 0.625rem;
}

header a {
  text-decoration: none;
  color: var(--background-color);

  &:hover {
    color: #1e3a8a;
  }
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger-menu span {
  width: 1.5625rem;
  height: 0.1875rem;
  background: black;
  margin: 0.3125rem;
}

.menu {
  display: none;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  margin-top: 3em;
  padding: 0.625rem;
  color: #2c2c2c;
}

.main-grid {
  columns: 24rem;
  padding: 1rem;
}

.main-grid img {
  width: 100%;
  height:100%;
  margin-bottom: 0.8rem;
  transition: 0.2s;
}

.news {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.25rem;
}

.sub-news {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #60a5fa;
  width: 100%;
  height: 12.5rem;
}

.input {
  margin-top: 1em;
}
input {
  width: 25rem;
  height: 3.125rem;
  font-size: 1rem;
}

button {
  height: 3.125rem;
  border: none;
  padding: 0.3125rem;
}

.main-footer {
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.copyr {
  background-color: #111;
  color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer ul li {
  list-style: none;

  gap: 0.5em;
  font-size: 1rem;
  padding: 0.3125rem;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 50%;
  color: #fff;
  width: 50%;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: rgb(240, 112, 133);
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media screen and (min-width: 20rem) {
  .main-footer {
    flex-direction: column;
    gap: 2em;
    padding: 0.625rem;
  }

  input {
    width: 7.5rem;
  }
}

@media screen and (max-width: 48rem) {
  .burger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .burger-menu span {
    width: 1.5625rem;
    height: 0.1875rem;
    background: black;
    margin: 0.3125rem;
  }

  .unorder {
    display: none;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 3.75rem;
    right: 0;
    background: rgb(103, 159, 207);
    width: 100%;
    height: auto;
    z-index: 10;
  }

  .unorder.active {
    display: flex;
  }

  .unorder ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column !important;
    z-index: 9;
  }

  .unorder li {
    margin: 0.625rem 0;
  }

  .unorder a {
    text-decoration: none;
    color: #000;
  }

  .text {
    z-index: 0;
  }

  .text h1,
  .text h2 {
    font-size: 1.3125rem;
  }

  .text p {
    font-size: 0.75rem;
  }
}

@media screen and (min-width: 48rem) {
  .main-footer {
    flex-direction: row;
  }

  form {
    flex-direction: row;
  }
}

@media screen and (min-width: 64rem) {
  article img {
    width: 50rem;
  }

  input {
    width: 28.125rem;
  }

  input {
    width: 28.125rem;
  }

  button {
    width: 6.25rem;
  }

  .main-footer {
    flex-direction: row;
  }

  form {
    flex-direction: row;
  }
}
