/* Base layout */
* {
  box-sizing: border-box;
}

body {
  /* background-color: rgb(243, 244, 246); */
  /* background-image: url("cork.jpg"); */
  background: linear-gradient(135deg, #c8ffd4 0%, #07581f 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0px;
  flex-wrap: nowrap;
  flex-direction: column;
  padding: 10px;
  overflow-x: hidden;
  font-size: 1rem;
}

p, h1, h2, span {
  user-select: none;
}

h1, h2 {
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  /* font-style: normal; */
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

.plate {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

#header-box {
  width: 60%;
  text-indent: 30px;
  min-width: 500px;    
  margin: 5px auto 20px;
  padding: 10px 20px;
  font-size: 1rem;
}

#header-box h1 {
  text-align: center;
  margin: auto;
}

.item {
  box-shadow: 0 4px 20px black;
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 300ms ease, transform 100ms ease;
  /* margin: 60px 15px; */
  margin: 10px;
  border-radius: 16px;
  height: fit-content;
  width: min-content;
}

.item:not(.image-wrapper) {
  background-color: #fff;
}

.item.hidden, .multi-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.shadow-inset-wrapper {
  box-shadow: inset #00000050 3px -3px 5px 2px;
  border-radius: inherit;
}

.inset-wrapper {
  padding: 10px 20px;
  display: inherit;
  flex-direction: inherit;
}

#board {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  
  position: relative;
  width: 100%;
  /* height: fit-content; */
  height: 10000px;
  border: 3px solid rgb(142, 142, 142);
  border-radius: 5px;
  box-shadow: -4px 4px 12px 0 #00000080;
  padding: 60px 0;
  overflow-x: hidden;
  
  background-image: url("poster-back.png");
}

.draggable {
  cursor: grab;
  position: absolute;
  top: 50px;
  left: 50px;
  touch-action: none; /* important for mobile: prevents scrolling during drag */
  
  pointer-events: all;
  user-select: auto;
}

.draggable.dragging {
  cursor: grabbing;
  transform: scale(105%) !important;
}

.ui-draggable-disabled {
  pointer-events: none;
  user-select: none;
  touch-action: pan-y;
}

.multi-wrapper {
  transition: opacity 300ms ease, transform 100ms ease;
  z-index: 30;
}

/* Buttons */
.like-btn {
  position: relative;
  float: right;
  aspect-ratio: 1;
  border: none;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 50ms;
  user-select: all !important;
  pointer-events: all !important;
}

.like-btn:active, #eye-btn:active, #edit-btn:active {
  transform: scale(1.2);
}

.like-btn img, #eye-btn img, #edit-btn img {
  width: 32px;
}

#corner-wrapper {
  position: sticky;
  margin-left: auto;
  top: 10px;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

#eye-btn, #edit-btn {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 50ms;
}


/* For phone resolution */
@media (max-width: 1100px) {
  #eye-btn img, #edit-btn img {
    width: 90px;
  }

  .like-btn img {
    width: 75px;
  }
  
  /* Font sizes */
  *:not(h1):not(h2){
    font-size: 1.35rem;
  }

  #header-box {
    width: 90%;
    text-indent: 50px;
    margin: 5px auto 20px;
    padding: 10px 20px;
    font-size: 3rem;
    border-radius: 30px;
  }
  
  #header-box h1 {
    font-size: 4rem;
  }

  /* Item sizes */
  .classic-img {
    width: 300px;
  }

  .small-img {
    width: 180px;
  }
  
  .space-img {
    margin: 120px 150px 30px !important;
  }
  
  .chat-wrapper {
    min-width: 400px;
  }
  
  .memory-wrapper {
    min-width: 500px;
  }
  
  .quote-wrapper {
    min-width: 500px;
  }

  #board {
    height: 40000px;
  }
  
  .pin svg {
    width: 80px;
    height: 80px;
  }
}