@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');
body{
    position: relative;   /*for pseudo-element positioning */
}

body::before{
  content: "";
  font-family: 'Caveat', cursive;
  position: fixed;
  inset: 0;
  background-image: url(Website_Background.png);
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5; /* Adjust transparency here */
  background-size: 100%;
  z-index: -1;
  /* position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; */
}

.title{
  font-family: 'Caveat', cursive;
  font-size: 48px;
}

.items {
    width: 135px;
    height: 135px;
    background: #fff;
    border: 2px solid #aaa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: 13px;
    color: #888;
}

#frog_sprite {
    width: 400px;
    height: 600px;
    background: #fff;
    border: 2px dashed #aaa;
    border-radius: 12px;
    position: relative;
}

.layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    opacity: 0;
}

#layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    justify-content: center
}

.title{
    text-align: center;
}

#items {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 columns = 2 per row */
    gap: 12px;
    padding: 12px;
}

#picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

#hats-grid,
#items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.item-card {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.8);
    border: 2px solid #40916c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.item-card img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.reset-frog {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: grab;
    padding: 8px 12px;
    background: rgba(255,255,255,0.7);
    border: 2px dashed #40916c;
    border-radius: 12px;
    font-family: 'Caveat', cursive;
    font-size: 18px;
    font-weight: 700;
    color: #40916c;
    transition: transform 0.15s ease;
}

.reset-frog:hover {
    transform: scale(1.04);
}

.fish_back {
    position: fixed;
    left: 20px;
    top: 20px;

    width: 200px;
    height: 200px;

    background-image: url("Fish_button.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;

    display: block;
    z-index: 9999;
}

.home_button:hover {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.2s ease;
}

.home_button {
    display: inline-block;
}

.reset-frog img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.section-label {
    font-family: 'Caveat', cursive;
    font-size: 26px;
    margin: 6px 0 2px;
    color: #1b4332;
}

#frog_sprite {
    width: 400px;
    height: 500px;
    background: rgba(255,255,255,0.6);
    border: 3px dashed #40916c;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#frog-display {
    width: 100%;
    height: 100%;
    object-fit: contain;
}