Files
omg-consulting.info/styles.css

56 lines
823 B
CSS

body {
font-family: Arial, sans-serif;
background-color: #000;
color: #fff;
margin: 0;
padding: 0;
}
header, footer {
background-color: #000;
color: #fff;
text-align: center;
padding: 1em 0;
}
main {
padding: 2em;
display: flex;
justify-content: space-around;
}
.consultant {
border: 1px solid #fff;
margin: 1em;
padding: 1em;
width: 30%;
cursor: pointer;
transition: opacity 0.3s ease;
}
.consultant:hover {
opacity: 0.7;
}
.consultant.active {
opacity: 1;
}
.consultant-details {
display: none;
background-color: #111;
padding: 1em;
margin-top: 1em;
width: 80%;
animation: expand 0.5s ease-out forwards;
}
@keyframes expand {
from {
max-height: 0;
}
to {
max-height: 500px;
}
}