/* Text */
h3 {
    /* font-size: clamp(1.3rem, 4vw, 5rem); */
    font-size: clamp(0.7rem, 1.75vw, 1.4rem);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 700;
    margin-top: 500px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 9);
}

p {
    font-size: clamp(0.5rem, 1.25vw, 1rem);
    margin-top: 0;
    color: white;
    margin-bottom: 15px
}

/* Introductory Section Styling with Carousel Background */
.intro-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 2s ease-in-out;
    /* background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(255, 255, 255, 0)), url('https://static.igem.wiki/teams/5218/image/static/images/background.jpg'); */
}

/* Carousel control buttons */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-nav span {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.carousel-nav span.active {
    opacity: 1;
}

/* Transparent background overlay for text */
.intro-background {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

/* Description Section Styling */
.description-page {
    padding: 60px 0;
    background-image: url('https://static.igem.wiki/teams/5218/image/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: opacity 0.3s ease-in-out;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.content-background {
    position: relative;
    padding: 40px;
    z-index: 0;
}

.intro-section,
.description-page {
    margin: 0;
    padding: 0;
}

/* Style the Table of Contents (ToC) */
.toc {
    font-size: clamp(0.7rem, 1.75vw, 1.4rem);
    width: 20%;
    padding: 20px;
    position: sticky;
    left: 73px;
    top: 70px;
    z-index: 11;
    overflow-y: auto;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 10px;
    border-radius: 20px;
    width: 68%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.toc a:hover {
    text-decoration: underline;
    color: #afd918;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Style the main content section */
.content {
    width: 50%;
    margin-left: 25%;
    padding: 30px;
    position: relative;
    z-index: 10;
}

/* Notebook background (transparent black) */
.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.99);
    z-index: 0;
    border-radius: 20px;
}

/* Content sections with some padding */
.content section {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: white;
    margin-bottom: 7%;
}

/* Team and Partners Section */
.collection {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Partners Section Styling */
.partners {
    position: absolute;
    /* Allows fixed positioning within the container */
    top: 10%;
    /* Distance from the top of the viewport */
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%) scale(1.1);
    /* Adjust horizontal center alignment */
    width: 100%;
    /* Set the width for the section */
    font-size: 1rem;
    /* Larger font size */
    text-align: center;
}

/* Contacts Section Styling */
.contacts {
    position: absolute;
    top: 60%;
    /* Positioning below the Partners section */
    left: 50%;
    transform: translate(-50%);
    /* Center both vertically and horizontally */
    width: 100%;
    /* Adjust width to be smaller than Partners */
    padding: 0px;
    text-align: center;
    display: flex;
    /* Use flexbox */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Copyright Section Styling */
.copyright {
    position: absolute;
    top: 75%;
    /* Distance from the bottom of the viewport */
    left: 50%;
    transform: translateX(-50%);
    /* Center horizontally */
    width: 120%;
    /* Smaller width for a compact look */
    color: white;
    text-align: center;
    display: flex;
    /* Use flexbox */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.copyright__link {
    text-decoration: none;
    color: white;
    font-style: bold;
    transition: .2s all ease-in-out;
}

.copyright__link:hover {
    text-decoration: underline;
    font-style: bold;
    color: #afd918;
}

/* Content link */
.link {
    color: #ffffff;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    transition: .2s all ease-in-out;
}

.link:hover {
    color: #afd918;
    text-decoration: underline;
}

/* Images within the content */
.text_img {
    width: 100%;
    margin: 20px 0;
    border-radius: 20px;
}

/* pdf within the content */
.pdf {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
}

/* Button styling */
button {
    background-color: rgba(30, 30, 30);
    color: white;
    font-size: clamp(0.5rem, 1.25vw, 1rem);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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