galerija-bot/stil.css

169 lines
2.3 KiB
CSS

@font-face {
font-family: CenturyGothic;
src: url("nu_century_gothic.ttf") format("truetype");
}
body {
padding: 0;
margin: 0;
font-family: CenturyGothic;
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1, h2 {
text-transform: uppercase;
display: inline;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: .9rem;
font-weight: normal;
}
.zaslon {
position: relative;
width: 100%;
margin: 2rem 0;
height: auto;
}
video {
width: 100%;
height: auto;
box-sizing: border-box;
border: 5px solid black;
border-top-left-radius: 50% 12%;
border-top-right-radius: 50% 12%;
border-bottom-left-radius: 50% 12%;
border-bottom-right-radius: 50% 12%;
}
#predvajaj {
display: none;
font-size: 10rem;
font-weight: bold;
opacity: .7;
position: absolute;
left: 25%;
top: 25%;
width: 50%;
height: 50%;
border-radius: 100%;
cursor: pointer;
border: none;
background-color: white;
}
.gumbi {
position: absolute;
bottom: 0;
width: 100%;
display: none;
}
.gumbi button {
position: absolute;
display: flex;
width: 4rem;
height: 4rem;
border-radius: 100%;
font-size: 6rem;
font-weight: bold;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, 0.5);
border: none;
cursor: pointer;
background-size: contain;
background-repeat: no-repeat;
}
#levo {
left: 5rem;
bottom: 2rem;
}
#desno {
right: 5rem;
bottom: 2rem;
}
#ravno {
left: calc(50% - 2.5rem);
bottom: 1rem;
width: 5rem;
height: 5rem;
}
#levo:before,
#desno:before,
#ravno:before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-size: contain;
background-repeat: no-repeat;
}
#levo:before,
#desno:before,
#ravno:before {
width: 80%;
height: 80%;
left: 10%;
top: 10%;
}
#levo:before,
#desno:before {
top: 20%;
}
#ravno:before {
background-image: url(gor.svg);
width: 65%;
height: 65%;
top: 17.5%;
left: 17.5%;
}
#levo:before {
background-image: url(desno.svg);
transform: scaleX(-1);
}
#desno:before {
background-image: url(desno.svg);
}
.predvajam .gumbi {
display: block;
}
#glavno {
max-width: 640px;
margin-left: auto;
margin-right: auto;
padding: 1rem;
}
.info {
font-size: .9rem;
}
.info p {
margin: 0;
}