gilroyhacks.com/css/general.css

798 lines
14 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;
}
2022-05-30 00:43:44 -07:00
/* Nav */
2022-05-26 22:09:31 -07:00
* {
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-30 00:43:44 -07:00
text-decoration: none;
2022-05-27 20:37:36 -07:00
}
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(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-30 00:43:44 -07:00
padding: 6px 7px;
margin: 14px 15px 14px 4px;
2022-05-29 22:39:53 -07:00
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 {
2022-05-30 13:55:20 -07:00
transform: scale(1.1);
2022-05-29 14:13:10 -07:00
background-color: blueviolet;
cursor: pointer;
2022-05-30 13:55:20 -07:00
transition: 0.5s;
2022-05-29 14:13:10 -07:00
}
2022-05-27 20:37:36 -07:00
2022-05-30 00:43:44 -07:00
/* Responsive Functions */
2022-05-29 22:39:53 -07:00
@media (max-width: 800px) {
.checkbtn {
display: inline-block;
}
nav ul {
position: fixed;
width: 100%;
height: 250px;
2022-05-30 01:52:46 -07:00
margin-top: 58px;
2022-05-29 22:39:53 -07:00
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;
}
}
2022-05-30 13:55:20 -07:00
@media (max-width: 450px) {
2022-05-29 22:39:53 -07:00
.checkbtn {
display: none;
}
2022-05-30 13:55:20 -07:00
#logo {
height: 300px;
width: 300px;
}
2022-05-29 22:39:53 -07:00
}
2022-05-30 13:55:20 -07:00
2022-05-29 22:39:53 -07:00
#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-30 00:43:44 -07:00
/* Header */
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 {
2022-05-30 01:52:46 -07:00
width: 50px;
2022-05-29 16:50:10 -07:00
height: 50px;
position: absolute;
bottom: 10px;
float: bottom;
animation: bounce 3s infinite;
}
2022-05-30 13:55:20 -07:00
#entrance-arrow:hover {
font-size: 17px;
transition: 0.1s;
}
2022-05-29 16:50:10 -07:00
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-5px);
}
60% {
transform: translateY(-3px);
}
}
2022-05-30 13:55:20 -07:00
#logo {
min-height: 300px;
min-width: 300px;
}
2022-05-30 00:43:44 -07:00
/* Main Section */
2022-05-29 16:50:10 -07:00
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;
}
2022-05-30 00:43:44 -07:00
.topic {
width: auto;
font-size: 35px;
padding: 0 20px 0 20px;
color:rgb(255, 243, 205);
}
#discord-widget {
margin: 50px auto 0;
/* width: 20%; */
float: right;
}
#event-container {
display: flex;
2022-05-30 01:14:22 -07:00
flex-wrap: wrap;
2022-05-30 00:43:44 -07:00
margin-top: 20px;
2022-05-30 01:14:22 -07:00
justify-content: center;
2022-05-30 00:43:44 -07:00
}
#event-description {
padding: 10px;
max-width: 700px;
2022-05-30 01:14:22 -07:00
min-width: 400px;
2022-05-30 00:43:44 -07:00
text-align: left;
}
2022-05-31 11:07:57 -07:00
#description-heading {
text-align: center;
}
2022-05-30 01:14:22 -07:00
.list {
padding-left: 20px;
}
2022-05-30 00:43:44 -07:00
.list li{
margin: 10px 0;
}
#steps-card {
2022-05-31 11:07:57 -07:00
width: 400px;
2022-05-30 01:14:22 -07:00
min-width: 300px;
2022-05-31 17:02:24 -07:00
border-radius: 10px;
2022-05-30 00:43:44 -07:00
background-color: #0d1117;
background-color: #1e2227;
2022-05-30 13:55:20 -07:00
margin: 10px auto;
2022-05-30 00:43:44 -07:00
padding: 10px 30px;
box-shadow: 5px 5px 10px rgb(0 0 0 / 20%);
text-align: left;
}
2022-05-31 11:07:57 -07:00
#steps-header {
padding-top: 10px;
}
2022-05-30 13:55:20 -07:00
.list-item {
margin: 0 0 30px 30px;
padding: 10px;
position: relative;
2022-05-30 00:43:44 -07:00
}
2022-05-30 13:55:20 -07:00
.list-item::before {
content: "";
position: relative;
margin-right: 10px;
width: 10px;
height: 10px;
background: rgb(255, 255, 255);
border-radius: 999px;
float: left;
border: 3px solid rgb(44, 44, 44);
2022-05-30 00:43:44 -07:00
}
2022-05-31 00:57:35 -07:00
/* Timeline */
#timeline {
width: 100%;
height: 100%;
text-align: center;
2022-05-31 01:23:49 -07:00
margin-top: 50px;
2022-05-31 00:57:35 -07:00
}
#timeline-heading {
text-align: center;
margin-top: 20px;
}
.flex-parent {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.input-flex-container {
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
width: 80%;
max-width: 1000px;
position: relative;
z-index: 0;
}
input {
2022-05-31 17:02:24 -07:00
width: 22px;
height: 22px;
2022-05-31 00:57:35 -07:00
background-color: #2C3E50;
position: relative;
border-radius: 50%;
display: block;
appearance: none;
cursor: pointer;
}
input:focus {
outline: none;
}
input::before, input::after {
content: "";
display: block;
position: absolute;
z-index: -1;
top: 50%;
transform: translateY(-50%);
background-color: #2C3E50;
2022-05-31 15:20:04 -07:00
width: 80px;
/* width: 6vw; */
2022-05-31 00:57:35 -07:00
height: 5px;
}
2022-05-31 15:20:04 -07:00
input::before {
right: calc(2vw);
}
input::after {
left: calc(1vw);
}
input:checked {
background-color: #2C3E50;
}
input:checked::before {
background-color: #2C3E50;
}
input:checked::after {
background-color: #AEB6BF;
}
input:checked ~ input, input:checked ~ input::before, input:checked ~ input::after {
background-color: #AEB6BF;
}
input:checked + .dot-info span {
font-size: 13px;
color: rgb(243, 174, 252);
font-weight: bold;
}
2022-05-31 00:57:35 -07:00
2022-05-31 15:20:04 -07:00
.dot-info {
width: 25px;
height: 25px;
display: flex;
visibility: hidden;
position: relative;
z-index: -1;
left: calc((((80vw - 25px) / 20) * -1) - 1px);
}
.dot-info span {
visibility: visible;
position: absolute;
font-size: 12px;
}
.dot-info span.year {
bottom: -30px;
right: -0.2vw;
/* transform: translateX(-60%); */
}
.dot-info span.label {
top: -56px;
left: -10px;
transform: rotateZ(-45deg);
width: 70px;
text-indent: -10px;
}
2022-05-31 00:57:35 -07:00
2022-05-31 15:20:04 -07:00
#timeline-descriptions-wrapper {
width: 100%;
margin-top: 70px;
font-size: 22px;
font-weight: 400;
2022-05-31 18:02:11 -07:00
margin-bottom: 150px;
2022-05-31 15:20:04 -07:00
text-align: left;
}
#timeline-descriptions-wrapper div {
margin-top: 0;
display: none;
}
2022-05-31 00:57:35 -07:00
2022-05-31 15:20:04 -07:00
.timeline-description {
font-size: 16px;
font-weight: normal;
}
2022-05-31 00:57:35 -07:00
2022-05-31 15:20:04 -07:00
.timeline-description-subtitle {
font-size: 18px;
color: rgb(121, 120, 120);
}
.timeline-description-list li {
margin: 10px 40px;
font-size: 16px;
}
.important-text {
color: rgb(255, 126, 126);
}
input[data-description="1"]:checked ~ #timeline-descriptions-wrapper div[data-description="1"] {
display: block;
}
input[data-description="2"]:checked ~ #timeline-descriptions-wrapper div[data-description="2"] {
display: block;
}
input[data-description="3"]:checked ~ #timeline-descriptions-wrapper div[data-description="3"] {
display: block;
}
input[data-description="4"]:checked ~ #timeline-descriptions-wrapper div[data-description="4"] {
display: block;
}
input[data-description="5"]:checked ~ #timeline-descriptions-wrapper div[data-description="5"] {
display: block;
}
2022-05-31 00:57:35 -07:00
2022-05-31 15:20:04 -07:00
@media (min-width: 1250px) {
2022-05-31 00:57:35 -07:00
input::before {
left: -37.5px;
}
input::after {
right: -37.5px;
}
2022-05-31 15:20:04 -07:00
2022-05-31 00:57:35 -07:00
.dot-info {
left: calc((((1000px - 25px) / 20) * -1) - 1px);
}
2022-05-31 15:20:04 -07:00
2022-05-31 00:57:35 -07:00
#timeline-descriptions-wrapper {
margin-left: -37.5px;
}
2022-05-31 15:20:04 -07:00
}
@media (max-width: 630px) {
.flex-parent {
justify-content: initial;
2022-05-31 00:57:35 -07:00
}
2022-05-31 15:20:04 -07:00
.input-flex-container {
flex-wrap: wrap;
justify-content: center;
width: 400px;
height: auto;
margin-top: 7vh;
margin-left: 0;
padding-bottom: 30px;
2022-05-31 00:57:35 -07:00
}
2022-05-31 15:20:04 -07:00
input, .dot-info {
width: 60px;
height: 60px;
margin: 0 10px 50px;
2022-05-31 00:57:35 -07:00
}
2022-05-31 15:20:04 -07:00
input {
background-color: transparent !important;
z-index: 1;
}
input::before, input::after {
content: none;
}
input:checked + .dot-info {
background-color: #2C3E50;
}
input:checked + .dot-info span.year {
font-size: 14px;
}
input:checked + .dot-info span.label {
font-size: 12px;
}
.dot-info {
visibility: visible;
border-radius: 50%;
z-index: 0;
left: 0;
margin-left: -70px;
background-color: #AEB6BF;
}
.dot-info span.year {
top: 0;
left: 0;
transform: none;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #ECF0F1;
}
.dot-info span.label {
top: calc(100% + 5px);
left: 50%;
transform: translateX(-50%);
text-indent: 0;
text-align: center;
}
#timeline-descriptions-wrapper {
margin-top: 30px;
margin-left: 0;
text-align: left;
}
}
@media (max-width: 480px) {
.input-flex-container {
width: 340px;
}
}
@media (max-width: 400px) {
.input-flex-container {
width: 300px;
}
2022-05-31 18:02:11 -07:00
}
/* Signup Container */
#signup-container {
margin: 20px auto;
}
/* Outer Layer with the steps border */
.outer {
border-left: 2px solid #333;
}
/* Card container */
.card {
position: relative;
margin: 0 0 20px 20px;
padding: 10px;
background: #333;
color: gray;
border-radius: 8px;
max-width: 400px;
}
/* Title of the card */
.title {
color: rgb(255, 255, 255);
position: relative;
font-size: 16px;
}
/* Steps dot */
.card::before {
content: "";
position: absolute;
width: 10px;
height: 10px;
background: white;
border-radius: 999px;
left: -28px;
border: 2px solid rgb(155, 144, 144);
}
#rules-container {
display: flex;
flex-wrap: wrap;
margin-top: 20px;
justify-content: center;
}
#prizes-container {
display: grid;
margin-top: 20px;
width: auto;
height: auto;
justify-content: center;
grid-template-columns: repeat(3, 1fr);
}
.podium-description {
width: 100%;
height: 50px;
}
#second-column {
width: 100%;
height: 50px;
}
#first-column {
width: 100%;
height: 90px;
position: relative;
}
#third-column {
width: 100%;
height: 40px;
}
#second-podium {
width: 100%;
height: 50px;
bottom: -40px;
position: relative;
background-color: #333;
}
#first-podium {
width: 100%;
height: 90px;
position: relative;
background-color: #333;
}
#third-podium {
width: 100%;
height: 40px;
position: relative;
bottom: -50px;
background-color: #333;
}
/* Utilities */
#line-header {
width: 200px;
margin: 0 auto 5px;
}
.emphasis-text {
color:rgb(51, 235, 189);
}
.line {
width: 100px;
margin: 10px auto;
}
#footer-line {
width: 100px;
margin: 10px auto;
}
#arrow-link {
color:rgb(252, 188, 93);
text-decoration: none;
cursor: pointer;
}
.link {
color:rgb(252, 188, 93);
text-decoration: none;
cursor: pointer;
background:
linear-gradient(to right, rgba(100, 200, 200, 1), rgba(100, 200, 200, 1)),
linear-gradient(to right, rgba(255, 0, 0, 1), rgba(255, 0, 180, 1), rgba(0, 100, 200, 1));
background-size: 100% 0.1em, 0 0.1em;
background-position: 100% 100%, 0 100%;
background-repeat: no-repeat;
transition: background-size 400ms;
}
.link:hover {
color:rgba(252, 188, 93, 0.719);
background-size: 0 0.1em, 100% 0.1em;
}
footer {
width: auto;
height: 100px;
background-color: rgb(24, 24, 24);
justify-content: center;
align-items: center;
text-align: center;
padding: 10px 20px 20px 20px;
flex-flow: row wrap;
}
footer ul {
float: top;
}
footer li {
display: inline-block;
margin: 0 7px;
}
footer a {
color:rgb(108, 176, 231);
font-size: 16px;
}