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

h1 {
  font-weight: bold;
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-weight: bold;
  font-size: 3rem;
  margin: 2rem 0 1rem 0;
}

.grid_arr,
.grid_others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  grid-gap: 1.5em;
  padding: 1.5em;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.grid_arr {
  background-color: rgba(0, 0, 128, 0.5);
}

.grid_others {
  background-color: rgba(128, 0, 0, 0.5);
}

.panel {
  background-color: rgba(0, 0, 0, 0.133);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 1.5em;
  padding: 1.5em;
  border-radius: 20px;
  min-width: min-content;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.panel-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
}

.right {
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 25px;
  background: rgb(255, 255, 255);
  width: max-content;
  height: max-content;
  justify-self: center;
}

.panel img {
  width: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

.title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

@media (max-width: 1200px) {
  .grid_arr,
  .grid_others {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

@media (max-width: 992px) {
  body {
    margin: 3%;
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .grid_arr,
  .grid_others {
    grid-template-columns: 1fr;
    padding: 1em;
    grid-gap: 1em;
  }
  
  .panel {
    grid-template-columns: auto 1fr;
    padding: 1.2em;
    grid-gap: 1.2em;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .left {
    padding: 20px;
  }
  
  .panel img {
    max-width: 130px;
    max-height: 130px;
  }
}

@media (max-width: 768px) {
  body {
    margin: 2%;
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .grid_arr,
  .grid_others {
    padding: 0.8em;
    grid-gap: 0.8em;
    margin-bottom: 1.5rem;
  }
  
  .panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5em;
  }
  
  .left {
    justify-self: center;
    width: auto;
    padding: 20px;
    margin: 0 auto;
  }
  
  .right {
    min-width: unset;
    justify-self: center;
  }
  
  .title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }
  
  .panel img {
    max-width: 120px;
    max-height: 120px;
  }
}

@media (max-width: 480px) {
  body {
    margin: 1%;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem 0;
  }
  
  .grid_arr,
  .grid_others {
    padding: 0.6em;
    grid-gap: 0.6em;
    border-radius: 15px;
  }
  
  .panel {
    padding: 1em;
    border-radius: 15px;
    grid-gap: 1em;
  }
  
  .left {
    padding: 15px;
  }
  
  .panel img {
    max-width: 100px;
    max-height: 100px;
  }
  
  .title {
    font-size: 1.6rem;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .title {
    font-size: 1.4rem;
  }
  
  .left {
    padding: 12px;
  }
  
  .panel img {
    max-width: 80px;
    max-height: 80px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .grid_arr,
  .grid_others {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .panel {
    padding: 1em;
  }
  
  .left {
    padding: 15px;
  }
  
  .panel img {
    max-width: 100px;
    max-height: 100px;
  }
}

body {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.3rem;
  margin: 5%;
  background-color: pink;
  color: rgb(255, 255, 255);
}
