/* Full Page Style */
body {
    font-family: 'Poppins', sans-serif; /* Modern Font */
    background: linear-gradient(135deg, #1e1e2f 0%, #111119 100%); /* Dark Gradient Background */
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Main Container */
.container {
    width: 95%;
    max-width: 1000px;
    text-align: center;
}

/* Heading Style */
h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

p {
    color: #b0b0b0;
    margin-bottom: 30px;
}

/* Controls Section (Input & Buttons) */
.controls {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05); /* Semi-transparent background */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px; /* Rounded Input */
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    width: 200px;
}

input:focus {
    border-color: #00dbde; /* Glow effect on focus */
}

/* Button Styling */
button {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gradient Buttons */
button:first-of-type {
    background: linear-gradient(to right, #11998e, #38ef7d); /* Green Gradient */
    color: white;
}

button:first-of-type:hover {
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
    transform: translateY(-2px);
}

.val-btn {
    background: linear-gradient(to right, #4facfe, #00f2fe); /* Blue Gradient */
    color: white;
}

.val-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

/* Blockchain Visualizer Area */
.chain-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* Block Card Styling */
.block-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Top colorful border for each block */
.block-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #00dbde, #fc00ff);
}

.block-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.block-card h3 {
    margin-top: 10px;
    color: #fff;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.block-card p {
    font-size: 13px;
    color: #d0d0d0;
    margin: 8px 0;
    word-wrap: break-word;
}

.block-card strong {
    color: #00dbde; /* Highlight labels */
}

/* Hash Text Styling */
.hash-text {
    font-family: 'Courier New', monospace;
    color: #ff8c00; /* Vibrant Orange for hashes */
    font-size: 11px;
    background: rgba(0,0,0,0.3);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Status Message (Valid/Tampered) */
#status-message {
    margin-top: 30px;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}