/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1d2b3a; /* Dark background */
    color: #fff; /* White text */
    line-height: 1.6;
}

/* Header Section Styles */
header {
    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Ensures header stays on top */
    padding: 10px 20px; /* Add padding for breathing space */
    background-color: #1d2b3a; /* Example background color */
    color: #fff; /* Text color */
}

/* Container for Header Elements */
.header-container {
    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Container */
.logo-container img {
    width: 50px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Add spacing to the right of the logo */
    display: block;
    border-radius: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4ab1f1; /* Light blue on hover */
}

/* Section Styles */
section {
    padding: 60px 20px;
    /* max-width: 1200px; */
    min-height: 600px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.hero-container,
.info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80%;
    margin: 0 auto;
}

.download-container {
    display: flex;
    justify-content: space-around; /* Ensures the items are spaced out evenly */
    max-width: 80%;
    height: auto;
    margin: 0 auto; /* Centers the container itself within its parent */
    align-items: center; /* Centers the content vertically */
}

.download-container > div {
    text-align: center; /* Ensures the text inside each div is centered */
    flex: 1; /* Ensures equal space for each column */
}

.download-container h3 {
    margin: 0 0 10px 0; /* Ensures consistent spacing below each <h3> */
    text-align: center; /* Aligns text in the <h3> elements */
}

.hero-left, .info-right, .download-left {
    flex: 1;
    padding: 20px;
}

.hero-right, .info-left, .download-right {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.hero-right img {
    max-width: 120%;
    border-radius: 10px;
}

.info-left img,
.download-right img {
    max-width: 100%;
    height: auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4ab1f1;
}

h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #4ab1f1;
}

h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4ab1f1;
}

p {
    font-size: 1.1rem;
}

/* Position the image container at the bottom right */
.image-container {
    position: absolute;
    bottom: 8px; /* adjust as needed */
    right: 60px;  /* adjust as needed */
    z-index: 10; /* Ensure the image stays on top of other content */
}

/* Style the image to be super small by default */
.small-image {
    width: 40px; /* super small size */
    transition: transform 0.3s ease, width 0.3s ease;
    cursor: pointer;
}

/* On hover, enlarge the image (scale up or set a fixed size) */
.image-container:hover .small-image {
    width: 600px; /* or any size you consider 'normal' */
    /* Alternatively, you could use transform: scale(10); */
}


/* Download Section Buttons */
.btn {
    background-color: #4ab1f1;
    color: #fff;
    padding: 10px 20px;
    width: 210px;
    height: auto;
    border: none;
    margin: 10px 0;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3a91c4; /* Slightly darker blue on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container,
    .info-container,
    .download-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

#pypilogo {
    /* content: url("images/.svg");  */
    float: left;
    width: 150px;
    height: auto;
    display: block;
}

#gitlablogo {
    content: url("/images/gitlab-logo-200.svg");
    float: left;
    width: 250px;
    height: auto;
    display: block;
}

.download-pip {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Align text within child elements */
    height: 100%; /* Optional: adjust based on your layout */
}

.download-gui {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Align text within child elements */
    height: 100%; /* Optional: adjust based on your layout */
}

.download-git {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Align text within child elements */
    height: 100%; /* Optional: adjust based on your layout */
}


/* Tutorial Section Styles */
.tutorial-container {
    display: flex;
    justify-content: space-around; /* Center-aligns the content within the container */
    align-items: flex-start; /* Aligns items to the top (optional) */
    gap: 20px; /* Adds spacing between the child divs */
}

.tutorial-container h3 {
    margin: 0 0 10px 0; /* Ensures consistent spacing below each <h3> */
    text-align: center; /* Aligns text in the <h3> elements */
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1000px;
    height: 400px;
    position: relative;
  }
  
.carousel > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide {
    
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 200ms opacity ease-in-out;
    transition-delay: 200ms;
}

.slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide[data-active] {
    opacity: 1;
    z-index: 1;
    transition-delay: 0ms;
}
  
/* From Uiverse.io by Nawsome */ 
.carousel-button {
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    font-size: 4rem;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    cursor: pointer;
    border-radius: .25rem;
    padding: 0 .5rem;
  }
  
.carousel-button-top, .carousel-button-bottom {
    background-color: #666;
    height: 4px;
    left: -5px;
    position: absolute;
    top: 50%;
    width: 100%;
}

.carousel-button-top:after, .carousel-button-bottom:after {
    background-color: #fff;
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    transition: all 0.15s;
}

.carousel-button-top {
    transform: rotate(45deg);
    transform-origin: bottom right;
}

.carousel-button-top:after {
    left: 100%;
    right: 0;
    transition-delay: 0s;
}

.carousel-button-bottom {
    transform: rotate(-45deg);
    transform-origin: top right;
}

.carousel-button-bottom:after {
    left: 0;
    right: 100%;
    transition-delay: 0.15s;
}

.carousel-button:hover .carousel-button-top:after {
    left: 0;
    transition-delay: 0.15s;
}

.carousel-button:hover .carousel-button-bottom:after {
    right: 0;
    transition-delay: 0s;
}

.carousel-button:active {
    transform: translateX(-50%) translateY(-50%) scale(0.9);
}

.carousel-button.prev {
    left: 20px; /* Adjust padding to match the code container */
    transform: scaleX(-1);
}

.carousel-button.next {
    right: 10px; /* Adjust padding to match the code container */
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }
  
  .indicator[aria-current="true"] {
    background: white;
  }

.code-container {
    width: 100%;
    max-width: 1000px;
    height: 400px; /* Match the height of the carousel slide */
    padding: 0px;
    display: flex;
    justify-content: center;
    overflow: auto; /* Add scroll when content exceeds container */
}

.CodeMirror {
    height: 100% !important;
    font-size: 16px;
    width: 100%;  /* Use full width */
    max-width: 90%; /* But limit to 90% for aesthetics */
}

@media (max-width: 1100px) {
    .code-container {
        height: auto;
        min-height: 300px;
    }
    
    .carousel {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
    
    .slide {
        position: relative;
        height: auto;
        min-height: 400px;
    }
}


/* Publications Section Styles */
.publications-container {
    display: flex;
    justify-content: space-around; /* Center-aligns the content within the container */
    align-items: center; /* Aligns items to the top (optional) */
    gap: 20px; /* Adds spacing between the child divs */
}

.publications-container h3 {
    margin: 0 0 10px 0; /* Ensures consistent spacing below each <h3> */
    text-align: center; /* Aligns text in the <h3> elements */
}

.publication {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.publication img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Contact container */
.contact-container {
    width: 800px;
    display: flex;
    justify-content: space-around; /* Center-aligns the content within the container */
    align-items: center; /* Aligns items to the top (optional) */
    gap: 20px; /* Adds spacing between the child divs */
}

.contact-container h3 {
    margin: 0 0 10px 0; /* Ensures consistent spacing below each <h3> */
    text-align: center; /* Aligns text in the <h3> elements */
}

.contact-form {
    max-width: 400px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #4ab1f1;
}

.contact-form button {
    background-color: #4ab1f1;
    color: #fff;
    padding: 10px 20px;
    width: 100%;
    border: none;
    margin: 10px 0;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s;
}   

.contact-form button:hover {
    background-color: #3a91c4; /* Slightly darker blue on hover */
}

