shiloh-website/css/styles.css
Gary 5eb9aea01d remove security policy in favor of web server handling it
make video size auto on mobile
add hamburger menu icon png
make navbar background black
add navbar js script to all page headers
2024-11-01 16:51:29 -07:00

434 lines
7.5 KiB
CSS

* {
font-family: "FiraCode", Arial, Helvetica, sans-serif;
}
@font-face {
font-family: "FiraCode";
src: url("/assets/FiraCode-VariableFont_wght.ttf") format("truetype");
}
body {
background: black;
margin: 0;
padding: 0;
}
header {
padding: 0;
margin: 0;
position: sticky;
top: 0;
display: -webkit-flex;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
z-index: 10; /* Adjust the z-index as needed */
}
main {
-webkit-flex: 1;
flex: 1;
display: -webkit-flex;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: flex-start;
}
.flex-column {
-webkit-flex: 100%;
flex: 100%;
-webkit-flex-direction: row;
flex-direction: column;
display: -webkit-flex;
display: flex;
align-items: center;
color: var(--text-color);
padding: 100px 5px 100px 5px;
text-align: center;
min-height: 80vh;
justify-content: center;
}
.flex-row {
-webkit-flex: 100%;
flex: 100%;
-webkit-flex-direction: row;
flex-direction: row;
display: -webkit-flex;
display: flex;
color: var(--text-color);
margin: 10px;
text-align: center;
border-radius: 5px;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
justify-content: space-evenly;
}
.flex-row-items {
-webkit-flex: content;
flex: content;
-webkit-flex-direction: row;
flex-direction: row;
display: -webkit-flex;
display: flex;
color: var(--text-color);
margin: 10px;
text-align: center;
border-radius: 5px;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
gap: 50px;
}
.flex-container {
margin: 10px;
padding: 20px;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-flex-direction: column;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
-webkit-flex: 1 1 0;
flex: 1 1 0;
}
.flex-container-left {
margin: 10px;
padding: 20px;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-flex-direction: column;
flex-direction: column;
justify-content: space-evenly;
align-items: left;
-webkit-flex: 1 1 0;
flex: 1 1 0;
}
.flex-container-left img {
margin: auto;
display: block;
}
video {
min-width: 300px;
width: 100%;
height: auto;
}
.bg-one {
border-radius: 5px;
background-color: #3b444b;
transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
}
.bg-two {
border-radius: 5px;
background-color: #212b38;
transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
}
footer {
color: var(--text-color);
background-color: black;
text-align: center;
padding: 1rem;
-webkit-flex: 1;
flex: 1;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
justify-content: space-evenly;
}
h1,
h2 {
color: white;
text-align: center;
position: relative;
z-index: 1;
font-size: 3rem;
font-weight: 100;
}
h3,
h4 {
color: white;
text-align: center;
position: relative;
z-index: 1;
font-size: 2rem;
font-weight: 100;
}
.header-large {
font-size: 3rem;
}
p,
ul,
ol,
td,
li,
cite {
word-break: normal;
color: #fefff1;
text-align: left;
max-width: 1000px;
}
.break-all {
word-break: break-all;
}
a {
color: white;
text-decoration: none;
text-align: left;
margin: 0 auto;
padding: 5px;
transition: color 0.5s ease;
}
.page-link {
color: white;
text-decoration: none;
text-align: left;
margin: 0 auto;
padding: 0px;
transition: color 0.5s ease;
}
.page-link:hover {
color: #45e3ff;
}
.button-1 {
align-items: center;
border-radius: 5px;
color: #3b82f6;
cursor: pointer;
display: -webkit-flex;
display: flex;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
font-family: Inter, sans-serif;
font-size: 18px;
font-weight: 200;
justify-content: center;
line-height: 1;
margin: 1rem;
outline: none;
text-align: center;
text-decoration: none;
transition: border 0.3s, color 0.3s;
white-space: nowrap;
border: 1px solid #3b82f6;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 5rem;
padding-right: 5rem;
height: fit-content;
position: relative;
z-index: 1;
}
.button-1:hover {
border: 1px solid white;
color: white;
}
.button-2 {
align-items: center;
border-radius: 5px;
color: white;
cursor: pointer;
display: -webkit-flex;
display: flex;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
font-family: Inter, sans-serif;
font-size: 18px;
font-weight: 200;
justify-content: center;
line-height: 1;
margin: 1rem;
outline: none;
text-align: center;
text-decoration: none;
transition: color 0.3s;
white-space: nowrap;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 5rem;
padding-right: 5rem;
height: fit-content;
position: relative;
z-index: 1;
}
.button-2:hover {
color: white;
}
.message-icon-container {
position: fixed;
bottom: 20px;
right: 20px;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: center;
background-color: grey;
color: #fff;
border-radius: 50%;
width: 50px;
height: 50px;
cursor: pointer;
transition: width 0.2s, height 0.2s;
}
.message-icon-container:hover {
width: 55px;
height: 55px;
}
.bg-img {
background: url("/assets/last_hour_hosting_logo_blue.png") center/cover
no-repeat;
height: 300px;
color: #fff;
text-align: center;
padding: 20px;
}
.bg-vid {
position: relative;
overflow: hidden;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.bg-vid::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0);
}
.bg-vid video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
z-index: -1;
filter: blur(7px);
}
/* Styles for the navigation bar */
.nav-bar {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
padding: 1rem;
margin: 0;
position: relative;
background: black;
}
.logo {
color: white;
font-size: 24px;
display: flex;
justify-content: center;
align-items: center;
}
.menu {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
.menu-item {
font-size: 18px;
position: relative;
transition: all 0.2s;
color: white;
margin: 0 10px;
cursor: pointer;
}
.menu-item::before {
content: "";
position: absolute;
width: 0%;
height: 1px;
bottom: -2px;
left: 0;
background-color: rgb(59, 130, 246);
transition: all 0.2s;
z-index: 1;
}
.menu-item:hover::before {
width: 100%;
}
.mobile-menu-icon {
display: none;
}
/* Media query for mobile devices */
@media all and (max-width: 960px) {
.nav-bar {
display: block;
flex-direction: column;
align-items: flex-start;
padding: 5px;
}
.menu {
display: none; /* hide the menu on mobile */
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: rgb(0, 0, 0);
padding-top: 10px;
padding-bottom: 10px;
}
.menu-item {
margin-bottom: 5px;
}
.mobile-menu-icon {
display: block;
position: absolute;
top: 15px;
right: 10px;
cursor: pointer;
}
.mobile-menu-icon:hover {
width: 30px;
}
.show-menu {
display: block;
}
.flex-column {
padding: 10px 5px;
}
video {
width: auto;
height: auto;
}
}