Testinghh / style.css
GarGerry's picture
Update style.css
258b2cc verified
raw
history blame
1.83 kB
/* Reset styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1E90FF, #87CEFA); /* Mirip dengan warna contoh */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
}
.container {
background: #ffffff;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 40px;
width: 100%;
max-width: 500px;
text-align: center;
}
header {
margin-bottom: 20px;
}
header h1 {
font-size: 24px;
color: #333;
font-weight: bold;
}
input, select {
padding: 12px;
margin: 10px 0;
width: 100%;
font-size: 16px;
border-radius: 8px;
border: 1px solid #ccc;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
transition: border-color 0.3s;
}
input:focus, select:focus {
border-color: #1E90FF;
outline: none;
}
.currency-selectors {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin: 15px 0;
}
.selector-group {
display: flex;
align-items: center;
gap: 10px;
}
#swapButton {
background-color: #1E90FF;
color: white;
border: none;
border-radius: 50%;
padding: 10px;
cursor: pointer;
font-size: 16px;
}
#swapButton:hover {
background-color: #104E8B;
}
button {
padding: 12px;
background-color: #1E90FF;
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #104E8B;
}
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
color: #333;
background-color: #f8f8f8;
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
footer {
margin-top: 20px;
font-size: 14px;
color: #666;
}