body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: #141a1d;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0px;
    left: 0px;
    width: calc(100% - 40px);
    z-index: 1;
}

.logo img {
    height: 50px;
}

h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li span {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.1s;
}

nav ul li span:hover {
    color: #ff9800;
}

.content-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.team-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    justify-items: center;
}

.team-member {
    text-align: center;
    opacity: 0;
    animation: fadeInCard 0.3s forwards;
    animation-delay: 0.1s;
    transition: box-shadow 0.3s;
    width: 230px;
    perspective: 1000px;
    margin: 20px 10px;
}

.team-member-inner {
    position: relative;
    width: 100%;
    height: 300px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 8px;
    background-color: #141a1d;
    box-sizing: border-box;
    min-height: 250px;
}

.ignore {.team-member:hover .team-member-inner {
    transform: rotate(3deg);
}
}

.team-member.flip .team-member-inner {
    transform: rotateY(180deg);
}

.team-member-front, .team-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-sizing: border-box;
}

.team-member-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

.team-member-front img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member-front h3, .team-member-front p {
    margin: 10px 0;
}

.team-member-back {
    transform: rotateY(180deg);
    background-color: #141a1d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 5px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.team-member-back p {
    color: #ffffff;
    font-style: italic;
    text-align: center;
    margin: 0;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.team-member img {
    width: 100%;
    border-radius: 50%;
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}

.timeline-event {
    position: relative;
    margin: 20px 0;
    padding-left: 40px;
    opacity: 0;
    animation: fadeInElement 0.3s forwards;
    animation-delay: 0.1s;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: #ff9800;
    border-radius: 50%;
    z-index: 1;
}

.timeline-event::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: #ff9800;
    z-index: 0;
}

.timeline-content {
    background-color: #141a1d;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInElement 0.3s forwards;
    animation-delay: 0.3s;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 15px;
    font-weight: bold;
}

form input, form textarea {
    padding: 12px;
    margin-top: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #ff9800;
    outline: none;
}

form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #ff9800;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    font-size: 16px;
}

form button:hover {
    background-color: #e68900;
    transform: translateY(-2px);
}

form button:active {
    background-color: #cc7a00;
    transform: translateY(0);
}

.pfp-image {
    height:100px;
    max-width: 100px;
    max-height: 100px;
}

.leader{
    color:#e68900;
}

.normalRoles{
    color: rgb(176, 176, 176);
}

.fade-in-element {
    opacity: 0;
    animation: fadeInElement 0.3s forwards;
    animation-delay: 0.05s;
}

@keyframes fadeInElement {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add background and padding to the contact section */
#contact {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.aboutPadding{
    padding-top: 120px;
}

/* Word fade-in animation */
.fade-in-word {
    opacity: 0;
    display: inline-block;
    animation: fadeInWord 0.3s forwards;
}

@keyframes fadeInWord {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade-in animation for timeline elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInElement 0.3s forwards;
    animation-delay: 0.05s;
}

@keyframes fadeInElement {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade-in animation for timeline content */
.fade-in-text {
    opacity: 0;
    animation: fadeInText 0.3s forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade-in animation for Contact Us form elements */
.fade-in-element {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInElementUp 0.9s forwards;
    animation-delay: 0.15s;
}

@keyframes fadeInElementUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New: Fade-in with upward movement for Team Cards */
.fade-in-team {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Update existing fadeInElement keyframes if necessary */
@keyframes fadeInElement {
    from { opacity: 0; }
    to { opacity: 1; }
}
.socialLink {
    color:#ffffff;
}

/* Make fade-in animations even faster (5x) on the About Us page */
#about .fade-in-word {
    animation-duration: 0.03s; /* 2x faster */
}
#about .fade-in {
    animation-duration: 0.03s; /* 2x faster */
}
#about .fade-in-text {
    animation-duration: 0.03s; /* 2x faster */
}
#about .fade-in-team {
    animation-duration: 0.06s; /* 2x faster */
}

/* Fade-in animation for timeline titles */
#about .fade-in-title {
    opacity: 0;
    animation: fadeInText 0.03s forwards;
    animation-delay: 0.02s;
}