JSFiddle - React, Tailwind, and code Playground
CSS
@font-face {
font-family: 'Rude Cookie Brush';
src: url(../fonts/Rude Cookie Brush.otf) format("opentypefont");
}
body {
background-image: url(../images/background.jpg);
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
color: #8d7200;
font-family: 'Rude Cookie Brush', Arial, Verdana, sans-serif;
font-size: 30px;
}
nav {
position: absolute;
margin: 0;
background-color: rgba(55,119,189,0.1);
font-family: 'Times New Roman', sans-serif;
color: #FFFFFF;
font-size: 25px;
font-weight: bold;
text-shadow: 1px 1px lightgray;
letter-spacing: 5px;
}
nav ul {
padding: 0;
margin: 0;
position: relative;
list-style-type: none;
z-index: 999;
}
nav ul li {
margin: 0 -7px 0 0;
display: inline-block;
background-color: rgba(55,119,189,0);
}
nav a {
display: block;
padding: 0 20px;
color: #FFFFFF;
font-size: 20px;
line-height: 60px;
text-decoration: none;
transition: background-color .5s ease-in-out, border-bottom .5s ease-in-out;
}
nav a:hover, nav a:focus {
background-color: #84C945;
border-bottom: 4px solid #FBFFCE;
}
nav ul ul {
display: none;
position: absolute;
top: 100%;
background-color: rgba(55,119,189,0.3)
}
nav ul ul a {
border-bottom: none;
}
nav ul li:hover > ul {
display: inherit;
}
nav ul ul li {
min-width: 170px;
display: list-item;
position: relative;
}
nav ul ul ul {
position: absolute;
top: 0;
left: 100%;
}
nav ul ul ul a {
padding: 0 20px 0 50px;
}
.region {
float: left;
width: 35px;
height: 35px;
margin: 13px 0 0 8px;
}
header {
position: relative;
height: 400px;
overflow: hidden;
background-image: url(../images/header.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
box-shadow: 2px 2px 5px gray;
}
/*-- Start header animation --*/
.h1a, .h1b {
position: relative;
text-align: center;
backface-visibility: hidden;
}
.h1a span {
display: inline-block;
position: relative;
top: 70px;
font-size: 200px;
font-weight: bold;
color:...