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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    color: #2F4F2F;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    color: #228B22;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.1em;
    color: #2F4F2F;
    line-height: 1.6;
}

.features {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-style: italic;
    color: #2F4F2F;
}

.drawing-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.drawing-section h2 {
    font-size: 2em;
    color: #228B22;
    margin-bottom: 10px;
}

.instruction {
    font-size: 1.2em;
    color: #2F4F2F;
    margin-bottom: 20px;
    font-style: italic;
}

.canvas-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    border: 3px solid #228B22;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#drawingCanvas {
    display: block;
    cursor: crosshair;
    border-radius: 12px;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 12px;
}

.frog-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 150px;
    border: 2px dashed #90EE90;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.3;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.color-picker, .brush-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker label, .brush-size label {
    font-weight: bold;
    color: #2F4F2F;
}

#colorSelect {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#brushSize {
    width: 100px;
}

#brushSizeValue {
    font-weight: bold;
    color: #228B22;
    min-width: 20px;
}

.buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#clearBtn {
    background: #FF6B6B;
    color: white;
}

#clearBtn:hover {
    background: #FF5252;
    transform: translateY(-2px);
}

#saveBtn {
    background: #4ECDC4;
    color: white;
}

#saveBtn:hover {
    background: #26A69A;
    transform: translateY(-2px);
}

#pondBtn {
    background: #45B7D1;
    color: white;
}

#pondBtn:hover {
    background: #3498DB;
    transform: translateY(-2px);
}

.pond-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pond-section h3 {
    font-size: 1.8em;
    color: #228B22;
    margin-bottom: 20px;
    text-align: center;
}

.pond-container {
    text-align: center;
}

#pondCanvas {
    border: 3px solid #228B22;
    border-radius: 15px;
    background: linear-gradient(to bottom, #87CEEB 0%, #4682B4 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pond-info {
    margin-top: 15px;
}

.pond-info p {
    color: #2F4F2F;
    margin-bottom: 10px;
}

#refreshPond {
    background: #32CD32;
    color: white;
}

#refreshPond:hover {
    background: #228B22;
    transform: translateY(-2px);
}

.gallery-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.gallery-section h3 {
    font-size: 1.8em;
    color: #228B22;
    margin-bottom: 20px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    text-align: center;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item canvas {
    border: 2px solid #228B22;
    border-radius: 8px;
    margin-bottom: 8px;
}

.votes {
    font-weight: bold;
    color: #228B22;
    font-size: 0.9em;
}

#rankBtn {
    display: block;
    margin: 0 auto;
    background: #FFD700;
    color: #2F4F2F;
}

#rankBtn:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .buttons {
        flex-direction: column;
        width: 100%;
    }
    
    button {
        width: 100%;
    }
    
    #drawingCanvas, #pondCanvas {
        max-width: 100%;
        height: auto;
    }
}

/* Logo styles */
.header-logo {
    width: 48px;
    height: 48px;
    vertical-align: middle;
    margin-right: 12px;
}

.section-logo {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Contract Address Styles */
.ca-address {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 3px solid #FF6B35;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.ca-address h3 {
    color: #8B0000;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ca-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #8B0000;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #FF6B35;
    word-break: break-all;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ca-text:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

@keyframes glow {
    from {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    }
    to {
        box-shadow: 0 8px 35px rgba(255, 107, 53, 0.6);
    }
}
