GarGerry's picture
Update style.css
38484ec verified
raw
history blame
3.02 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #F3F4F9, #C9D6E3);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
position: relative;
padding: 20px;
}
.container {
background: #ffffff;
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
padding: 40px;
width: 100%;
max-width: 600px;
text-align: center;
position: relative;
}
header {
margin-bottom: 30px;
}
h1 {
font-size: 2rem;
color: #2D3A3A;
font-weight: 600;
animation: slideIn 2s ease-out;
margin-bottom: 20px;
}
/* Efek animasi untuk header */
@keyframes slideIn {
0% {
transform: translateX(-100%);
opacity: 0;
}
50% {
opacity: 0.5;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
input, select {
padding: 12px;
margin: 10px 0;
width: 100%;
font-size: 16px;
border-radius: 8px;
border: 1px solid #E0E0E0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: #fff;
color: #555;
}
input:focus, select:focus {
border: 1px solid #4CAF50;
outline: none;
box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
}
/* Gaya untuk elemen select agar lebih modern */
select {
background-image: url('https://img.icons8.com/ios/452/down-squared.png');
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 16px;
padding-right: 40px;
}
.currency-selectors {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
span {
font-size: 18px;
font-weight: 500;
color: #555;
}
button {
padding: 12px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 8px;
width: 100%;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 20px;
}
button:hover {
background-color: #45a049;
}
#result {
margin-top: 20px;
font-size: 20px;
font-weight: bold;
color: #333;
background-color: #f4f4f4;
padding: 15px;
border-radius: 8px;
text-transform: uppercase;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
footer {
margin-top: 30px;
font-size: 14px;
color: #555;
text-align: center;
}
footer p {
margin: 0;
font-weight: 400;
}
/* Responsif untuk Mobile */
@media (max-width: 768px) {
.container {
padding: 30px;
max-width: 100%;
}
h1 {
font-size: 1.5rem;
margin-bottom: 15px;
}
input, select {
font-size: 14px;
}
button {
font-size: 16px;
}
footer {
font-size: 12px;
}
}
/* Responsif untuk tampilan yang lebih besar (Tablet ke atas) */
@media (min-width: 769px) {
.container {
max-width: 700px;
}
h1 {
font-size: 2.5rem;
}
input, select {
font-size: 18px;
}
button {
font-size: 20px;
}
footer {
font-size: 14px;
}
}