mywillpower.org/public/willpower.css

126 lines
2.1 KiB
CSS
Raw Normal View History

2022-02-13 00:49:14 -05:00
* {
box-sizing: border-box;
}
html, body {
margin: 0px;
height: 100%;
2022-02-13 00:56:20 -05:00
font-family: sans-serif;
2022-02-13 00:49:14 -05:00
}
.modal.background {
background-image: url('/tip.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
width: 100%;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
2022-02-13 00:49:14 -05:00
}
.modal.box {
background-color: #A9D0F5;
border-radius: 15px;
border-style: solid;
border-color: #FFFFFF;
text-align: center;
width: 70%;
2022-02-13 00:49:14 -05:00
padding: 1em;
-webkit-animation-name: from_top;
-webkit-animation-duration: 1.5s;
animation-name: from_top;
2022-02-13 00:56:20 -05:00
animation-duration: 1.5s;
2022-02-13 00:49:14 -05:00
position: absolute;
z-index: 10;
}
.modal.buttons {
display: flex;
gap: 2em;
}
2022-02-13 00:49:14 -05:00
.modal.button {
border-radius: 5px;
border: solid;
color: #000000;
padding: 15px 0;
2022-02-13 00:49:14 -05:00
text-align: center;
transition-duration: 0.3s;
font-weight: bold;
font-size: 1em;
flex: 1;
2022-02-13 00:49:14 -05:00
}
.modal.button:hover {
border: solid;
color: #FFFFFF;
cursor: pointer;
2022-02-13 01:03:03 -05:00
border-color: #FFFFFF;
2022-02-13 00:49:14 -05:00
}
.modal.button.accept {
background-color: #04B404;
}
.modal.button.decline {
background-color: #FF1A1A;
}
.modal.loader {
border: 16px solid #C9C9C9;
border-top: 16px solid #000000;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
margin: -4em auto auto -4em;
display: flex;
top: 50%;
left: 50%;
position: absolute;
}
#video {
background-image: url('/willpower.gif');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
width: 100%;
z-index: 255;
position: absolute;
display: none;
}
@-webkit-keyframes from_top {
from {
top: -25%;
opacity: 0;
}
to {
top: 25%;
opacity: 1;
}
}
@keyframes from_top {
from {
top: -25%;
opacity: 0;
}
to {
top: 25%;
opacity: 1;
}
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}