


@font-face {
  font-family: butterfly;
  src: url(AButterflyOnaDaffodil.ttf);
}

@font-face {
    src: url(https://dl.dropbox.com/s/1479f8x52y3z5u4/rainyhearts.ttf);
    font-family: hearts;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-image: url('assets/backgrounds/day.png');
  background-repeat: repeat;
  background-color: #c6efff; 
  min-height: 100vh;
  padding: 20px;
  margin: 0;
  font-family: hearts;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: url('assets/cursors/pulsingheart.gif'), auto;
}

.game-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    height: 100vh;
    background-color: #ffb8cb;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.game-title {
    font-size: 2em;
    color: #c2607a;
    font-family: butterfly;
}

.currency-display {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.currency-display p {
    font-size: 1.2em;
    color: #444;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-area {
    flex: 1;
    padding: 24px;
}

.left-area h2, .right-area h2 {
    font-size: 1.8em;
    color: #c2607a;
    margin-bottom: 16px;
}

.right-area {
    flex: 1;
    padding: 24px;
}


#cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-card {
    background: white;
    border: 3px solid #ccc;
    border-radius: 16px;
    padding: 16px 12px;
    width: 130px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-name {
    font-size: 1.1em;
    color: #333;
}

.cat-type {
    font-size: 0.8em;
    color: #999;
}

.cat-breed {
    font-size: 0.8em;
    color: #999;
}


.cat-purr {
    font-size: 0.9em;
    color: #c2607a;
}

button {
    font-family: hearts;
    font-size: 1em;
    background: white;
    border: 2px solid #c2607a;
    border-radius: 8px;
    color: #c2607a;
    padding: 8px 12px;
    cursor: pointer;
}

button:hover {
    background: #c2607a;
    color: white;
}

.shop-section {
    margin-top: 32px;
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-header h2 {
    font-size: 1.8em;
    color: #c2607a;
}

.shop-timer {
    font-size: 0.9em;
    color: #999;
}

#basket-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.basket-card {
    background: white;
    border: 3px solid #f0a0b8;
    border-radius: 16px;
    padding: 16px 12px;
    width: 150px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.basket-card--locked {
    opacity: 0.5;
}

.basket-emoji {
    font-size: 2em;
}

.basket-name {
    font-size: 1em;
    color: #333;
}

.basket-desc {
    font-size: 0.75em;
    color: #aaa;
}

.basket-cost {
    font-size: 0.9em;
    color: #c2607a;
}

.shop-upgrade {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#shop-tier-display {
    font-size: 0.9em;
    color: #999;
}

.cat-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.hidden {
    display: none;
}

.cat-popup-box {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 280px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
}

.popup-close:hover {
    color: #333;
    background: none;
}

.popup-name {
    font-size: 1.6em;
    color: #333;
}

.popup-type {
    font-size: 0.9em;
    color: #aaa;
}

.popup-stats {
    background: #ffd4de;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95em;
    color: #555;
}

.popup-sell {
    background: #c2607a;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    font-family: hearts;
    font-size: 1em;
    margin-top: 8px;
}

.popup-sell:hover {
    background: #a04060;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.popup-release {
    background: #88c599;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    font-family: hearts;
    font-size: 1em;
}

.popup-release:hover {
    background: #5ea870;
}

.shop-warning {
    color: #c2607a;
    font-size: 0.9em;
    margin-top: 8px;
}

.cat-card--empty {
    border-style: dashed;
    border-color: #ddd;
    opacity: 0.5;
}

.empty-slot-label {
    font-size: 0.85em;
    color: #ccc;
}

.popup-name-input {
    font-family: hearts;
    font-size: 1.4em;
    text-align: center;
    border: 2px solid #f0a0b8;
    border-radius: 8px;
    padding: 4px 8px;
    width: 100%;
    color: #333;
    outline: none;
}

.popup-name-input:focus {
    border-color: #c2607a;
}

.home-btn {
  position: fixed;
  bottom: 36px;
  left: 18px;
  z-index: 100;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.home-btn:hover {
  transform: scale(1.1);
}

.home-btn img {
  width: 100px;
  height: auto;
}

.code-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.code-popup-box {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 340px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-popup-title {
    font-size: 1.6em;
    color: #333;
}

.code-popup-desc {
    font-size: 0.9em;
    color: #aaa;
}

.code-textarea {
    font-family: monospace;
    font-size: 0.75em;
    width: 100%;
    height: 100px;
    border: 2px solid #f0a0b8;
    border-radius: 8px;
    padding: 8px;
    resize: none;
    color: #555;
    outline: none;
}

.copy-confirm {
    font-size: 0.9em;
    color: #88c599;
}

.load-error {
    font-size: 0.9em;
    color: #e07070;
}