html {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(12px, 1.1vw, 20px);
    min-width: 21rem;
}

.mybody {
    display: flex;
    flex-direction: row;
    margin: 0 0.5rem;
    line-height: 1.4rem;
}

section {
    overflow-x: auto;
}

section>article {
    margin: 2.5rem 0.75rem;
}

section>article:nth-child(1) {
    margin: 0.75rem;
}

.header-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.headerleft {
    display: flex;
    flex-direction: column;
    width: 7rem;
    height: 100%;
}

.headerright {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.menubar-left {
    display: flex;
    background: #66cc99;
    border-bottom-left-radius: 1.75rem;
    border-top-left-radius: 0.25rem;
    align-items: flex-end;
    height: 2.5rem;
}

.menubar-right {
    display: flex;
    background: #66cc99;
    border-bottom-right-radius: 1.75rem;
    border-top-right-radius: 0.25rem;
    height: 2.5rem;
    width: 100%;
    justify-content: flex-start;
}

nav {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.top-menu-item {
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.075rem;
    text-decoration: none;
    color: white;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    user-select: none;
    width: auto;
    border: none;
    white-space: normal;
    height: 2.5rem;
    padding: 0 1rem;

}

.top-menu-icon {
    font-size: 1.2rem;
}

.accordion-icon {
    font-size: 1.2rem;
}

.top-menu-item-last {
    float: right;
}

.top-menu-item-last:hover {
    border-bottom-right-radius: 1.75rem;
}

.top-menu-item-last.active {
    background-color: #4a9f75;
    border-bottom-right-radius: 1.75rem;
}

.top-menu-item:hover {
    background-color: #33cc7f;
}

.top-menu-item.active {
    background-color: #4a9f75;
}

.aside-link {
    cursor: pointer;
    text-decoration: none;
    color: #106e3f;
    font-size: 0.9rem;
}

p.aside-link {
    line-height: 1.2;
    padding-left: 0;
}

div.childDiv {
    display: none;
    margin-left: 0.3rem;
    padding-left: 0.35rem;
    border-left: solid 0.05rem #4a9f75;
}

h2 {
    margin: 0 0 0.4rem;
    letter-spacing: 0.1rem;
    color: #0c275c;
    border-bottom: 0.05rem solid navy;
    padding-bottom: 0.25rem;
    line-height: 1.2;
}

.top-menu-list-left {
    padding-left: 0.5rem;
    line-height: normal;
    margin: 0 auto 0 0;
    background-color: #66cc99;
}

.top-menu-list-right {
    margin: 0 0 0 auto;
    line-height: normal;
    padding: 0;
}

.top-menu-listitem {
    list-style: none;
    margin: 0;
    float: left;
}

.top-menu-listitem-menu-icon {
    display: none;
}

@media screen and (max-width: 40rem) {

    /*52*/
    .top-menu-list-right li:nth-child(3),
    .top-menu-list-right li:nth-child(4),
    .top-menu-list-right li:nth-child(5) {
        display: none;
    }

    .top-menu-list-right li.top-menu-listitem-menu-icon {
        display: block;
    }

    nav {
        overflow: visible;
    }

    .top-menu-list-right.responsive {
        position: relative;
        top: 2.5rem;
    }

    .top-menu-list-right.responsive .top-menu-listitem-menu-icon {
        position: absolute;
        right: 0;
        top: -2.5rem;
    }

    .top-menu-list-right.responsive li:nth-child(2) {
        position: absolute;
        right: 3.125rem;
        top: -2.5rem;
    }

    .top-menu-list-right.responsive li:nth-child(1) {
        position: absolute;
        right: 6.4rem;
        top: -2.5rem;
    }

    .top-menu-list-right.responsive li:nth-child(3),
    .top-menu-list-right.responsive li:nth-child(4) {
        float: none;
        display: block;
        background-color: #66cc99;
    }

    .top-menu-item-last.responsive.active,
    .top-menu-item-last.responsive:hover,
    .top-menu-item-last.responsive,
    .top-menu-list-right.responsive:hover a,
    .menubar-right.responsive {
        border-bottom-right-radius: 0;
    }
}

@media screen and (max-width: 36.5rem) {

    /*49.5*/
    .top-menu-list-right li:nth-child(2) {
        display: none;
    }

    .top-menu-list-right.responsive li:nth-child(2) {
        float: none;
        display: block;
        background-color: #66cc99;
        position: relative;
        right: 0;
        top: 0;
    }

    .top-menu-list-right.responsive li:nth-child(1) {
        position: absolute;
        right: 3.125rem;
        top: -2.5rem;
    }
}

@media screen and (max-width: 34rem) {

    /*47*/
    .top-menu-list-right li:nth-child(1) {
        display: none;
    }

    .top-menu-list-right.responsive li:nth-child(1) {
        float: none;
        display: block;
        background-color: #66cc99;
        position: relative;
        right: 0;
        top: 0;
    }
}

@media screen and (max-width: 32rem) {

    /*44.5*/
    .top-menu-list-left li:nth-child(5) {
        display: none;
    }

    .top-menu-list-left li.top-menu-listitem-menu-icon {
        display: block;
    }

    .top-menu-list-left.responsive {
        position: relative;
        top: 2.5rem;
    }

    .top-menu-list-left.responsive li:nth-child(2) {
        position: absolute;
        left: 3.925rem;
        top: -2.5rem;
    }

    .top-menu-list-left.responsive li:nth-child(1) {
        position: absolute;
        left: 0.5rem;
        top: -2.5rem;
    }

    .top-menu-list-left.responsive li:nth-child(3) {
        position: absolute;
        left: 7.05rem;
        top: -2.5rem;
    }

    .top-menu-list-left.responsive li:nth-child(4) {
        position: absolute;
        left: 17rem;
        top: -2.5rem;
        width: 9.9rem;
    }

    .top-menu-list-left.responsive li {
        float: none;
        display: block;
        background-color: #66cc99;
    }

    .top-menu-list-left {
        background-color: transparent;
    }
}

@media screen and (max-width: 30rem) {

    /*38*/
    .top-menu-list-left li:nth-child(4) {
        display: none;
    }

    .top-menu-list-left.responsive li:nth-child(4) {
        display: block;
        position: relative;
        left: 0;
        top: 0;
    }
}

@media screen and (max-width: 22rem) {

    /*28.25*/
    .top-menu-list-left li:nth-child(3) {
        display: none;
    }

    .top-menu-list-left.responsive li:nth-child(3) {
        display: block;
        position: relative;
        left: 0;
        top: 0;
    }
}

aside.aside-left-index {
    height: 100%;
    padding-right: 0.25rem;
    left: 0.5rem;
    margin-top: 7.2rem;
    width: 17%;
    padding-left: 0;
}

.aside-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.aside-right-content-top {
    width: 100%;
    height: 50%;
    border-width: 0.05rem;
}

.aside-right-content-bottom {
    width: 100%;
    height: 50%;
    border-width: 0.05rem;
}

.maincontent-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100%;
    height: fit-content;
}

.highlight {
    font-weight: bold;
}

.highlightunderline {
    font-weight: bold;
    text-decoration: underline;
}

p {
    line-height: 1.3;
}

button input textarea {
    font-size: 0.9rem;
}

.example-box {
    margin-top: 1rem;
    margin-left: 1rem;
    border: 0.05rem solid navy;
    background-color: aquamarine;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.example-title {
    font-weight: bold;
    color: navy;
}

.image-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    max-width: 100%;
    object-fit: scale-down;

}

ul {
    padding-left: 1.5rem;
}

li.list {
    list-style-type: square;
    margin: 0.5rem;
}

::-webkit-scrollbar {
    width: 0.25rem;
    height: 0.25rem;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0.25rem #66cc99;
    border-radius: 0.25rem;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #4a9f75;
    border-radius: 0.25rem;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #33cc7f;
}

.codebox {
    display: block;
    width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1rem auto;
    padding: 0.1rem;
    background-color: gainsboro;
    border-radius: 0.25rem;
    border: solid 0.05rem darkgray;
    border-left: solid 0.2rem darkgray;
}

.javaCodeExecution {
    display: block;
    width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1rem auto;
    padding: 0;
    background-color: black;
    color: white;
    border-radius: 0.4rem;
    padding: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    margin: 1.5rem auto;
    white-space: nowrap;
}

.flowgorithmbox {
    display: block;
    width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 1rem auto;
    padding: 0;
    background-color: lightyellow;
    border-radius: 0.25rem;
    border: solid 0.05rem yellow;
    border-left: solid 0.2rem gold;
}

.codeboxmodal {
    overflow-x: auto !important;
    overflow-y: auto !important;
    border: 0 !important;
}

pre {
    margin-top: 0;
    margin-bottom: 0;
}

.flowgorithmcode {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    padding: 0.75rem !important;
    padding-left: 2.25rem !important;
    background-color: transparent !important;
    color: blue;
}

code {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    padding: 0.75rem !important;
    background-color: transparent !important;
}

pre.codemodal code.codemodal {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.nota {
    display: block;
    width: 90%;
    overflow: auto;
    margin: 1rem auto;
    padding: 1rem;
    background-color: #98fb98;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-left: solid 0.15rem #4a9f75;
}

.centered {
    display: block;
    width: 100%;
    text-align: center;
}

.strumento-link {
    font-size: 1.2rem;
}

.soluzione-link {
    font-size: 1.2rem;
}

.link {
    cursor: pointer;
    text-decoration: none;
    color: #106e3f;
}

.mathformula {
    width: calc(100% - 1em);
    overflow-x: auto;
    margin: 1.25rem auto;
    background-color: #e0ffe0;
    border-radius: 0.5rem;
    border: solid 0.05rem darkolivegreen;
    padding: 0.5rem;
}

.fileError {
    font-size: 1.2rem;
    margin: 1.5rem;
    text-align: center;
    color: #106e3f;
}

.vettore {
    margin: 1rem auto;
    border-collapse: collapse;
}

.cellavettore {
    border: solid 0.05rem green;
    padding: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
    vertical-align: middle;
}

.cellavettoreminimo {
    background-color: yellow;
}

.cellavettoreordinata {
    background-color: lime;
}

.cellavettoreignorata {
    background-color: lightgray;
}

.divmerge {
    width: 50%;
    display: flex;
    justify-content: center;
}

.divmergeleft {
    border-right: solid 0.05rem red;
}

.divmergeright {
    border-left: solid 0.05rem red;
}

.divmergetop {
    display: flex;
    justify-content: center;
}

.imgslidecontainer .imgcontainer {
    width: 100%;
    height: auto;
}

.imgslide {
    display: none;
    width: 100%;
    height: auto;
}

@keyframes imgfade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.imgfade {
    animation-name: imgfade;
    animation-duration: 2s;
}

.topRight {
    position: relative;
    height: 4.5rem;
    width: 100%;
}

.topInfo {
    position: absolute;
    bottom: 0.1rem;
    right: 0.1rem;
    background-color: rgba(255, 255, 255, 0);
    padding: 0;
    margin: 0;
    height: 1.15rem;

}

.topInfoText {
    text-align: right;
    color: #106e3f;
    font-size: 0.5rem !important;
    margin: 0;
    padding: 0;
}

.searchbox {
    height: 3.75rem;
}


.qr-code-form-container {
    padding-top: 1rem;
    text-align: center;
}

.qr-code-image {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
}

.form-qrcode {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
}

.form-qrcode label {
    text-align: right;
    align-self: start;
}

.form-qrcode textarea,
input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.form-qrcode button,
.qr-code-image button {
    grid-column: span 2;
    justify-self: center;
    padding: 0.4rem 0.8rem;
}

.qr-code-image img {
    grid-column: span 2;
    justify-self: center;
}

.qr-code-image label {
    text-align: right;
    align-self: start;
}



.accordion {
    width: 100%;
    margin: 0.5rem auto;
    border: 0.05rem solid #106e3f;
    border-radius: 0.25rem;
    overflow: hidden;
}

.accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    border: none;
    outline: none;
    background-color: #66cc99;
    color: white;
}

.icon {
    font-weight: bold;
    /*transition: transform 0.2s ease;*/
    cursor: pointer;
}

.accordion-content {
    padding: 0.25rem;
    display: none;
}

.accordion-content p {
    margin: 0.25rem;
}

.accordion.active .accordion-content {
    display: block;
}

.accordion.active .icon {
    transform: rotate(180deg);
}

.moduloNome {
    width: 95% !important;
}

.moduloCognome {
    display: none;
}
.header {
    width: calc(100% - 1rem);
    height: 7rem;
    display: block;
    position: fixed;
    top: 0;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    background-color: white;
    z-index: 10;
}

.maincontent {
    display: block;
    margin-top: 7.2rem;
    margin-left: calc(17% + 0.5rem);
    max-height: calc(100vh - 7.2rem);
    width: calc(83% - 0.5rem);
    min-height: calc(100vh - 7.2rem);
    overflow-y: auto;
    z-index: 0;
}

aside.aside-left {
    height: calc(100vh - 7.2rem);
    padding-right: 0.25rem;
    overflow-y: auto;
    position: fixed;
    top: 7.2rem;
    left: 0.5rem;
    width: 17%;
    padding-left: 0;
    visibility: hidden;
}

aside.aside-right {
    display: block;
    padding: 0.25rem;
    border: none;
    margin-top: 0;
    width: 23%;
    min-height: calc(100vh - 7.7rem);
    height: auto;
}

section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-left: 0.05rem solid #8db1fb;
    border-right: 0.05rem solid #8db1fb;
    width: calc(77% - 1rem);
    min-height: 100%;
    height: auto;
}
