jean-cloud_website/css/main.css

383 lines
6.9 KiB
CSS

@import url("font-sourcesanspro.css");
html {
background-color: #1c0920;
color: white;
}
a {
text-decoration: none;
color: #df7366;
}
#header a {
color: inherit;
}
body {
font-size: 15pt;
line-height: 1.85em;
font-family: 'Source Sans Pro', sans-serif;
font-weight: 300;
}
#nav {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
#nav #content {
width: 100%;
text-align: center;
padding: 1.5em 0 31.5em 0;
z-index: 1;
overflow-x: hidden;
}
ul, li {
list-style: none;
}
#nav #content > ul {
line-height: 0px;
position: relative;
display: inline-block;
margin: 0;
height: 21px;
border-left: solid 1px rgba(192, 192, 192, 0.35);
border-right: solid 1px rgba(192, 192, 192, 0.35);
padding: 0 0.5em;
}
#nav #content > ul > li {
display: inline-block;
margin: -9px 0.5em 0 0.5em;
border-radius: 0.5em;
padding: 0.85em;
border: solid 1px transparent;
position: relative;
}
#nav #content > ul::before {
left: 100%;
margin-left: 1px;
}
#nav #content > ul::after {
right: 100%;
margin-right: 1px;
}
#nav #content > ul::before, #nav #content > ul::after {
content: '';
display: block;
width: 300%;
position: absolute;
top: 50%;
margin-top: -2px;
height: 3px;
border-top: solid 1px rgba(192, 192, 192, 0.35);
border-bottom: solid 1px rgba(192, 192, 192, 0.35);
}
.dropdown {
left: 0;
top: 100%;
font-size: 0.88em;
margin: 0.4em -35px 0;
}
.dropdown, .submenu {
display: none;
position: absolute;
z-index: 5;
text-align: left;
background: rgba(255, 255, 255, 0.975);
padding: 0.5em 1em;
border-radius: 0.5em;
box-shadow: 0 0.15em 0.25em 0 rgba(0, 0, 0, 0.25);
line-height: 1em;
}
.submenu {
left: calc(100% + 1em);
top: 0;
margin: 0;
width: 115%;
}
.dropdown a {
color: rgb(91, 91, 91);
padding: 0.5em 0;
display: block;
}
.dropdown a:hover{
color: #ef8376;
}
.dropdown li {
border-top: solid 1px rgba(128, 128, 128, 0.2);
position: relative;
}
.dropdown li:first-child {
border-top: 0;
}
.dropdown::before {
content: '';
position: absolute;
left: 50%;
top: -0.45em;
margin-left: -0.75em;
border-bottom: solid 0.5em rgba(255, 255, 255, 0.975);
border-left: solid 0.7em rgba(64, 64, 64, 0);
border-right: solid 0.7em rgba(64, 64, 64, 0);
}
li:hover .dropdown, .dropdown li:hover .submenu, li:focus-within .dropdown, .dropdown li:focus-within .submenu {
display: block;
}
#header {
height: 100vh;
text-align: center;
min-height: 40em;
}
#header h1 {
font-size: 3.75em;
line-height: 1em;
font-weight: 400;
margin: 0;
}
#header::before {
content: '';
display: inline-block;
vertical-align: middle;
height: 100%;
}
#header .inner {
position: relative;
z-index: 1;
margin: 0;
display: inline-block;
vertical-align: middle;
}
#header header > p {
font-size: 1.25em;
margin: 0;
}
#header hr {
top: 1.5em;
margin-bottom: 3em;
border-top: solid 1px rgba(192, 192, 192, 0.35);
border-bottom: solid 1px rgba(192, 192, 192, 0.35);
position: relative;
height: 3px;
border-left: none;
border-right: none;
}
#header hr::before, #header hr::after {
background: rgba(192, 192, 192, 0.35);
content: '';
position: absolute;
top: -8px;
display: block;
width: 1px;
height: 21px;
}
hr::before {
left: -1px;
}
hr::after {
right: -1px;
}
#header footer {
margin: 1.5em 0 0;
}
#header footer .button {
display: inline-block;
border-radius: 100%;
width: 4.9em;
height: 4.9em;
line-height: 4.75em;
text-align: center;
font-size: 1.25em;
padding: 0.5em;
background: #df7366;
font-weight: 300;
}
@media screen and (max-width: 736px) {
#header {
min-height: 0;
padding: 5.5em 0 5em 0;
height: auto;
}
#header h1 {
font-size: 2.5em;
}
#header .inner {
padding-top: 1.5em;
padding-left: 1em;
padding-right: 1em;
}
}
#header .background {
background: linear-gradient(145deg, #3f2b4e 0%,#7b6b75 23%,#58445d 42%,#56425b 52%,#c7bbbd 81%,#422d4f 100%);
filter: blur(50px);
width: 100%;
height: 100%;
z-index: 0;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
background-size: 100% 150%;
}
#contact {
display: flex;
border: 2px solid #553f59;
width: 80%;
margin: auto;
background-color: #ffffff12;
}
#contact * {
box-sizing: border-box;
}
#contact > section {
flex-basis: 50%;
flex-grow: 1;
flex-shrink: 1;
border-left: 2px solid #553f59;
}
#contact > section:first-child {
padding: 4rem 4rem 2rem 4rem;
border: 0;
}
#contact section section {
display: table-row;
width: 100%;
white-space: nowrap;
}
#contact section section > * {
display: table-cell;
padding: 4rem 0.5rem 3rem;
border-bottom: 2px solid #553f59;
}
#contact section section p, #contact section section ul {
font-size: 1rem;
color: #d6c6d9;
}
#contact section section > *:first-child {
padding-left: 4rem;
}
#contact section section > *:last-child {
padding-right: 4rem;
width: 100%;
}
#contact input[type="text"], #contact input[type="password"], #contact input[type="email"], #contact select {
height: 3rem;
}
#contact .fields {
display: flex;
flex-wrap: wrap;
width: calc(100% + 3rem);
margin: -1.5rem 0 2rem -1.5rem;
}
#contact .fields .field{
padding: 1.5rem 0 0 1.5rem;
width: calc(100% - 1.5rem);
flex-shrink: 0;
flex-grow: 0;
}
#contact input[type="text"], #contact input[type="password"], #contact input[type="email"], #contact select, #contact textarea {
display: block;
outline: 0;
padding: 0 1rem;
text-decoration: none;
width: 100%;
background: #ffd1eb26;
border-radius: 0;
border: solid 2px #553f59;
color: inherit;
}
#contact input[type="text"]:focus, #contact input[type="password"]:focus, #contact input[type="email"]:focus, #contact select:focus, #contact textarea:focus {
border-color: #a869a7;
}
#contact input[type="submit"]:hover, #contact input[type="reset"]:hover, #contact input[type="button"]:hover, #contact button:hover, #contact .button:hover, #contact a:hover{
color: #a869a7;
}
#contact label, #contact h3 {
display: block;
font-weight: 600;
line-height: 1.5;
letter-spacing: 0.075em;
font-size: 1rem;
text-transform: uppercase;
margin: 0 0 0.75rem 0;
}
#contact textarea {
padding: 0.75rem 1rem;
}
#contact ul, #contact li {
margin: 0;
padding: 0;
}
#contact input[type="submit"], #contact input[type="reset"], #contact input[type="button"], #contact button, #contact .button {
background-color: transparent;
box-shadow: inset 0 0 0 2px;
color: inherit;
transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
border: 0;
border-radius: 0;
cursor: pointer;
display: inline-block;
font-size: 0.8rem;
font-weight: 900;
letter-spacing: 0.075em;
height: 3rem;
line-height: 3rem;
padding: 0 2rem;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
}