:root{
    --primary-color: #fff;
    --secondary-color: #000;
    --color: #22543D;
}
.dark-mode{
    --primary-color: #18191a;
    --secondary-color: #fff;
    --color: #fff;
}

@media screen and (min-width: 0px) {
    nav {
        padding-left: 24px;
        padding-right: 24px;
        max-width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    nav {
        padding-left: 24px;
        padding-right: 24px;
        max-width: 1024px;
    }
    .navbuttons{
        display: flex;
    }
}

@media screen and (min-width: 1280px) {
    nav {
        padding-left: 0;
        padding-right: 0;
        max-width: 1152px;
    }
}

nav{
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    position: relative;
    height: 64px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.bar{
    position: relative;
    height: 100%;
    display: flex;
}

.bar2{
    position: relative;
    height: 100%;
    display: flex;
}

.logo{
    display: flex;
    height: 100%;
    align-items: center;
}

.logo .logolink{
    text-decoration: none;
    width: 36px;
    height: 36px;
    transition: 0.15s;
    color: var(--secondary-color);
    font-size: 18px;
}

.logo h1{
    height: 100%;
    width: 100%;
    font-weight: 600;
    border: 2px solid;
}

.navbuttons{
    display: none;
    height: 100%;
    align-items: center;
}

.navopener{
    width: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.navopener .navtoggler{
    appearance: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    z-index: 10;
    position: absolute;
}

.navopener span{
    font-size: 28px;
    font-weight: 300;
    color: var(--secondary-color);
}

@media screen and (min-width: 1024px) {
    .navbuttons{
        display: flex;
    }
    .navopener{
        display: none;
    }
}

.navlink{
    display: flex;
    position: relative;
    text-decoration: none;
    margin-left: 16px;
    font-size: 11px;
    color: var(--secondary-color);
    height: 100%;
    width: 100%;
    background: var(--primary-color);
}

.navlink span{
    color: rgb(246, 82, 82);
}

.navlink::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(246, 82, 82);
    transform-origin: bottom right;
    transition: transform 0.15s ease-out;
}

.navlink h1{
    font-weight: 600;
    padding-top: 20px;
}

.navlink .m{
    position: relative;
    color: #fff;
    top: 22px;
    height: 20px;
    width: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
    background-color: rgb(220, 38, 38);
    border-radius: 2.5px;
}

.CheckBox{
    display: flex;
    height: 100%;
    align-items: center;
}

.slider{
    appearance: none;
    background: #c0c0c0;
    width: 40px;
    height: 20px;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
    margin-left: 5px;
}

.slider::before{
    content: '';
    position: absolute;
    background-color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 100px;
    margin-top: 2px;
    margin-left: 2px;
    transition: 0.15s;
}

#text1{
    font-size: 12.3px;
    font-weight: 600;
    margin-left: 5px;
    color: var(--secondary-color);
}

#text2{
    font-size: 12.3px;
    font-weight: 600;
    margin-left: 5px;
    color: var(--secondary-color);
}

.toggler{
    appearance: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    z-index: 10;
}

.IconContainer{
    position: absolute;
    display: flex;
    padding-top: 3px;
}

.DarkMode{
    visibility: visible;
}

.LightMode{
    color: #fff;
    position: absolute;
    visibility: hidden;
}

@media screen and (min-width: 1024px) {
    .responsivenav{
        height: 0;
        width: 0;
        opacity: 0;
    }
}

.responsivenav{
    width: 100%;
    border-bottom: 2px solid;
    border-color: rgba(94, 94, 94, 0.125);
    overflow: hidden;
}

.navbuttons2{
    display: flex;
    flex-direction: column;
    padding: 8px 0px 12px;
}

.navlink2{
    display: flex;
    position: relative;
    text-decoration: none;
    font-size: 8px;
    color: var(--secondary-color);
    height: 40px;
    width: 100%;
    background: var(--primary-color);
    padding: 8px 16px 8px 24px;
    margin-top: 4px;
    transition: 0.15s;
}

.navlink2:first-child{
    margin-top: 0px;
}

.navlink2 h1{
    font-weight: 500;
}

.navlink2 .m{
    position: relative;
    color: #fff;
    top: 2px;
    height: 20px;
    width: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
    background-color: rgb(220, 38, 38);
    border-radius: 2.5px;
}

.navlink2 .stick{
    display: flex;
    color: rgb(246, 82, 82);
}

.navlink2 .stick::before{
    content: '';
    position: absolute;
    height: 100%;
    left: 0px;
    top: 0px;
    border-left: 4px solid;
}

.navlink:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.logolink:hover{
    color: rgb(246, 82, 82);
}

.slider:checked::before{
    transform: translateX(20px);
}

.toggler:hover + .IconContainer .DarkMode{
    color: rgb(246, 82, 82);
}

.toggler:hover + .IconContainer .LightMode{
    color: rgb(246, 82, 82);
}

.toggler:checked + .IconContainer .DarkMode{
    visibility: hidden;
}

.toggler:checked + .IconContainer .LightMode{
    visibility: visible;
}

.navlink2:hover{
    color: rgb(246, 82, 82);
}