@charset "utf-8";

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

body {
    font-family: 'Arial', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-area {
    display: flex;
    height: 720px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.play-zone {
    flex: 7;
    background: linear-gradient(to bottom, #e8f5e9 0%, #f1f8e9 100%);
    position: relative;
    border-right: 3px dashed #999;
}

.instruction-text {
    text-align: center;
    padding: 10px 0;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
}

.draggable-char {
    cursor: grab;
    display: inline-block;
}

.draggable-char:active {
    cursor: grabbing;
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: white;
}

.storage-zone {
    flex: 3;
    background: #d3d3d3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-left: none;
}

.storage-zone h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    text-align: center;
}

#storageArea {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0);
    border-radius: 0;
}

.storage-item {
    background: transparent;
    color: #000000;
    padding: 10px;
    border-radius: 0;
    text-align: center;
    font-family: Futura, 'Futura PT', Arial, sans-serif;
    font-weight: bold;
    font-size: 48px;
    cursor: grab;
    transition: transform 0.2s;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storage-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.storage-item:active {
    cursor: grabbing;
}

.info-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-panel p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 20px;
}

#score,
#highScore {
    color: #667eea;
    font-size: 24px;
}

#resetBtn {
    padding: 10px 30px;
    font-size: 16px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

#resetBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#resetBtn:active {
    transform: translateY(0);
}

#timer {
    background: #000000;
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    font-family: 'Futura', 'Arial', sans-serif;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 0;
}