1
0
web-semprace/old/css/styles.css

269 lines
4.0 KiB
CSS

* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: "Kanit", sans-serif;
}
:root {
--clrBlue: #444b64;
--clrRed: #d65343;
--clrGreen: #90a9a1;
--clrGrey400: #e2ba84;
--clrGrey200: #f2dfc7;
}
body,
html {
height: 100%;
}
body {
background-color: var(--clrGrey200);
display: flex;
flex-direction: column;
color: var(--clrBlue);
}
h1 {
color: var(--clrRed);
}
header {
display: flex;
justify-content: center;
align-items: center;
padding-block: 1rem;
position: relative;
}
header::before {
content: "";
position: absolute;
inset: 2rem 0 2rem 0;
background-color: var(--clrGreen);
z-index: -1;
}
header img {
width: 100%;
height: 80px;
object-fit: contain;
}
a {
cursor: pointer;
font: inherit;
text-decoration: none;
font-size: 1rem;
}
a span {
font-size: 0.8rem !important;
transition: 300ms ease;
}
a:hover span {
transform: translateX(0.2rem);
}
.party__ples {
text-align: center;
margin-top: 4rem;
}
.party__ples img {
height: 6rem;
}
.hero__button {
padding: 0.5rem 1rem;
border: 3px solid var(--clrBlue);
font-weight: 800;
color: var(--clrRed);
border-radius: 5px;
background-color: var(--clrGrey400);
text-transform: uppercase;
font-size: 1.2rem;
width: fit-content;
margin: 4rem auto;
position: relative;
display: flex;
align-items: center;
gap: 0.2rem;
}
.hero__button img {
position: absolute;
height: 4rem;
}
.hero__button .doprava {
left: -1rem;
top: 50%;
transform: translate(-100%) translateY(-50%) rotate(10deg);
height: 3rem;
animation: p 1s linear infinite alternate-reverse;
}
@keyframes p {
from {
transform: translate(-90%) translateY(-50%) rotate(10deg);
}
to {
transform: translate(-100%) translateY(-50%) rotate(10deg);
}
}
.hero__button .doleva {
right: -1rem;
top: 50%;
animation: l 1s linear infinite alternate-reverse;
}
@keyframes l {
from {
transform: translate(90%) translateY(-50%);
}
to {
transform: translate(100%) translateY(-50%);
}
}
@media (max-width: 510px) {
header::before {
inset: 2.7rem 0 2.7rem 0;
}
}
.cenik__img {
display: flex;
gap: 1rem;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 1rem;
}
.cenik__img img {
max-width: 100%;
width: 30rem;
object-fit: contain;
}
.cenik {
display: flex;
flex-direction: column;
border: 1px solid var(--clrRed);
width: 30rem;
padding-inline: 1rem;
color: var(--clrRed);
border-radius: 10px;
}
.cenik div {
display: flex;
align-items: center;
gap: 1rem;
justify-content: space-between;
padding-block: 1rem;
position: relative;
}
.cenik div p {
display: grid;
text-align: right;
gap: 0.3rem;
font-weight: 600;
width: min(190px, 100%);
}
.cenik div p:last-child {
font-weight: 800;
font-size: 1.2em;
}
.cenik div + div {
border-top: 1px solid var(--clrRed);
}
.cenik div p span {
color: var(--clrBlue);
font-size: 0.9em;
}
@media (max-width: 400px) {
.cenik div {
font-size: 14px;
}
}
.video__section {
background-color: var(--clrGrey400);
display: grid;
place-items: center;
padding: 1rem;
}
iframe {
border-radius: 5px;
aspect-ratio: 16/9;
width: min(560px, 100%);
}
.info {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 3rem;
gap: 3rem;
padding: 1rem;
}
.info__table {
display: grid;
gap: 2rem;
}
@media (min-width: 963px) {
.info__table {
grid-template-columns: repeat(2, 450px);
}
}
@media (max-width: 963px) {
.info__table {
max-width: 600px;
}
}
@media (max-width: 403px) {
.party__ples img {
height: 5rem;
}
}
.info__table h3 {
color: var(--clrRed);
}
.info__table > * {
display: flex;
align-items: center;
gap: 2rem;
}
.info__table img {
height: 4rem;
}
.plakat {
max-width: calc(100% - 2rem);
width: 30rem;
margin: 4rem auto;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
footer {
text-align: center;
padding: 5rem 1rem 2rem 1rem;
}