* {
    margin: 0rem;
}
body {
    background-color: rgb(220, 21, 53);
    font-family: Arial, sans-serif;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0 0px;
    margin: 0rem;
    height: 7rem;
    flex-wrap: wrap;
}
.navbar ul {
    list-style: none;
    justify-content: space-between;
    display: flex;
    padding: 0;
    margin: 0rem;
    width: 100%;
    align-items: center;
}
.navbar li {
    display: block;
}
.active {
    text-decoration: underline !important;
}
.navbar a {
    color : black;
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
}
.navbar a:hover {
    color: rgb(220, 21, 53);
    border-bottom: 3px solid rgb(36, 141, 42);
    transition: padding-top 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
}

.navbar li p {
    font-size: 1.2rem;
}
.navbar ul img {
    width: 7rem;
    height: 7rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.main-div {
    background: white;
    width: 92%;
    margin: auto;
    height: auto;
    min-height: 180vh;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    margin-left: 45%;
    width: 60px;
    height: 60px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50% 50%;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    background-color: white;
    width: 100%;
    height: 7rem;
}

.footer-content {
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0rem;
    font-size: 1rem;
}

.footer-content ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0rem;
    padding: 0;
}

.footer-content a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    text-decoration: underline;
    color: rgb(220, 21, 53);
}

header.navbar {
    position: relative;
}

.contrast-dropdown {
    position: relative;
    list-style: none;
}

#contrast {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}


h1 {
    text-align: center;
    padding-top: 3rem;
}

/* contrast mode */
body.high-contrast {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    font-size: 1.2rem!important;
}

body.high-contrast .navbar,
body.high-contrast .footer,
body.high-contrast .main-div,
body.high-contrast .navbar-2 {
    background-color: #000000 !important;
    color: #FFFF00 !important;
}

body.high-contrast a,
body.high-contrast .footer-content a {
    color: #00FFFF !important;
    text-decoration: underline;
}

body.high-contrast a:hover,
body.high-contrast .footer-content a:hover {
    color: #FFA500 !important;
}

.high-contrast .navbar a:hover,
.high-contrast .navbar-2 a:hover {
    color: #FFA500 !important;
    border-bottom: 3px solid #FFA500 !important;
    transition: padding-top 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
}

body.high-contrast td,
body.high-contrast th,
body.high-contrast p,
body.high-contrast h1,
body.high-contrast h2, 
body.high-contrast h3,
body.high-contrast .card,
body.high-contrast .form-div {
    color: #FFFF00 !important;
    background-color: #000000 !important;
    border-color: #FFFF00 !important;
}

body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border: 1px solid #FFFF00 !important;
}

body.high-contrast button {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    border: 1px solid #FFFF00 !important;
}

body.high-contrast label {
    color: #FFFF00;
}

/* dark mode */
body.dark-mode {
    background-color: #121212 !important;
    color: #E0E0E0 !important;
}

body.dark-mode .navbar,
body.dark-mode .footer,
body.dark-mode .main-div,
body.dark-mode .navbar-2 {
    background-color: #1E1E1E !important;
    color: #E0E0E0 !important;
}

body.dark-mode a,
body.dark-mode .footer-content a {
    color: #90CAF9 !important;
    text-decoration: underline;
}

body.dark-mode a:hover,
body.dark-mode .footer-content a:hover {
    color: #FFB74D !important;
}

.dark-mode .navbar a:hover,
.dark-mode .navbar-2 a:hover {
    color: #FFB74D !important;
    border-bottom: 2px solid #FFB74D !important;
    transition: padding-top 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
}

body.dark-mode td,
body.dark-mode th,
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .card,
body.dark-mode .form-div {
    color: #E0E0E0 !important;
    background-color: #1E1E1E !important;
    border-color: #333 !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #333333 !important;
    color: #E0E0E0 !important;
    border: 1px solid #555 !important;
}

body.dark-mode label {
    color: #E0E0E0 !important;
}

body.dark-mode button {
    background-color: #555 !important;
    color: #E0E0E0 !important;
    border: 1px solid #555 !important;
}


/* Responsive */


@media (min-width: 0px) and (max-width: 767px) {
    .navbar img {
        display: none;
    }
    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    h1 {
        padding-top: 8rem;
    }

    .main-div {
        padding: 0 1rem;
    }

    .navbar-2 {
        position: absolute!important;
        width: 1px!important;
        height: 1px!important;
        padding: 0!important;
        margin: -1rem!important;
        overflow: hidden!important;
        border: 0!important;

    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .navbar img {
        display: none;
    }
    .main-div {
        padding: 0 2rem;
    }

    .footer-content {

        text-align: center;
    }

    .footer-content ul {
        padding: 1rem;
    }

    .navbar-2 {
        position: absolute!important;
        width: 1px!important;
        height: 1px!important;
        padding: 0!important;
        margin: -1rem!important;
        overflow: hidden!important;
        border: 0!important;

    }
}