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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h2 {
    color: #444;
    margin-bottom: 20px;
    text-align: center;
}

.input-section {
    text-align: center;
    margin-bottom: 30px;
}

#amount {
    width: 250px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #555;
}

input[type="number"] {
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-right: 10px;
    width: 200px;
}

button {
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.coins-display {
    display: grid;
    gap: 20px;
}

.coin-row {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coin-info {
    min-width: 100px;
    text-align: left;
}

.coin-label {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.coin-count {
    color: #666;
    margin-top: 5px;
}

.coin-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 20px;
    flex: 1;
}

.coin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.8em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.coin::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.quarter {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    border: 2px solid #666;
}

.dime {
    background: linear-gradient(135deg, #b8b8b8, #707070);
    border: 2px solid #555;
    width: 35px;
    height: 35px;
}

.nickel {
    background: linear-gradient(135deg, #d4d4d4, #909090);
    border: 2px solid #777;
    width: 38px;
    height: 38px;
}

.penny {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    border: 2px solid #654321;
    width: 36px;
    height: 36px;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    input[type="number"] {
        width: 150px;
        margin-right: 5px;
        margin-bottom: 10px;
    }
    
    .coin-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coin-visual {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}