rahuln2002's picture
Update static/style.css
de72f76 verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
min-height: 100vh;
overflow-y: auto;
}
.container {
width: 50%;
background: white;
padding: 30px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
border-radius: 10px;
text-align: center;
transition: transform 0.3s ease;
}
.container:hover {
transform: scale(1.02);
}
h1 {
color: #333;
margin-bottom: 20px;
font-size: 24px;
font-weight: bold;
}
label {
font-size: 16px;
font-weight: bold;
display: block;
margin-top: 15px;
color: #444;
text-align: left;
}
textarea, select, input {
width: 100%;
padding: 12px;
margin-top: 8px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 16px;
transition: border 0.3s ease, box-shadow 0.3s ease;
}
textarea {
resize: vertical;
min-height: 120px;
}
textarea:focus, select:focus, input:focus {
border-color: #4CAF50;
box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
outline: none;
}
select {
cursor: pointer;
background-color: #fff;
}
button {
background: #4CAF50;
color: white;
padding: 12px 20px;
margin-top: 20px;
border: none;
cursor: pointer;
border-radius: 6px;
font-size: 16px;
width: 100%;
transition: background 0.3s ease, transform 0.2s;
}
button:disabled {
background: #ccc;
cursor: not-allowed;
}
button:hover:not(:disabled) {
background: #388E3C;
transform: scale(1.03);
}
#number_label, #number {
display: none;
}
#charCount {
font-size: 14px;
color: #666;
margin-top: 5px;
text-align: right;
}
.result-section {
margin-top: 20px;
padding: 15px;
background-color: #f0fff0;
border-left: 5px solid #4CAF50;
border-radius: 6px;
font-size: 16px;
text-align: left;
font-weight: 500;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Loading Spinner */
.loading-spinner {
width: 40px;
height: 40px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top: 5px solid #4CAF50;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.container {
width: 90%;
padding: 20px;
}
}