main_web/MTG/style.css
2022-09-21 17:41:28 -04:00

335 lines
6.2 KiB
CSS

*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
/* background-color: rgb(78, 69, 202); */
/* background: rgb(2,0,36); */
background: radial-gradient(circle, #792f22 0%, #4f644f 47%, rgb(108, 127, 131) 100%);
/* background-color: #85640b; */
margin: 0;
display: flex;
/* height: 100vh; */
}
html{
height: 100vh;
font-size:110%;
}
#full{
color:rgb(165, 162, 162);
}
main {
display: flex;
flex-shrink: 1;
justify-content:center;
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva,
Verdana, sans-serif;
flex-wrap: wrap;
align-content: center;
width: 100vw;
/* height: 100vh; */
position: relative;
margin-top: 70px;
}
.name {
font-size: 4vw;
display: flex;
margin: 0 0 10px;
padding: 10px 0;
opacity: 0.9;
background-color: #eee;
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #eee),
color-stop(100%, #ccc)
);
background-image: -webkit-linear-gradient(top, #eee, #aaa);
background-image: -moz-linear-gradient(top, #eee, #aaa);
background-image: -ms-linear-gradient(top, #eee, #aaa);
background-image: -o-linear-gradient(top, #eee, #aaa);
background-image: linear-gradient(top, #eee, #aaa);
border: 1px solid #999;
border-bottom: 1px solid #bbb;
border-radius: 30px;
text-shadow: 0 1px 0 #eee;
background-color: #eee;
width: auto;
/* min-height: px; */
justify-content: center;
align-content: center;
}
.life {
opacity: 0.9;
background-color: #eee;
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #eee),
color-stop(100%, #ccc)
);
background-image: -webkit-linear-gradient(top, #eee, #aaa);
background-image: -moz-linear-gradient(top, #eee, #aaa);
background-image: -ms-linear-gradient(top, #eee, #aaa);
background-image: -o-linear-gradient(top, #eee, #aaa);
background-image: linear-gradient(top, #eee, #aaa);
border: 1px solid #999;
border-bottom: 1px solid #bbb;
border-radius: 30px;
color: #333;
/* padding: 10px 0; */
text-shadow: 0 1px 0 #eee;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
/* height:2rem; */
height: calc(100%-35px);
min-width: auto;
font-size: 7vw;
user-select: none;
/* margin-bottom: -50px; */
}
.life div {
margin: 10px;
}
.player {
display: flex;
flex-direction: column;
flex-wrap: wrap;
margin: min(1rem, 1rem);
/* margin-bottom: -100px; */
/* max-width: max-content; */
/* width: clamp(min-content, max-content, max-content+1rem); */
width:fit-content;
/* max-width: 25%; */
}
.buttons {
font-size: 2.95em;
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva,
Verdana, sans-serif;
/* color: #333; */
color:rgb(141, 140, 140);
text-shadow: 0 1px 0 #eee;
margin-top: 3px;
user-select: none;
align-items: center;
}
.buttons:focus, .lifeDown:focus, .lifeUp:focus{ -webkit-animation: beat 1s ease-in-out backwards;
animation: beat 1s ease-in-out backwards;
}
.buttons:active, .lifeDown:active, .lifeUp:active{
-webkit-animation: none;
animation: none;
}
#buttonWrapper {
display: flex;
flex-direction: row;
justify-content:space-evenly;
/* z-index: 100; */
width: 75%;
border-radius: 30px;
opacity: 0.6;
background-color: #eee;
position:absolute;
top: 5px;
right: 0;
padding-right: 5px;
align-content: center;
}
.buttonText {
font-size: 1.5vw;
}
#d20 {
width: 2.95em;
}
#center{
color: red;
}
.fiveLife {
display: flex;
position: relative;
z-index: 10;
/* font-size: 3rem; */
}
.lifeUp{
font-size: 8vw;
color: #00cc00
}
.lifeDown{
font-size: 8vw;
color:#e60000
}
.vert{
flex-direction: column;
font-size: 5rem ;
}
.lifeFlex{
flex-direction: column
}
/* Container holding the image and the text */
.container {
margin-top: 3px;
/* display: flex; */
position: relative;
flex-direction: row;
/* text-align: center; */
}
/* Centered text */
.centered {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
color: #792f22;
font-size: .70em;
}
/*
:root{
--black: rgb(28, 29, 36);
--white: whitesmoke;
--dark-red: #a8041d;
--dark-green: #174240;
--red: #eb0404;
--green: #01c321;
}
#centralizar{
position: relative;
left: 50%;
transform: translateX(-50%);
}
.container{
width: 70%;
max-width: 400px;
padding: 30px 50px;
position: absolute;
left: 50%;
top: 50%;
background-color: whitesmoke;
transform: translate(-50%,-50%);
border-radius: 8px;
}
*\
\*
#result{
position: absolute;
z-index: 2;
left: 50%;
top: 28%;
transform: translateX(-50%);
font-size: 40px;
}
img{
width: 50%;
margin-bottom: 5px;
position: relative;
left: 25%;
}
p{
text-align: center;
margin-bottom: 25px;
font-size: 18px;
}
.modificador{
width: 145px;
height: 46px;
display: flex;
margin-bottom: 25px;
border: 3px solid rgb(28, 29, 36);
border-radius: 5px;
}
input[type="number"]{
background-color: var(--white);
-moz-appearance: textfield;
text-align: center;
font-size: 30px;
border: none;
width: 80px;
pointer-events: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
button{
width: 30px;
color: #3264fe;
background-color: var(--white);
border: none;
font-size: 38px;
cursor: pointer;
}
.botao{
background-color: var(--black);
border: none;
outline: none;
color: whitesmoke;
font-size: 16px;
padding: 15px 0;
width: 150px;
border-radius: 5px;
}
.botao:hover{
cursor: pointer;
background-color: #08080c;
transition: ease 0.3s;
}
*/
.spin{
-webkit-animation: spin 0.3s linear;
-moz-animation: spin 0.3s linear;
animation: spin 0.3s linear;
animation-duration: 0.3s;
}
@-webkit-keyframes spin{
0%{-webkit-transform: rotate(0deg);}
100%{-webkit-transform: rotate(120deg);}
}
@-moz-keyframes spin{
0%{-moz-transform: rotate(0deg);}
100%{-moz-transform: rotate(120deg);}
}
@keyframes spin{
0%{transform: rotate(0deg);}
100%{transform: rotate(120deg);}
}
@media only screen and (max-width: 460px){
h1{
font-size: 26px;
}
p{
font-size: 20px;
}
}