html {
margin: 0;
top: 0;
left: 0;
font-family: 'Oswald', sans-serif;
/*Fixed Background*/
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/res/bg.jpg);
background-attachment: fixed;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 300px;
/*Global Variables*/
--desktop-height: calc(20px + 2vw);
--mobile-height: calc(10px + 2vw);
--header-transparency: rgba(0, 0, 0, 0.7);
--image-size: 20%;
--red: #d22;
--dark-gray: #111;
--gray: #151515;
--light-gray: #222;
--quick-transition: cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
--long-transition: cubic-bezier(0.215, 0.610, 0.355, 1) 1s;
}
/* Desktop header*/
.header {
width: 100%;
left: 0;
z-index: 20;
display: flex;
position: absolute;
overflow: hidden;
transition: var(--quick-transition);
}
.header-title {
width: 100%;
color: #fff;
display: flex;
flex-wrap: nowrap;
font-size: calc(var(--desktop-height) / 2);
margin: auto 0;
}
#logo-header {
display: none;
opacity: 0;
margin: auto 0;
}
#logo-header a {
text-decoration: none;
color: #fff;
}
#logo-header img {
display: flex;
margin-left: 5px;
}
#links-header {
display: flex;
flex: 1;
margin: auto 0;
justify-content: space-around;
transition: var(--quick-transition);
}
#links-header a {
color: #eee;
text-align: center;
margin: auto 1vw;
text-decoration: none;
font-family: 'Dosis', sans-serif;
transition: var(--quick-transition);
}
.header, #links-header, #logo-header, #logo-header img{
height: var(--desktop-height);
font-size: calc(var(--desktop-height) / 2);
}
/*Hover settings*/
.header:hover {
background-color: var(--header-transparency);
height: calc(var(--desktop-height) * 1.5);
}
.header:hover > .header-title {
font-size: calc(var(--desktop-height) / 1.75);
height: calc(var(--desktop-height) * 1.5);
}
#links-header a:hover {
color: var(--red);
}
/*Sticky header*/
.sticky > #logo-header {
opacity: 1;
display: flex;
}
.sticky > #links-header {
display: flex;
flex: 1 1 0;
justify-content: flex-end;
}
.sticky {
position: fixed;
background-color: var(--header-transparency);
top: 0;
}
/* Content settings */
.content {
width: 100%;
min-height: 100%;
top: 0;
left: 0;
display: flex;
position: absolute;
flex-wrap: wrap;
flex-direction: column;
}
/* Banner settings */
#banner {
/*Sizing*/
height: 100vh;
width: 100%;
color: #fff;
overflow: hidden;
font-size: 4vw;
transition: var(--long-transition);
/*Flexbox content*/
justify-content: center;
align-items: center;
display: flex;
}
#banner h1 {
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
}
#banner img {
width: 20vw;
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
transition: var(--long-transition);
}
/* Text field settings */
#text {
display: flex;
flex-wrap: wrap;
width: 95%;
min-height: 100px;
background-color: var(--light-gray);
color: #fff;
align-self: center;
transition: var(--quick-transition);
}
#text h2 {
text-align: center;
width: 100%;
margin: 3vw 0;
font-size: 5vw;
line-height: 8vw;
background-color: var(--gray);
transition: var(--quick-transition);
color: var(--red);
}
.text-field {
width: 100%;
justify-content: center;
display: flex;
padding: 20px;
background-color: var(--gray);
margin: 0 auto;
flex-direction: row;
flex: 1;
font-size: 1.2vw;
flex-wrap: wrap;
align-items: flex-start;
text-align: center;
font-family: 'Dosis', sans-serif;
transition: var(--quick-transition);
}
.row {
width: 45%;
}
.text-field h3 {
font-size: 1.2vw;
margin: 0;
}
/*Category of descriptions*/
.category {
margin: 1.5vw 0;
display: flex;
flex-wrap: nowrap;
width: 100%;
overflow: hidden;
transition: var(--quick-transition);
filter: saturate(0%);
color: #fff;
box-shadow: 0 4px 8px -2px #000;
}
.category img {
width: 40%;
max-width: 900px;
padding: 5% 5% 5% 5%;
transition: var(--quick-transition);
}
.category:hover {
color: #c22;
box-shadow: 0 10px 8px -2px #000;
filter: saturate(100%);
}
/*Left Side settings*/
.left {
background-color: var(--dark-gray);
width: var(--image-size);
display: flex;
justify-content: center;
align-items: center;
min-width: 200px;
transition: var(--quick-transition);
}
.swap .left {
order: 1;
}
/*Right side settings*/
.right {
background-color: var(--gray);
width: calc(100% - var(--image-size));
display: flex;
flex-direction: column;
padding: 2%;
justify-content: center;
text-align: right;
transition: var(--quick-transition);
}
.right h3 {
font-size: 3vw;
margin: 0;
}
.right p {
font-size: 1.5vw;
font-style: italic;
font-family: 'Open Sans Condensed', sans-serif;
}
.swap .right {
order: 0;
text-align: left;
}
/*Webpage footer*/
#footer {
color: #fff;
display: flex;
width: 100%;
height: auto;
font-size: 1vw;
text-align: center;
align-items: center;
overflow: hidden;
align-content: space-around;
padding: 2% 0;
background-color: var(--dark-gray);
}
#footer a {
color: var(--red);
text-decoration: none;
padding: 0 0.5vw;
}
#footer-r, #footer-r a {
font-size: 1.5vw;
padding: 0;
font-style: italic;
}
/*Adaptive content using media queries*/
@media screen and (max-width: 720px) {
/*Header settings*/
.header {
position: relative;
padding: 5px 0;
background-color: var(--dark-gray);
}
.header-title {
opacity: 0;
display: none;
}
#links-header a {
font-size: 3vw;
}
.header, #links-header, #links-header a, #logo-header img {
height: var(--mobile-height);
line-height: var(--mobile-height);
}
.header:hover {
background-color: var(--header-transparency);
height: var(--mobile-height);
}
.header:hover > #links-header a {
line-height: var(--mobile-height);
font-size: 3vw;
}
/*Banner settings*/
#banner {
font-size: 4vw;
height: 300px;
}
#banner img {
width: 20vw;
}
/*Category settings*/
.category {
flex-wrap: wrap;
margin: 2vw 0;
}
.category img {
width: 30%;
margin: 0 auto;
}
/*Sides and swapping*/
.left, .right {
width: 100%;
}
.swap .left {
order: 0;
}
.left {
min-width: 200px;
}
.swap .right {
order: 1;
text-align: center;
}
.right {
padding: 10px 25px 10px 25px;
text-align: center;
}
.right h3 {
font-size: 6vw;
}
.right p {
font-size: 3vw;
margin: 0;
}
/*Text field settings*/
.row {
width: 100%;
margin: 10px 0;
}
.text-field {
font-size: 3vw;
padding: 10px;
justify-content: space-between;
}
.text-field h3 {
font-size: 4vw;
}
/*Footer settings*/
#footer {
width: 90%;
padding: 0 5%;
font-size: 4vw;
height: auto;
flex-flow: wrap;
}
#footer a {
font-size: 4vw;
padding: 0 7px 0 7px;
}
#footer-r, #footer-r a {
font-size: 3vw;
padding: 0;
}
#footer-r {
padding: 0 0 10px 0;
}
}
/*Fit text to whole screen*/
@media screen and (max-width: 1280px) {
#text {
width: 100%;
}
}
/*Scrollbar hide*/
::-webkit-scrollbar {
width: 0;
}