Testinghh / style.css
GarGerry's picture
Update style.css
9cd7849 verified
raw
history blame
2.33 kB
/* Resetting and global styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #001d4a, #04396e); /* Warna gradien biru gelap */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #fff;
position: relative;
}
/* Container styles */
.container {
background: #ffffff;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Bayangan */
padding: 30px;
width: 100%;
max-width: 450px;
text-align: center;
color: #333;
}
/* Header section */
header h1 {
font-size: 1.8rem;
font-weight: bold;
color: #001d4a;
margin-bottom: 10px;
}
header p {
font-size: 0.9rem;
color: #555;
margin-bottom: 20px;
}
/* Form styles */
input {
display: block;
width: 100%;
padding: 12px;
font-size: 16px;
margin-bottom: 15px;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
select {
width: 100%;
padding: 12px;
font-size: 16px;
margin-bottom: 15px;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
/* Currency selectors with swap button */
.currency-selectors {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 15px;
}
.currency-selectors select {
width: 45%;
}
.swap-button {
display: flex;
align-items: center;
justify-content: center;
background-color: #1e90ff;
color: #ffffff;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.swap-button:hover {
background-color: #1c7ed6;
}
/* Button styles */
button {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 12px;
font-size: 18px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
font-weight: bold;
}
button:hover {
background-color: #45a049;
}
/* Result box */
#result {
margin-top: 20px;
padding: 15px;
font-size: 18px;
background: #f4f4f4;
border-radius: 8px;
text-align: center;
color: #333;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Footer */
footer p {
font-size: 0.8rem;
color: #777;
margin-top: 20px;
}