.wrapper {
  display: grid;
  height: calc(100vh - 60px);
  grid-template-columns: 140px 1fr;
  color: #444;
  gap: 0;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.left {
	background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(202, 62, 71, 0.2);
}

.left::-webkit-scrollbar {
  width: 6px;
}

.left::-webkit-scrollbar-track {
  background: transparent;
}

.left::-webkit-scrollbar-thumb {
  background: #ca3e47;
  border-radius: 3px;
}

.right {
  height: 100%;
  margin-left: 20px;
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
}

.right::-webkit-scrollbar {
  width: 6px;
}

.right::-webkit-scrollbar-track {
  background: transparent;
}

.right::-webkit-scrollbar-thumb {
  background: #ca3e47;
  border-radius: 3px;
}

.spirit {
	width: 100%;
  height: 100px;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(202, 62, 71, 0.1);
  transition: all 0.2s ease;
}

.spirit:hover {
  background: rgba(202, 62, 71, 0.1);
  border-bottom-color: rgba(202, 62, 71, 0.3);
}

.spirit.selected {
	background: linear-gradient(90deg, rgba(202, 62, 71, 0.3) 0%, transparent 100%);
  border-left: 3px solid #ca3e47;
  border-bottom-color: #ca3e47;
}

.thumb {
	border-radius: 100%;
	margin: 0 auto 8px auto;
	width: 80px;
  border: 2px solid #ca3e47;
  transition: transform 0.2s ease;
}

.spirit:hover .thumb {
  transform: scale(1.05);
}

.spirit.selected .thumb {
  box-shadow: 0 0 15px rgba(202, 62, 71, 0.5);
}

.selection {
  margin-top: 20px;
  display: inline-flex;
  width: auto;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.gift {
  display: inline-grid;
  padding: 20px;
  background: rgba(49, 49, 49, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(202, 62, 71, 0.2);
  margin-bottom: 20px;
}

#gift1, #gift2 {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  display: inline-grid;
  vertical-align: middle;
  margin-right: 15px;
  border: 2px solid #ca3e47;
  object-fit: cover;
}

.guide {
  width: 90%;
  padding: 20px;
  background: rgba(49, 49, 49, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(202, 62, 71, 0.2);
  margin-bottom: 40px;
}

#date1, #date2 {
  margin-right: 40px;
  margin-bottom: 20px;
}

#date1, #date2 {
  font-size: 14px;
  font-weight: 600;
  color: #ca3e47;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.guidebox {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  width: max-content;
  margin-bottom: 10px;
  list-style-type: none;
  padding: 10px 15px;
  background: rgba(26, 26, 26, 0.8);
  color: #fff;
  border-left: 3px solid #ca3e47;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.guidebox:hover {
  background: rgba(26, 26, 26, 1);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(202, 62, 71, 0.2);
}

.routebox {
  display: inline-flex;
  width: auto;
  padding: 10px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  background: rgba(26, 26, 26, 0.8);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid rgba(202, 62, 71, 0.2);
  transition: all 0.2s ease;
}

.routebox:hover {
  background: rgba(202, 62, 71, 0.2);
  border-color: #ca3e47;
  transform: translateY(-2px);
}

.routebox.selected {
  background: linear-gradient(135deg, #ca3e47 0%, #e84856 100%);
  border-color: #ca3e47;
  color: #fff;
}

.cg {
  display: inline-flex;
  width: 200px;
  border: 3px solid #ca3e47;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-right: 20px;
  margin-bottom: 20px;
}

.cg:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(202, 62, 71, 0.3);
}

.popup {
  display: none;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  position: fixed;
  background: rgba(0,0,0,0.95);
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.popup.show {
  display: table;
}

.poptable {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.poppedcg {
  max-height: 85vh;
  max-width: 85vw;
  margin: 0 auto;
  animation: zoomin 0.4s ease-out;
  animation-fill-mode: forwards;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.loadingcontainer {
  display: table;
  left: 0;
  top: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  z-index: 200;
}

.loadingcontainer.hidden {
  display: none;
}

.loadingcontainer.out {
  animation: fadeout 0.5s ease-out forwards;
}

@keyframes fadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

.loadingcontainertable {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

#dismissLoading {
  color: #ca3e47;
  cursor: pointer;
  margin-top: 15px;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid #ca3e47;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
}

#dismissLoading:hover {
  background: rgba(202, 62, 71, 0.1);
  transform: translateY(-2px);
}

/***** Ripple Loader *****/
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid #ca3e47;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}
/***** End Loader *****/

@keyframes zoomin {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.poppedcg.out {
  animation: zoomout 0.4s ease-in forwards;
}

@keyframes zoomout {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}

footer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 20px;
  background: rgba(26, 26, 26, 0.9);
  color: #999;
  border-left: 3px solid #ca3e47;
  border-radius: 4px;
  font-size: 13px;
  z-index: 50;
}

@media only screen and (max-device-width: 768px) {
  .wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .left {
    height: 20vh;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 10px;
    padding: 10px 0;
    margin-top: 0;
    border-right: none;
    border-bottom: 1px solid rgba(202, 62, 71, 0.2);
  }

  .spirit {
    height: 100px;
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
  }

  .selection {
    display: block;
    width: auto;
    gap: 0;
  }

  .right {
    height: calc(80vh - 20px);
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    padding: 10px;
    overflow: auto;
  }

  .poppedcg {
    max-height: 80vh;
    max-width: 95vw;
  }
}