* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(rgb(17, 17, 17) 70%, rgb(29, 37, 10));
    background-attachment: fixed;
    font-family: "Major Mono Display", monospace;
    color: #a4cd3c;
    font-size: 3vw;
    overflow-x: hidden;
  display: flex;
  flex-direction: row;
}

body a {
    color: #a4cd3c;
    text-decoration: none;
}

body a:visited {
    color: #a4cd3c;
}

body a:hover {
    background-color: rgba(210, 105, 30, 0.7);
    color: rgb(85, 26, 139);
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.content {
    display: inline-block;
    text-align: center;
    padding-left: 35px;
    padding-top: 6vh;
    margin-top: 35px;
    width: 98vw;
    height: auto;
}
.content video {
    display: inline-block;
    border: none;
}

.layout2-section {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.layout2-section .iframe-container {
    text-align: center;
}


.content h2 {
    margin-top: 5vh;
    font-size: 2.5vw;
    color: #a4cd3c;
}

hr {
    width: 100%;
    border: 0;
    border-top: 0.5px solid #a4cd3c;
    margin-top: 10vh;
    margin-bottom: 20vh;
}


#navbar {
    position: fixed;
    top: 0;
    left: -6vw;
    display: flex;
    justify-content: space-between;
    align-items: left;
    background: rgba(17, 17, 17, 0);
    width: 30vw;
    height: 50px;
    font-size: 1.4vw;
    line-height: 0.8em;
    text-decoration: none;
    vertical-align: middle;
    z-index: 1000;
}

.nome {
    z-index: 1001;
    transform: translate(0%, 0%);
    top: 3;
    left: 3;
    text-align: right;
    width: 100%;
}

.contatti {
    font-size: .7vw;
    margin-left: 2vw;
    text-align: left;
    line-height: 1em;
    z-index: 1001;
    width: 5vw;
}

#navbar  a {
    color: #a4cd3c;
    text-decoration: none;
}

#navbar a:hover {
    background-color: rgba(210, 105, 30, 0.7);
    color: rgb(85, 26, 139);
}
/* Additional styles for layout2 section */
.layout2-section {
    display: flex;
    justify-content: space-between; /* Aligns the iframes horizontally */
    margin-top: 2rem;
    width: 100%; /* Let it adjust based on the iframeWidth set in JS */
    margin-left: auto; /* Centers the section horizontally */
    margin-right: auto; /* Centers the section horizontally */
}
.layout2-section .iframe-container {
    flex: 1; /* Each iframe takes an equal amount of space */
    text-align: center;
}

/* Remove the margin on the last item of the group */
.layout2-section .iframe-container:last-child {
    margin-right: 0;
}


@media screen and (max-width: 1080px) {
    body {
        font-size: 4vw; /* Adjust font size for smaller screens */
    }

    #navbar {
        top: 0;
        left: 0;
        width: 100%; /* Full width for the navbar */
        height: 80px; /* Adjust height */
        font-size: 2.5vw; /* Larger font size for smaller screens */
    }

    .nome {
        width: 100%; /* Make sure .nome takes full width */
        font-size: 1.5rem; /* Adjust font size */
        text-align: left; /* Align left for better readability */
    }

    .contatti {
        font-size: 1.2vw; /* Adjust font size */
        margin-left: 3vw; /* Add spacing to the left */
        width: 30%; /* Make it take up more space */
        text-align: center; /* Center text for better presentation */
    }

    .content {
        padding-left: 10px; /* Reduced padding for smaller screens */
        padding-top: 3vh; /* Reduced top padding */
        width: 95vw; /* Make content width smaller for better fitting */
    }

    .content h2 {
        font-size: 4vw; /* Adjust the heading font size */
        margin-top: 2vh; /* Adjust top margin */
    }

    hr {
        margin-top: 5vh; /* Adjust top margin */
        margin-bottom: 10vh; /* Adjust bottom margin */
    }

    .layout2-section {
        flex-direction: column; /* Stack items vertically */
        justify-content: center; /* Center items vertically */
        margin-top: 1rem;
    }

    .layout2-section .iframe-container {
        width: 100%; /* Ensure iframe takes full width */
        margin-bottom: 1rem; /* Space between iframe containers */
    }

    #navbar  a {
        font-size: 1.8vw; /* Adjust link font size */
    }
}