gilroyhacks.com/css/general.css

284 lines
4.9 KiB
CSS
Raw Normal View History

2022-05-26 22:09:31 -07:00
/*
Gilroy Hacks Website Source Code -> CSS (https://gilroyhacks.com)
For more info, contact jamesdinh77 (at) protonmail (dot) com
*/
html {
scroll-behavior: smooth;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
2022-05-27 20:37:36 -07:00
nav {
height: auto;
width: 100%;
overflow: hidden;
top: 0;
left: 0;
position: fixed;
flex-wrap: nowrap;
z-index: 100;
}
nav * {
padding: 0;
2022-05-29 22:39:53 -07:00
margin: 0px 5px;
2022-05-27 20:37:36 -07:00
list-style: none;
box-sizing: border-box;
z-index: 100;
}
2022-05-29 22:39:53 -07:00
#nav-logo {
margin-top: 5px;
}
#nav-logo-a {
position: relative;
}
2022-05-27 20:37:36 -07:00
nav ul {
float: right;
margin-right: 20px;
}
nav li {
display: inline-block;
2022-05-29 14:13:10 -07:00
line-height: 30px;
margin: 10px 7px;
padding: 3px 5px;
cursor: pointer;
2022-05-27 20:37:36 -07:00
}
2022-05-29 14:13:10 -07:00
nav li a {
/*color:rgb(136, 180, 231);*/
color:rgb(233, 203, 104);
2022-05-27 20:37:36 -07:00
font-size: 18px;
2022-05-29 14:13:10 -07:00
text-decoration: none;
position: relative;
2022-05-27 20:37:36 -07:00
}
2022-05-29 14:13:10 -07:00
nav li a.active,a:hover {
color: rgba(233, 203, 104, 0.774);
2022-05-27 20:37:36 -07:00
transition: .5s;
}
2022-05-29 14:13:10 -07:00
nav li a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 0.1em;
background-color: hotpink;
opacity: 1;
transition: opacity 300ms, transform 300ms;
transform: scale(0);
transform-origin: center;
}
nav li a:hover::after,
nav li a:focus::after{
transform: scale(1);
}
2022-05-27 20:37:36 -07:00
.checkbtn {
2022-05-29 22:39:53 -07:00
font-size: 23px;
2022-05-27 20:37:36 -07:00
color: white;
float: right;
2022-05-29 22:39:53 -07:00
line-height: 59px;
2022-05-27 20:37:36 -07:00
margin-right: 20px;
cursor: pointer;
display: none;
2022-05-29 22:39:53 -07:00
2022-05-27 20:37:36 -07:00
}
#check {
display: none;
}
2022-05-29 22:39:53 -07:00
#nav-links-container {
display: flex;
margin: 0;
padding: 0;
height: 59px;
float: right;
flex-wrap: nowrap;
flex-direction: row-reverse;
align-content: stretch;
}
2022-05-29 14:13:10 -07:00
#sign-up {
2022-05-29 22:39:53 -07:00
padding: 3px 7px;
margin: 14px 7px 14px 5px;
2022-05-29 14:13:10 -07:00
border-radius: 5px;
2022-05-29 22:39:53 -07:00
font-size: 16px;
2022-05-29 14:13:10 -07:00
background-color: rgb(140, 42, 165);
color: bisque;
2022-05-29 22:39:53 -07:00
display: flex;
place-items: center;
2022-05-29 14:13:10 -07:00
}
2022-05-27 20:37:36 -07:00
2022-05-29 14:13:10 -07:00
#sign-up:hover {
background-color: blueviolet;
transition: 0.5s;
cursor: pointer;
2022-05-29 22:39:53 -07:00
padding: 4px 8px;
margin: 13px 7px 13px 0;
2022-05-29 14:13:10 -07:00
font-size: 17px;
}
2022-05-27 20:37:36 -07:00
2022-05-29 22:39:53 -07:00
@media (max-width: 800px) {
.checkbtn {
display: inline-block;
}
nav ul {
position: fixed;
width: 100%;
height: 250px;
margin-top: 60px;
margin-right: 0;
background: rgb(24, 24, 24);
top: -100%;
text-align: center;
/*animation: growOut 300ms ease-in-out forwards*/
}
nav ul li {
display: block;
margin: 20px 0;
line-height: 30px;
}
#check:checked ~ul {
top: 0;
}
.checkbtn {
display: inline-block;
}
#card-container {
grid-template-columns: repeat(1, 1fr) !important;
}
}
@media (max-width: 500px) {
.checkbtn {
display: none;
}
}
#spots-container {
display: flex;
place-items: center;
}
.blob {
background: black;
border-radius: 50%;
box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
margin: 10px 4px;
height: 10px;
width: 10px;
transform: scale(1);
animation: pulse-black 2s infinite;
position: relative;
}
.blob.green {
background: rgba(51, 217, 178, 1);
box-shadow: 0 0 0 0 rgba(51, 217, 178, 1);
animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(51, 217, 178, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(51, 217, 178, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(51, 217, 178, 0);
}
}
2022-05-29 16:50:10 -07:00
#header-background {
2022-05-26 22:09:31 -07:00
background-image: none;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
height: 100vh; /* makes it so it covers the entire page */
2022-05-29 16:50:10 -07:00
}
#header {
width: 100%;
height: 100%;
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
text-align: center;
position: relative;
background-image: linear-gradient(#0d111733 50%, #0d11175e 60%, #0d1117 100%);
}
#header-subtitle-date {
padding: 5px;
}
#header-subtitle-spots {
padding: 5px;
}
#entrance-arrow {
max-height: 90px;
max-width: 35px;
height: 50px;
position: absolute;
bottom: 10px;
float: bottom;
animation: bounce 3s infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-5px);
}
60% {
transform: translateY(-3px);
}
}
main {
width: 100%;
padding: 10px 0 10px 0;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
margin: auto;
display: grid;
padding-bottom: 30px;
}
section {
width: auto;
padding: 70px 0px 0 0px;
text-align: center;
align-items: center;
max-width: 1500px;
}
.line {
width: 200px;
margin-bottom: 5px;
2022-05-26 22:09:31 -07:00
}