176 lines
3.0 KiB
CSS
176 lines
3.0 KiB
CSS
/* Keyframe animation */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Mobile design */
|
|
body {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
background: #f8f9fa;
|
|
color: #222;
|
|
margin: 0;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.6rem;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 0.75rem;
|
|
padding-bottom: 0.4rem;
|
|
border-bottom: 3px solid #444;
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
padding: 0;
|
|
margin: 1rem 0;
|
|
list-style: none;
|
|
}
|
|
|
|
nav a {
|
|
background: #2980b9;
|
|
color: #fff;
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
transition: background 0.3s, transform 0.3s;
|
|
}
|
|
|
|
nav a:hover {
|
|
background: #1c5a85;
|
|
transform: scale(1.07);
|
|
}
|
|
|
|
section {
|
|
background: #fff;
|
|
margin: 1rem 0;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
|
|
animation: fadeIn 1s ease;
|
|
}
|
|
|
|
section img {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
margin-bottom: 0.5rem;
|
|
display: block;
|
|
}
|
|
|
|
form {
|
|
background: #fff;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin: 1rem 0;
|
|
box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
margin-bottom: 0.75rem;
|
|
border: 1px solid #bbb;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
button {
|
|
width: 48%;
|
|
padding: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
background: #2980b9;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
button[type="reset"] {
|
|
background: red;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
margin: 2rem 0 1rem 0;
|
|
color: #888;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.animal-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 3rem;
|
|
}
|
|
|
|
/* Layouts for larger screens */
|
|
/* Tablet/Medium screen */
|
|
@media (min-width: 600px) and (max-width: 899px) {
|
|
body {
|
|
padding: 0 2rem;
|
|
}
|
|
|
|
nav ul {
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
section,
|
|
form {
|
|
max-width: 650px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.2rem;
|
|
}
|
|
}
|
|
|
|
/* Desktop/large Screen */
|
|
@media (min-width: 900px) {
|
|
body {
|
|
padding: 0 4rem;
|
|
}
|
|
|
|
nav ul {
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
gap: 2rem;
|
|
}
|
|
|
|
section,
|
|
form {
|
|
max-width: 900px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.animal-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
} |