192 lines
3.3 KiB
CSS
192 lines
3.3 KiB
CSS
:root {
|
|
--background-rgb: 0 0 0;
|
|
--secondary-background-rgb: 60 60 60;
|
|
|
|
|
|
/*--primary-rgb: 0 158 0; /* green */
|
|
--primary-rgb: 33 150 243; /* blue */
|
|
|
|
/*--secondary-rgb: 0 85 102; /* petroley-blue */
|
|
/*--secondary-rgb: 59 83 102; /* dark-blue */
|
|
--secondary-rgb: 22 50 102; /* darker-blue */
|
|
|
|
--detail-rgb: 255 255 255; /* white */
|
|
|
|
}
|
|
|
|
body {
|
|
background-color: rgb(var(--background-rgb));
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
/* Navigation */
|
|
|
|
.nav {
|
|
position: fixed;
|
|
left: auto;
|
|
right: 0px;
|
|
height: 50%;
|
|
width: 10%;
|
|
z-index: 7;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-evenly;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.nav > .nav-gap {
|
|
flex-grow: 1;
|
|
background-color: none;
|
|
}
|
|
|
|
.nav > .nav-flag {
|
|
background-color: rgb(var(--detail-rgb));
|
|
border-color: rgb(var(--detail-rgb));
|
|
border-top-left-radius: 15px;
|
|
border-bottom-left-radius: 15px;
|
|
border-width: 5px;
|
|
border-style:solid;
|
|
|
|
flex-grow: 2;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
color: black;
|
|
text-decoration: none;
|
|
width: 70%;
|
|
font-family: "Source Code Pro", monospace;
|
|
font-size: fill;
|
|
|
|
transition:
|
|
border-color 0.3s,
|
|
border-width 0.3s,
|
|
border-right-width 0.3s,
|
|
flex-grow 0.3s,
|
|
font-size 0.3s,
|
|
width 0.3s;
|
|
}
|
|
|
|
.nav > .nav-flag:hover {
|
|
border-color: rgb(var(--secondary-rgb));
|
|
border-width: 10px;
|
|
border-right-width: 0px;
|
|
flex-grow: 5;
|
|
font-size: 140%;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
|
|
/* Content */
|
|
|
|
.content {
|
|
z-index: 1;
|
|
overflow: auto;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
scroll-snap-align: x mandatory;
|
|
}
|
|
|
|
.content > .card {
|
|
display: flex;
|
|
position: relative;
|
|
flex-basis: 100vh;
|
|
scroll-snap-align: center;
|
|
}
|
|
|
|
.content:after,
|
|
.content:before {
|
|
content: "";
|
|
height: 5px;
|
|
position: absolute;
|
|
left: 50%;
|
|
translate: -50% 0%;
|
|
background-color: rgb(var(--primary-rgb));
|
|
z-index: 5;
|
|
}
|
|
|
|
.content::before {
|
|
width: 15%;
|
|
top: 0rem;
|
|
border-bottom-left-radius: 1rem;
|
|
border-bottom-right-radius: 1rem;
|
|
}
|
|
|
|
.content:after {
|
|
width: 25%;
|
|
bottom: 0rem;
|
|
border-top-left-radius: 1rem;
|
|
border-top-right-radius: 1rem;
|
|
}
|
|
|
|
|
|
/* Life */
|
|
|
|
.content > #life {
|
|
top: 0px;
|
|
left: 0px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-grow: 1;
|
|
padding: 1rem;
|
|
z-index: 2;
|
|
background: linear-gradient(rgba(255, 0, 0, 0)40%, rgb(var(--primary-rgb)));
|
|
}
|
|
|
|
.content > #life > #planet {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url(../img/planeta.png);
|
|
background-size: cover;
|
|
z-index: 1;
|
|
}
|
|
|
|
#life > .magic,
|
|
#life > .link {
|
|
font-family: "Source Code Pro", monospace;
|
|
color: rgb(var(--detail-rgb));
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
z-index: 7;
|
|
}
|
|
|
|
#life > .magic {
|
|
position: relative;
|
|
font-size: 4.25rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
#life > .magic:before,
|
|
#life > .magic:after {
|
|
content: "";
|
|
height: 4px;
|
|
width: 4px;
|
|
position: absolute;
|
|
border: 2px solid rgb(var(--detail-rgb));
|
|
border-radius: 2px;
|
|
}
|
|
|
|
#life > .magic:before {
|
|
top: 45%;
|
|
right: -1.5rem;
|
|
}
|
|
|
|
#life > .magic:after {
|
|
top: 45%;
|
|
left: -1.5rem;
|
|
}
|
|
|
|
#life > .link {
|
|
font-size: 1.5rem;
|
|
text-shadow: 0px 0px 0.5rem rgb(var(--detail-rgb));
|
|
font-weight: 400;
|
|
letter-spacing: 0.3rem;
|
|
text-decoration: none;
|
|
}
|