Projet_Prog_Web/CSS/etrange_decouverte.css

187 lines
4.3 KiB
CSS

body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
color:white;
font-family: 'Special Elite', cursive;
background-color: black;
height: 95vh;
}
header {
color: #BF0909;
font-family: 'Special Elite', cursive;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
flex: 1;
}
h1 {
font-size: 4vw;
margin-bottom:0.5vw;
}
header a {
text-decoration: none;
color: #494949;
}
header a:hover {
color: white;
}
#main {
display: flex;
flex: 4;
}
#content {
display: flex;
flex-direction: column;
justify-content: space-around;
width: 50vw;
}
#text {
font-family: 'Special Elite', cursive;
font-size: 1.8vw;
text-align: center;
color: white;
cursor: pointer;
}
.phrase{
opacity:0;
margin:0.1vh 0vw 0.1vh 0vw;
}
#p1{
animation: fade 2s forwards;
}
#p{
animation: fade 2s forwards;
}
@keyframes fade {
0% {opacity :0}
100% {opacity:1}
}
#p1{animation-delay:0.5s}
.mot{
margin:0;
}
#boisson{
color:white;
font-weight: bold;
font-size: 1.8vw;
font-family: 'Special Elite', cursive;
background:black;
border:none;
}
#boisson:focus{
outline:none
}
#boisson option{
background:#494949;
border:none;
font: -moz-pull-down-menu;
}
#arrowBlock{
height:2vh;
width:50vw;
}
#arrow{
height:2vh;
width:auto;
position:relative;
right:-25vw;
top:-3vh;
animation: bounce 1s forwards;
animation-iteration-count:infinite;
}
@keyframes bounce {
50% {top:-6vh}
}
#buttons {
display: flex;
justify-content: space-around;
}
.button {
outline: none;
border:0.2vw solid #b9b9b9;
border-radius: 4vw;
min-width: 15vw;
width :20vw;
padding: 1vw 1.2vw 1vw 1.2vw;
color: black;
font-family: 'Special Elite', cursive;
font-size: 1.5vw;
background-image: linear-gradient(to top, black -50%, #BF0909 80%);
cursor : pointer;
}
.button:hover {
border: 0.2vw solid white;
box-shadow: 0 0 3vw #B0C4DE;
}
.button:active {
background-image: linear-gradient(to top, #BF0909 20%, black 150%);
}
/* Test d'animation */
@keyframes oscille {
from {
transform: rotate(0);
}
25% {
transform: rotate(8deg);
}
75% {
transform: rotate(-8deg);
}
to {
transform: rotate(0);
}
}
footer{
flex:0.5;
display:flex;
flex-direction: column;
justify-content:flex-end;
align-items: center;
font-size:1vw;
margin-top:2vw;
}
#names{
margin : 0;
}