.problems-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0;
  position: relative;
}

.problem-item {
  position: relative;
  margin: 10px;
  list-style: none;
  width: 150px;
  text-align: center;
  position: relative;
}

.problem-link {
  display: block;
  height: 100%;
  padding: 10px 16px;

  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: 0.3s;
}

.problem-link:hover {
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.problem-item .solved {
  background-color: green;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--light-text-color);

  position: absolute;
  top: 0;
  right: 0;
  transform: translate(25%, -25%);

  font-size: 14px;
  font-weight: 700;
  border: 2px solid #1d1a22;
  background-clip: padding-box;

  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  cursor: pointer;
}

.guide-modal img {
  max-width: 500px;
  width: 50vw;
}

.guide-modal .close-guide {
  font-size: 24px;
  position: absolute;
  bottom: 10vh;
  animation: showGuide 2s linear infinite;
}

@keyframes showGuide {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

#show-guide:checked ~ .problems-list,
#show-guide:checked ~ .header-wrap {
  opacity: 0.3;
}

#show-guide:checked ~ .guide-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1 !important;
}

.show-guide-icon {
  position: relative;
}

.problem-page-title {
  width: fit-content;
  position: absolute;
  top: 110%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, 50%);

  background-color: #ccc;
  color: #111;

  padding: 3px 12px;
  border-radius: 5px;
  z-index: 100;
  transition: 0.5s;
  white-space: nowrap;
}
.show-guide-icon i:hover ~ .problem-page-title {
  opacity: 1;
  transform: translate(-50%, 0);
}

.random-problem-wrap {
  position: relative;
}

.random-problem-wrap button:hover ~ .problem-page-title {
  opacity: 1;
  transform: translate(-50%, 0);
}

.random-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);

  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  margin: 0;
}

#random-modal:checked ~ .random-modal {
  display: flex;
}

.random-modal-wrap {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 400px;
  height: 250px;
  box-shadow: inset 1000px 1000px 1000px rgba(0, 0, 0, 0.5);
  /* background-image: unset !important; */
  background-color: #eee;

  text-align: center;
  padding: 30px;

  border-radius: 10px;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.random-modal-wrap * {
  color: #fff;  
}

.random-modal-content {
  font-size: 20px;
  font-weight: 600;
  text-align: left;
}

.random-modal-content .des {
  font-size: 18px;
  font-weight: 400;
  margin-top: 10px;
}

.random-modal-footer {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.random-modal-footer button {
  background-color: rgba(0, 0, 0, 0.7);
  transition: 0.3s;
  padding-left: 0;
  padding-right: 0;
}

.random-modal-footer button:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.random-label {
  width: 100%;
  margin: 0;
}

.random-modal-footer button,
.random-modal-footer *,
.random-modal-footer *:hover {
  width: 100px;
  color: var(--light-text-color);
  text-decoration: none;
}
