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

#container {
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

.messages {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.text h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

.text p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main li {
    margin-bottom: 15px;
}

.main a {
    display: block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.main a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tool {
    text-align: center;
}

.tool h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* Calculator Styles */
.calc-display {
    margin-bottom: 20px;
}

.calc-display input {
    width: 100%;
    max-width: 300px;
    height: 50px;
    font-size: 1.5em;
    text-align: right;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto 20px;
}

.calc-buttons button {
    height: 50px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.calc-buttons button:hover {
    background: #5a67d8;
}

.calc-buttons button:active {
    transform: scale(0.95);
}

/* Timer Styles */
.timer-display {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.timer-controls {
    margin-bottom: 20px;
}

.timer-controls input {
    padding: 10px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 5px;
}

.timer-controls button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background: #667eea;
    color: white;
    cursor: pointer;
    margin: 5px;
    transition: background 0.2s;
}

.timer-controls button:hover {
    background: #5a67d8;
}

/* Notepad Styles */
#notes {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 15px;
}

.notepad-controls button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background: #667eea;
    color: white;
    cursor: pointer;
    margin: 5px;
    transition: background 0.2s;
}

.notepad-controls button:hover {
    background: #5a67d8;
}

/* Converter Styles */
.converter-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.converter-section label {
    font-weight: bold;
    color: #333;
    min-width: 100px;
}

.converter-section input {
    padding: 10px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 120px;
}

.converter-section span {
    color: #667eea;
    font-weight: bold;
    min-width: 100px;
}

/* Back Button */
.back-btn {
    padding: 12px 25px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background: #764ba2;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #6a4190;
}

/* Responsive Design */
@media (max-width: 600px) {
    .messages {
        margin: 10px;
        padding: 20px;
    }
    
    .calc-buttons {
        max-width: 250px;
    }
    
    .converter-section {
        flex-direction: column;
        text-align: center;
    }
    
    .converter-section label {
        min-width: auto;
    }
    
    .converter-section span {
        min-width: auto;
    }
}