Files
WebsitePortfolio2/src/app/globals.css
T
IM23a-spirgif e04e1fb3e3 Small Bug Fixes
2025-03-03 17:42:28 +01:00

171 lines
3.1 KiB
CSS

/* Global Styles */
body {
background: linear-gradient(135deg, #000000, #1a001a);
font-size: 1.125rem;
font-family: 'Helvetica', sans-serif;
color: #ffffff;
margin: 0;
padding: 0;
overflow-x: hidden;
overscroll-behavior: none;
}
html {
height: 100%;
min-height: 100vh;
background: linear-gradient(135deg, #000000, #1a001a);
overflow-x: hidden;
overscroll-behavior: none; /* Prevents scrolling past the boundaries */
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.header {
text-align: center;
margin-bottom: 2rem;
}
.title {
font-size: 2.5rem;
margin-bottom: 0.5rem;
color: #ffffff;
}
/* Title animation classes */
.title.normal {
opacity: 1;
}
.title.fadeOut {
animation: fadeOutAnimation 0.5s forwards;
}
.title.fadeIn {
animation: fadeInAnimation 0.5s forwards;
}
@keyframes fadeOutAnimation {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes fadeInAnimation {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.intro {
font-size: 1.5rem;
color: #cccccc;
}
/* Default fade-in section: occupies at least one full viewport */
.fade-in-section {
min-height: 90vh;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.3s ease-out, transform 0.3s ease-out;
will-change: opacity, transform;
}
/* Custom override for the first content section */
.firstSection {
min-height: auto; /* Remove full viewport height requirement */
padding: 2rem 0; /* Add vertical padding if needed */
}
.section {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.textLeft,
.imageRight,
.imageLeft,
.buttonLeft {
padding: 1rem;
flex: 1;
}
/* Button container aligned to the left */
.buttonLeft {
display: flex;
justify-content: center; /* Centers the button horizontally */
align-items: center; /* Centers vertically */
width: 100%; /* Ensures it takes full width */
}
/* Slightly smaller images */
.imageRight img,
.imageLeft img {
width: 90%;
height: auto;
border-radius: 8px;
}
/* Enlarged Learn More button with dark purple tones */
.learnMoreButton {
padding: 1rem 2rem;
font-size: 1.25rem;
background-color: #3d003d;
border: none;
border-radius: 5px;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease;
}
.learnMoreButton:hover {
background-color: #2e002e;
}
/* Scroll Prompt styling with no background */
.scrollPrompt {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
padding: 0.5rem 1rem;
border-radius: 5px;
color: #fff;
font-size: 1rem;
z-index: 1000;
background: none;
}
/* When section is fully visible */
.fade-in-section.is-visible {
opacity: 1;
transform: none;
}
/* Hide scrollbar for Chrome, Safari, Opera */
::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
body {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}