:root {
  font-size: 20px;
  font-weight: normal;
  font-family: Arial, sans-serif;
}
html {
  font-weight: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}
nav {
  background: linear-gradient(270deg,
    rgba(139, 0, 0, 0.8),     /* dark red */
    rgba(255, 140, 0, 0.8),   /* dark orange */
    rgba(218, 165, 32, 0.8),  /* goldenrod */
    rgba(0, 100, 0, 0.8),     /* dark green */
    rgba(0, 139, 139, 0.8),   /* dark cyan */
    rgba(0, 0, 139, 0.8),     /* dark blue */
    rgba(75, 0, 130, 0.8),    /* indigo */
    rgba(139, 0, 0, 0.8)      /* back to dark red */
  );
  background-size: 4000% 10%;
  animation: rainbow 25s linear infinite;
  height: 10vh;
  position: sticky;
  opacity: 1;
  top: 0;
  border-bottom: 3px solid black;
}
nav, footer {
    color: white;
    padding: 15px;
    text-align: center;
}
footer {
    bottom: 0;
    position: sticky;
    background: lightgrey;
    border-top: 1px solid black;
}
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 30%; }
}
.main_link_top {
  position: relative;
  border: 1px solid black;
  font-size: 1.2rem;
  padding: 8px;
  text-decoration: none;
  background-color: #FFF;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  border-radius: 8px;
  border-color: #000;
}

main {
    overflow-y: auto;
    padding: 20px;
    background: #FFF;
}
a {
  color: inherit;
  text-decoration: none;
}
a:visited {
  color: inherit;
}
.main_link {
  border: 1px solid black;
  font-size: 1rem;
  padding: 8px;
  text-decoration: none;
  background-color: #FFF;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  border-radius: 8px;
  border-color: #000;
}
.main_link:hover {
  background-color: #000;
  border-color: #FFF;
  color: #FFF !important;
  transition: 0.5s ease;
}
.main_link_top {
  position: relative;
  border: 1px solid black;
  font-size: 1.2rem;
  padding: 8px;
  text-decoration: none;
  background-color: #FFF;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  border-radius: 8px;
  border-color: #000;
}
.main_link_top:hover {
  background-color: #000;
  border-color: #FFF;
  color: #FFF !important;
  transition: 0.5s ease;
}
h1 {
  font-size: 1.4rem;
  color: #000;
}
h2 {
  font-size: 1rem;
  color: #000;
  font-weight: normal;
}
h3 {
  font-size: 1.2rem;
  color: #000;
  font-weight: normal;
}
.title_img {
  position: absolute;
  left: calc(50% - 470px);
  transition: transform 0.3s ease;
  transform-origin: top left;
}
.container {
  background-color: #FFF;
  padding: 10rem;
  line-height: 1.4;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 100%;
}
.silhouette_main {
  position: absolute;
  left: 8%;
  bottom: 5px;
}
.news-container {
    width: 400px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    margin: 25px;
    font-family: Arial, sans-serif;
}
.news-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.news-content {
    margin-top: 5px;
}
.news-link {
    margin-top: 5px;
}
.news-link a {
    text-decoration: none;
    color: blue;
}
@media (min-width: 801px) and (max-width: 1200px) {
  .silhouette_main {
    width: 250px;
    left: 3%;
    height: auto;
  }
  .title_img {
    left: 2%;
  }
}
@media (min-width: 421px) and (max-width: 800px) {
  .silhouette_main {
    width: 180px;
    bottom: 35px;
    height: auto;
  }
  .title_img {
    left: 2%;
    top: 10px;
    width: 120px;
    height: auto;
  }
  .main_link {
    font-size: 1rem;
  }
  .main_link_top {
    position: relative;
    border: 1px solid black;
    font-size: 1.1rem;
    padding: 6px;
    right: -12%;
  }
  .news-container {
      width: 280px;
      height: auto;
      border: 1px solid #ccc;
      border-radius: 6px;
      padding: 5px;
      margin: 10px;
      font-family: Arial, sans-serif;
  }
  .container {
    padding: 1rem;
    font-weight: normal;
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }
}
@media (max-width: 420px) {
  .silhouette_main {
    width: 220px;
    bottom: 41px;
    height: auto;
  }
  .title_img {
    left: 2%;
    top: 60px;
    width: 120px;
    height: auto;
  }
  .main_link {
    border: 1px solid black;
    font-size: 0.9rem;
    padding: 5px;
    border-radius: 6px;
  }
  .main_link_top {
    position: relative;
    border: 1px solid black;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 6px;
  }
  .news-container {
      width: 280px;
      height: auto;
      border: 1px solid #ccc;
      border-radius: 6px;
      padding: 5px;
      margin: 10px;
      font-family: Arial, sans-serif;
  }
  .container {
    padding: 1rem;
    line-height: 1.2;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
}
