:root {
  --principal-color: #0d1117;
  --secondary-color: #161b22;

  --principal-accent: #e63946;
  --secondary-accent: #f4a261;

  --text-color: #f8f9fa;
  --secondary-text-color: #8b949e;
}

.movie-small {
  height: 175px;
  width: auto;
}

.music-small {
  width: 133px;
  height: 133px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--principal-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 40px;
}

main button {
  transition: 0.75s ease;
}

main button:hover {
  transform: translateY(-5px) scale(1.05);
}

.card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 30px 45px;
  display: flex;
  flex-direction: column;
  transition: 0.5s ease;
}

.card:hover {
  transform: scale(1.02);
}

main {
  background-color: var(--principal-color);
  color: var(--text-color);
  font-family: "Nimbus", sans-serif;
  margin: 75px;
}

a {
  color: var(--principal-accent);
}

main h1 {
  margin-top: 0;
}

.main-container {
  display: flex;
  gap: 100px;
}

.container {
  display: flex;
  flex: 2;
  gap: 60px;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.connexion-container {
  background-color: var(--secondary-color);
  border-radius: 8px;
  width: 100%;
  padding: 0px 40px 50px 40px;
  background-image:
    linear-gradient(rgba(22, 27, 34, 0.7), rgba(22, 27, 34, 0.7)),
    url("images/pexels-tima-miroshnichenko-7991437.jpg");
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.connexion-container button {
  background: linear-gradient(135deg, #e63946, #ff6b75);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.35);
  height: 45px;
  width: 250px;
  border-radius: 8px;
  border: none;
  color: var(--text-color);
  font-style: bold;
  cursor: pointer;
  font-size: 20px;
  font-weight: 550;
}

.connexion-container h2 {
  font-size: 40px;
}

.connexion-container p {
  font-size: 20px;
}

.activity-trend-container {
  gap: 50px;
  display: flex;
  flex: 1;
}

.activity-rank-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex: 1;
}

.activity-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-container {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  gap: 10px;
}

.news {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.news-profil img {
  width: 70px;
  height: 70px;
  border-radius: 100%;
}

.like-news {
  margin-left: 90px;
  display: flex;
  gap: 10px;
}

.like-news a img {
  filter: invert(1);
  width: 20px;
  cursor: pointer;
}

.rank-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rank-body {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.rank-content {
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.rank-section {
  display: flex;
  align-items: center;
  gap: 30px;
  border-radius: 8px;
  transition: 0.5s ease;
}

.rank-section img {
  border-radius: 8px;
  cursor: pointer;
  transition: 0.5s ease;
}

.rank-section:hover {
  transform: scale(1.05);
}

.rank-text h3 {
  cursor: pointer;
}

.trend-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.trend {
  display: flex;
  flex-direction: column;
}

.trend-picture-container {
  width: 100%;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.img-container img {
  border-radius: 8px;
  transition: 0.5s ease;
  transition: transform 0.4s ease;
}

.movie {
  height: 350px;
  width: auto;
}

.music {
  width: 266px;
  height: 266px;
}

.img-container {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 8px;
  transition: 0.5s ease;
  border: 3px solid var(--principal-accent);
}

.img-container img {
  display: block;
}

.overlay-container {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s ease;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.overlay-text {
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  margin: 0;
  transition: 0.4s ease;
  text-align: center;
}

.like-container-overlay {
  transform: translateY(20px);
  opacity: 0;
  transition: 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.like-container-overlay img {
  cursor: pointer;
  width: 40px;
  height: 40px;
  filter: invert(1);
  z-index: 3;
}

.like-container-overlay p {
  font-weight: 600;
  font-size: 25px;
}

.img-container:hover {
  transform: scale(1.02);
}

.img-container:hover .overlay-container {
  opacity: 1;
}

.img-container:hover img {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(30%);
}

.img-container:hover .like-container-overlay span img {
  filter: invert(1);
}

.img-container:hover .overlay-text,
.img-container:hover .like-container-overlay {
  transform: translateY(0);
  opacity: 1;
}

.like-container {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.like-container img {
  cursor: pointer;
  width: 40px;
  height: 40px;
  filter: invert(1);
}

.like-container p {
  font-weight: 600;
  font-size: 25px;
}

.trend-match {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.match {
  display: flex;
  flex-direction: column;
}

.matching-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.match-profil {
  text-align: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
}

.match-profil img {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
}

.match-button button {
  background-color: var(--principal-accent);
  height: 45px;
  width: 150px;
  border-radius: 8px;
  border: none;
  color: #eaeaea;
  cursor: pointer;
  margin-top: 15px;
  font-size: 20px;
  font-weight: 550;
}

.next-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 60px;
}

.entry {
  position: relative;
  height: 50px;
}

.entry-container {
  position: relative;
}

.label-search {
  position: absolute;
  padding: 0 25px;
  margin: 0px 20px;
  transition: 0.2s ease;
  background-color: var(--secondary-color);
  top: 16px;
  left: -10px;
  color: var(--secondary-text-color);
}

#search-icon {
  position: absolute;
  width: 30px;
  z-index: 11;
  right: 20px;
  top: 10px;
}

.searchbar {
  position: absolute;
  border-radius: 8px;
  width: 100%;
  height: 50px;
  padding: 0px 20px;
  border: 2px var(--text-color) solid;
  outline: none;
  color: var(--text-color);
  font-family: "Nimbus", sans-serif;
  background: transparent;
  font-size: 20px;
  z-index: 10;
  transition: 0.2s ease;
}

.searchbar:not(:placeholder-shown) + .label-search,
.searchbar:focus + .label-search {
  z-index: 10;
  transform: translate(-15px, -26px) scale(0.8);
  padding: 0px 15px;
  color: var(--text-color);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1c2128;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  flex-direction: column;
  gap: 10px;
}

.search-results ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.org-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--principal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-color);
  flex-shrink: 0;
}

.profil-picture {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
}

.search-results li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #e6edf3;
  transition: 0.3s ease;
}

.search-results li a:hover {
  transform: scale(1.02);
}

.event p {
  font-size: 20px;
  padding-bottom: 20px;
  margin-top: 40px;
  font-weight: 600;
}

.barrier {
  height: 1px;
  background-color: var(--text-color);
  width: 100%;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event-profil {
  display: flex;
  gap: 30px;
}

.event-proposition {
  display: flex;
  justify-content: space-between;
}

.profil {
  padding-top: 10px;
}

.profil img {
  width: 70px;
  height: 70px;
  border-radius: 100%;
}

.event-down img {
  width: 60px;
  cursor: pointer;
}

.vote-container .trend-picture-container {
  display: flex;
}

.vote-container .button-vote {
  display: flex;
  justify-content: center;
}

.vote-container button {
  background-color: var(--principal-accent);
  height: 45px;
  width: 150px;
  border-radius: 8px;
  border: none;
  color: var(--text-color);
  font-style: bold;
  cursor: pointer;
  margin-top: 15px;
  font-size: 20px;
  font-weight: 550;
}

@media screen and (max-width: 2200px) {
  .container {
    flex-direction: column;
  }

  .next-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .match-container {
    flex: 1;
  }
}

@media screen and (max-width: 1650px) {
  .activity-title a,
  .activity-title a img {
    display: none;
  }

  #right-trend {
    display: none;
  }
}

@media screen and (max-width: 1400px) {
  #right-trend {
    display: none;
  }

  .next-container {
    flex-direction: column;
    align-items: stretch;
  }

  header nav ul {
    display: none;
  }

  .menu-button img {
    display: flex;
    width: 50px;
  }

  header nav ul li:hover {
    border-bottom: 2px solid transparent;
  }
}

@media screen and (max-width: 1200px) {
  #mid-trend {
    display: none;
  }

  .socials,
  footer nav img {
    display: none;
  }

  footer nav ul {
    padding: 0;
    gap: 15px;
  }
}

@media screen and (max-width: 1000px) {
  .activity-trend-container {
    flex-direction: column;
  }

  .activity-container {
    align-items: center;
  }

  .rank-content {
    padding: 50px;
  }
}

@media screen and (max-width: 825px) {
  .movie {
    width: 130px;
    height: 177px;
  }

  .music {
    width: 130px;
    height: 130px;
  }

  .like-container p {
    font-size: 20px;
  }

  .like-container img {
    width: 30px;
  }

  h2 {
    font-size: 30px;
  }

  header {
    margin: 25px;
  }

  main {
    margin: 25px;
  }

  footer {
    margin: 0px 25px;
  }

  .rank-content {
    padding: 0px;
  }

  #mid-trend {
    display: block;
  }

  #right-trend {
    display: block;
  }

  .like-container-overlay span img {
    width: 30px;
  }

  .overlay-text {
    position: absolute;
    top: 20px;
  }
}

@media screen and (max-width: 600px) {
  #mid-trend {
    display: none;
  }

  header {
    margin: 25px;
  }

  main {
    margin: 25px;
  }

  footer {
    margin: 0px 25px;
  }

  #logo {
    display: none;
  }

  footer {
    justify-content: center;
  }

  header nav {
    justify-content: center;
  }

  .card {
    padding: 20px;
  }
}
