Testinghh / style.css
GarGerry's picture
Update style.css
21e3f46 verified
raw
history blame
1.64 kB
/* Reset and Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #001f3f; /* Dark blue */
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow-y: auto; /* Allow vertical scrolling */
padding: 20px;
}
.container {
background: #fff;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 40px;
width: 100%;
max-width: 600px;
text-align: center;
color: #333;
}
header h1 {
margin-bottom: 20px;
}
label {
display: block;
margin: 15px 0 5px;
font-weight: bold;
font-size: 14px;
}
input, select {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
button {
background-color: #87CEFA; /* Sky Blue */
border: none;
border-radius: 8px;
padding: 12px 20px;
font-size: 16px;
color: white;
font-weight: bold;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
button:hover {
background-color: #5faad7; /* Darker blue */
}
#swapButton {
background: #87CEFA;
color: white;
margin: 10px auto;
display: block;
width: auto;
}
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
color: #001f3f;
background-color: #f0f0f0;
padding: 15px;
border-radius: 8px;
}
footer {
margin-top: 20px;
font-size: 14px;
color: #ccc;
}
/* Responsive Styles */
@media (max-width: 768px) {
.container {
padding: 30px;
}
button {
font-size: 14px;
}
}