*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight */
}

body {
    background-color: black;
}

body::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: black; /* Background color of the selected text */
    color: white; /* Color of the selected text */
}

/* For Webkit browsers (like Chrome and Safari) */
::-moz-selection {
    background-color: black; /* Background color for Firefox */
    color: white; /* Color of the selected text for Firefox */
}

.header{
    width: 100%;
    position: absolute;
    z-index:9999989;
    top: 0;
    left: 0;
}
.banner {
  background-image: url('Media/banner.png');
  background-size: cover;
  background-repeat: no-repeat;
    background-color: #7E00AA;
  padding: 40px;
  position: absolute;
    top: 0;
    right: 0;
  width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo{
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(105%)
}

nav{
    display: flex;
    padding: 28px 6%;
    justify-content: space-between;
    align-items: center
}
nav img{
    width: 150px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    margin-right: 20px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}
.nav-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: #fff;
    display: block;
    margin: auto;
    transition: 0.2s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.video-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 40px);
    background-color: #560A70;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.centered-logo {
    max-width: 270px; 
    height: auto;
    z-index: 3;
}

.side-images {
    display: flex;
    justify-content: space-between;
    margin: 4vw;
}

.left-image, .right-image {
    display: flex;
    align-items: center;
    width: auto;
}

.left-image img, .right-image img {
    height: 40vw;
    border-radius: 15px;
    align-content: 
}

.left-image p, .right-image p {
    margin: 0;
    line-height: 1.5;
}

.spacer {
    height: 30vw;
    width: 100%;
}

.halfspacer {
    height: 15vw;
    width: 100%;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background */
    backdrop-filter: blur(2px); /* Apply blur effect */
    z-index: 999; /* Make sure it sits above other content but below the sidebar */
    display: none; /* Hidden by default */
}

.course {
    position: relative;
    width: 100%;
    margin: 0;
    text-align: left;
    padding-top: 6.67vw;
    background-image: url('Media/Sfondo%20Unina%20Rockets.png');
    background-size: 100% auto; 
    background-repeat: no-repeat;
    background-position:bottom;
    background-color: #560A70;
}

.black-course {
    background-image: url(Media/Sfondo%20Unina%20Rockets%20Nero.png);
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y; 
    background-color: black;
    width: 100%; /* Full width */
    padding-top: 6.67vw;
}

.black-course h2 {
    color: #d489ff;
}

.black-course .text-background {
    background: linear-gradient(135deg, rgba(126, 0, 170, 0.6), rgba(86, 10, 112, 0.1));;
}

.course-content.left {
    max-width: 60vw;
    padding: 0 20px;
    color: white;
    text-align: left; /* Keep text aligned left for left sections */
    position: relative;
    margin-left: 0 !important
}

.course-content.right {
    max-width: 60vw;
    padding: 0 20px;
    margin-left: auto;
    color: white;
    position: relative;
}

.course h1 {
    font-size: 50px;
}

    .pink {
        color: #d489ff !important;
    }

    .white {
        color: white !important;
    }

    .left {
        margin-top: 100px;
        margin-left: 0.8em;
    }

    .center {
        text-align: center;
        margin-bottom: 0.8em;
        margin-top: 0.8em;
    }

.course h2 {
    color: white;
    margin-left: 6vw;
    margin-right: 6vw;
    margin-top: 30px;
    font-size: 36px;
}

.course h3 {
    color: white;
    margin-left: 6vw;
    margin-top: 80px;
    font-size: 36px;
    letter-spacing: 15px;
}
.course h4 {
    color: white;
    margin-left: 6vw;
    margin-top: 400px;
    font-size: 36px;
    letter-spacing: 15px;
}


    .course h6 {
        margin-top: 25px;
        text-align: center;
        font-size: 3em;
        margin-bottom: 40px;
        color: #fff
    }

.textL-background {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    z-index: 2;
    margin-left: 4vw; 
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.text-background {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    z-index: 2;
    margin-left: 4vw; 
    margin-right: 4vw;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.specs-background {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    z-index: 2;
    margin-left: 4vw; 
    margin-right: 4vw;
    margin-top: 4vw;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.text-background dep {
    margin-top: 6vw !important;
}

.course p {
    color: white;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

.side-image {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(27vw) scale(130%);
    width: 20vw; 
    height: auto;
    margin-left: 20px;
    transition: transform 0.3s ease-in-out;
}

.side-image:hover {
    transform: translateX(27vw) rotate(2deg) scale(135%);
}

.rocket-image1 {
    display: block;
    width: 1vw;
    position: relative;
    transform: scale(1300%) translateX(4vw) rotate(70deg);
    z-index: 3; 
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.rocket-image1-1 {
    display: block;
    width: 1vw;
    position: relative;
    transform: translateY(-87%) scale(1350%) translateX(4vw) rotate(68deg);
    z-index: 2; 
    transition: transform 0.3s ease-in-out;
    opacity: 0;
}

.rocket-image1:hover {
    transform: scale(1350%) translateX(4vw) rotate(68deg);
}

.rocket-image1:focus {
     animation: liftoff 3s forwards;
}

.rocket-image1:focus + .rocket-image1-1 {
    animation: ignition1 3s forwards;
}

.rocket-image2 {
    display: block;
    width: 1vw;
    position: relative;
    transform: scale(2400%) translateX(2.3vw) rotate(70deg);
    z-index: 3; 
    transition: transform 0.3s ease-in-out; 
    cursor: pointer;
}

.rocket-image2-1 {
    display: block;
    width: 1vw;
    position: relative;
    transform: translateY(-95%) scale(2390%) translateX(2.33vw) rotate(70deg);
    z-index: 0; 
    transition: transform 0.3s ease-in-out;
    opacity: 0;
}

.rocket-image2:hover {
    transform: scale(2450%) translateX(2.3vw) rotate(68deg);
}

.rocket-image2:focus {
     animation: liftoff 3s forwards;
}

.rocket-image2:focus + .rocket-image2-1 {
    animation: ignition2 3s forwards;
}

.project-specs {
  background-color: rgba(255, 255, 255, 0.1); /* Adjust to match your website's background */
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
}


.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.spec-row span {
  font-size: 1.25rem;
  color: #fff; /* Adjust this color to match the website's accent color */
}

.spec-row span:last-child {
  font-weight: bold;
  font-size: 1.25rem;
    color: #d489ff;
}

nav .material-symbols-outlined{
    display: none;
}

.slider-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1vw;
    margin-top: 5vw;
    margin-bottom: 5vw;
}

.image-slider {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%; /* Adjust as necessary for layout */
    height: 300px;
    position: relative;
}

.image-container2 {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.image-container2 img {
    height: 100%;
    width: auto;
    margin-right: 10px;
    border-radius: 10px; 
}

.scroll-btn {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for exact centering */
    background-color: rgba(0, 0, 0, 0.7); /* More opaque for better visibility */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10; /* Ensures the buttons are above the images */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Adds subtle shadow for contrast */
}

.left-btn {
    left: 10px; /* Position left */
}

.right-btn {
    right: 10px; /* Position right */
}

.footer {
    width: 100%;
    text-align: center;
    background-color: black; 
    color: gray; 
    padding: 20px 0; 
    position: relative; 
    bottom: 0; 
    z-index: 999999;
}

@keyframes liftoff {
    0% {
        opacity: 0;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes ignition1 {
    0% {
        opacity: 1;
    }
    20% {
        transform: scale(1350%) translateY(-9vw) translateX(24vw) rotate(68deg);
    }
    50% {
        opacity: 0;
    }
    90% {
        transform: scale(1300%) translateX(4vw) rotate(70deg);
        opacity: 0;
    }
}

@keyframes ignition2 {
    0% {
        opacity: 1;
    }
    20% {
        transform: scale(2450%) translateY(-9vw) translateX(24vw) rotate(68deg);
    }
    50% {
        opacity: 0;
    }
    90% {
        transform: scale(2400%) translateX(4vw) rotate(70deg);
        opacity: 0;
    }
}

.contact-container {
        display: flex;
        flex-direction: column;
        padding-top: 40vh;
        align-items: center;
        text-align: center;
        background-size: cover !important;
        width: 100vw;
        height: 100vh;
    }

.contact-container a {
        color: white;
        text-decoration: none;
        font-size: 1.5em;
        margin: 10px 0;
        transition: color 0.3s;
    }

.contact-container a1 {
        color: white;
        text-decoration: none;
        font-size: 1.5em;
        margin: 10px 0;
        transition: color 0.3s;
    }

.contact-container a:hover {
        color: #aaa;
    }

.department-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.deps {
    display: grid;
    grid-template-columns: repeat(6, minmax(12vw, 1fr)); 
    margin: auto auto;
    justify-items: center;
    align-items: center;
    width: 90vw;
    max-width: 1200px;
}
        
.dep-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    margin: 40px;
}      

.dep-button img {
    width: 10vw;
    border-radius: 50%;
    transition: transform 0.3s;
}

.default-image,
.hover-image {
    width: 10vw;
    border-radius: 50%;
    transition: transform 0.3s, opacity 0s;
    inset: 0; /* Center the image within its parent */
    margin-left: auto; /* Ensure centering */
    margin-right: auto; /* Ensure centering */
}

/* Initially, hide the hover image */
.hover-image {
    position: absolute;
    top:0;
    left:0;
    visibility: hidden;
    opacity: 0;
}

.dep-button:hover .default-image {
    visibility: hidden;
    opacity: 0;
}

.dep-button:hover .hover-image {
    visibility: visible;
    opacity: 1;
    transform: scale(1.05);
}

.deps p {
    font-size: 1vw;
    text-align: center !important;
    margin-top: 5px;
    color: white;
    font-weight: bold;
    background-color: rgba(0,0,0,0.5);
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    height: 2.5em; /* Adjust this based on your layout */
    display: flex;
    align-items: center;
}



@media(max-aspect-ratio: 1) {
    .no-scroll {
    overflow: hidden;
    }
    
    .close-btn {
        display: inline-block;
        color: #d489ff;
        font-size: 22px;
        cursor: pointer;
        position: absolute;
        top: 10px;
        left: 2px;
        z-index: 1000;
        display: none;
    }

    .open-btn {
        display: inline-block;
        position: absolute;
        top: 20px;
        right: 10px;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
        z-index: 1;
    }

    .nav-links ul li {
        display: block;
        margin-left: 13px;
        margin-top: 25px;
    }

    .nav-links {
        position: absolute;
        background: #560A70;
        height: 100vh;
        width: 0;
        top: 0;
        right: 0;
        text-align: left;
        z-index: 2;
        padding-top: 40px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        transition: width 0.3s ease;
    }
    
    .nav-links ul li:hover::after{
    width: 0%;
}

    nav .material-symbols-outlined {
        display: block;
        margin: 5px;
        font-size: 30px;
        cursor: pointer;
    }
    .course {
    position: relative;
    margin: 0;
    text-align: left;
    padding-top: 6.67vw;
    background-image: url('Media/Sfondo Unina Rockets.png');
    background-size: auto 100%; 
    background-repeat: no-repeat;
    background-position: bottom;
    height: auto + 120px;
    color: #560A70;
    overflow: hidden;
    }
    .black-course {
    background-image: url(Media/Sfondo%20Unina%20Rockets%20Nero.png);
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y; 
    width: 100%;
    padding-top: 6.67vw;
    }
    .black-background {
    position: relative;
    margin: 0;
    text-align: left;
    padding-top: 6.67vw;
    background-color: black;
    background-size: auto 100%; 
    background-repeat: no-repeat;
    background-position: bottom;
    height: auto + 120px;
    color: #560A70;
    overflow: hidden;
    }
    .course-content.left {
    max-width: 90vw;
    color: white;
    text-align: left;
    position: relative;
    }
    .course-content.right {
    max-width: 90vw;
    color: white;
    text-align: left;
    position: relative;
    }
    .course h1 {
    font-size: 30px;
}

        .pink {
            color: #d489ff;
        }

        .white {
            color: white;
        }

        .left {
            margin-top: 55px;
            margin-left: 2vw;
        }

        .center {
            text-align: center;
            margin-bottom: 0.8em;
            margin-top: 4em;
            font-size: 2.5em !important;
        }
    .course h2 {
    margin-left: 10vw;
    margin-top: 25px;
    font-size: 2.5em;
    }
    .course h5 {
    color: white;
    margin-left: 6vw;
    margin-top: 30px;
    font-size: 36px;
    }
    .black-course h2 {
    margin-left: 10vw;
    margin-top: 75px;
    font-size: 40px;
    }
    .course h3 {
    margin-left: 6vw;
    margin-top: 25px;
    font-size: 36px;
    letter-spacing: 15px;
    }
    .course h4 {
    margin-left: 6vw;
    margin-top: 24vw;
    font-size: 36px;
    letter-spacing: 15px;
    }
    .course p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    }
    .side-image {
        display: none;
    }
    .course-content {
    max-width: 90vw;
    padding: 0 10px;
    color: white;
    text-align: left;
    position: relative;
    }
    .contact-container {
        padding-top: 0 !important;
        justify-content: center;
    }
    .rocket-image1 {
    transition: transform 0.5s ease-in-out;
    transform: scale(1800%) translateY(0.3vw) translateX(2.6vw) rotate(80deg);
    }
    
    .rocket-image1-1 {
    transition: transform 0.5s ease-in-out;
    transform: translateY(-87%) scale(1800%) translateY(0.3vw) translateX(2.6vw) rotate(80deg);
    }

    .rocket-image1:hover {
    transform: scale(1800%) translateY(0.3vw) translateX(2.6vw) rotate(80deg);
    }
    
    @keyframes ignition1mobile {
    0% {
        opacity: 1;
    }
    20% {
        transform: scale(1800%) translateY(-4vw) translateX(24vw) rotate(80deg);
    }
    50% {
        opacity: 0;
    }
    90% {
        transform: scale(1800%) translateY(0.3vw) translateX(2.6vw) rotate(80deg);
        opacity: 0;
    }
}

    .rocket-image1:focus + .rocket-image1-1 {
    animation: ignition1mobile 3s forwards;
    }
    
    .rocket-image2 {
    transition: transform 0.5s ease-in-out;
    transform: scale(4400%) translateY(0.1vw) translateX(1vw) rotate(80deg);
    }
    
    .rocket-image2-1 {
    transition: transform 0.5s ease-in-out;
    transform: scale(4400%) translateY(-2%) translateX(2%) translateY(0.1vw) translateX(1vw) rotate(80deg);
    }

    .rocket-image2:hover {
    transform: scale(4400%) translateY(0.1vw) translateX(1vw) rotate(80deg);
    }
    
    @keyframes ignition2mobile {
    0% {
        opacity: 1;
    }
    20% {
        transform: scale(4400%) translateY(-4vw) translateX(24vw) rotate(80deg);
    }
    50% {
        opacity: 0;
    }
    90% {
        transform: scale(4400%) translateY(0.1vw) translateX(1vw) rotate(80deg);
        opacity: 0;
    }
}

    .rocket-image2:focus + .rocket-image2-1 {
    animation: ignition2mobile 3s forwards;
    }
    
    .deps {
    grid-template-columns: repeat(3, minmax(12vw, 1fr)); 
    }
    
    .deps img {
    width: 20vw;
    }
    .specs-background {
        margin-top: 60px;
    }
    .image-slider {
        height: 200px;
        overflow-x: scroll;
    }
    .slider-wrapper {
    margin: 4vw;
    margin-top: 8vw;
    margin-bottom: 15vw;
}
}

@media(min-aspect-ratio: 1/1) {
    .close-btn {
        display: none;
    }

    .nav-links {
        position: relative;
        background: none; 
        height: auto;
        width: auto; 
        padding-top: 0; 
        box-shadow: none; 
    }

    .open-btn {
        display: none;
    }
}
























