@media screen and (max-width: 1400px),
handheld and (min-width: 1200px) {
    .last-menu-itm {
        right: 0.1%;
    }

}

@media screen and (max-width: 1200px) {
    :root {
        --brand: #1a73e8;
        --ink: #434443dc;
        --muted: #5b6b7b;
        --line: #dfe7f3;
        --panel-bg: #f4f9ff;
    }

    nav.menu a img {
        display: none;
    }

    /* #header {
    top: 7.5rem !important;
    } */

    .mobile-icon {
        display: block;
    }

    #burger-button {
        display: block;
    }

    .openbtn {
        display: block;
    }

    #primarie {
        line-height: 1.5;
    }

}




@media screen and (max-width: 1200px),
handheld and (min-width: 1000px) {

    .header {
        top: 110px;
    }

    .header .menu .menu-section {
        display: none;
    }

    .quick-menu ul li {
        margin-bottom: 0.2rem !important;
    }

    .quick-menu ul li a .name span {
        font-size: 1rem;
    }

    #primarie {
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }

    .openbtn {
        margin: 10px 10px 10px 0;
    }

    summary {
        font-size: 1rem;
    }


}

@media screen and (max-width: 990px),
handheld and (min-width: 770px) {

    .quick-menu ul li a .name span {
        font-size: 0.8rem;
    }

    .quick-menu ul li a {
        min-width: 6rem;
        margin: 1rem 0 0 0;
    }

    .modernizare-sistem h1 {
        font-size: 1.5rem;
    }


    .larger-font {
        font-size: 1rem;
    }
}


@media(max-width:768px) {
    #primarie {
        margin-top: 3.2rem;
        float: left;
        text-align: center;
        line-height: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Fixed sidenav, full height */
    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #1a73e8;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .sidenav .closebtn {
        font-size: 15px;
        margin-left: 212px;
        cursor: pointer;
    }

    /* Style the sidenav links and the dropdown button */
    .sidenav a,
    .dropdown-btn {
        padding: 10px 8px 6px 16px;
        text-decoration: none;
        font-size: 15px;
        color: #ffffffd0;
        display: block;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        outline: none;
    }

    /* On mouse-over */
    .sidenav a:hover,
    .dropdown-btn:hover {
        color: #f5f5f576;
    }

    /* Main content */
    .main {
        margin-left: 200px;
        /* Same as the width of the sidenav */
        font-size: 20px;
        /* Increased text to enable scrolling */
        padding: 10px 10px;
    }

    /* Add an active class to the active dropdown button */
    .active {
        background-color: rgba(6, 10, 91, 0.181);
        color: white;
    }

    /* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
    .dropdown-container {
        display: none;
        background-color: rgba(6, 10, 91, 0.181);
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Optional: Style the caret down icon */
    .fa-caret-down {
        float: right;
        padding-right: 5px;
    }

    .menu-section {
        display: none;
    }

    .slide-container {
        top: 80px;
    }

    .slide-container .navigation {
        height: 15rem;
        ;
    }

    .cover-text {
        top: 17rem;
    }

    .cover-text p {
        font-size: 0.7rem;
    }

    .cover-text h2 {
        font-size: 0.9rem;
    }

    .prev-btn,
    .next-btn {
        font-size: 0.8rem;
    }

    .slide-icon {
        display: none;
    }

    .slide img {
        height: 55vh;
    }

    .link-card {
        margin-top: 2rem;
    }

    .harti-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .scd-button {
        margin-right: 12%;
    }

    .openbtn {
        margin: 50px 10px 50px 0;
    }

    .search-bar,
    .facebook-icon {
        display: block;
    }

    footer {
        font-size: 1.5vw;
        min-height: 180px;
    }

    .design {
        margin-top: 1rem;
    }

    summary {
        font-size: 0.8rem;
        margin: 0 4% 1rem 0;
    }

    .pr-fin h1 {
        font-size: 1.4rem;
    }

    a.quick-menu-link:visited,
    a.quick-menu-link:hover,
    a.quick-menu-link:active {
        color: white !important;
    }

}