#title {
    font-family: monospace;
}

nav {
    background-color: rgba(220, 220, 220, 0.192);
    backdrop-filter: blur(10px);
    box-shadow: 1px 1px 30px black;
}

.navbardiv {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#iconimg {
    max-width: 100px;
    width: 100%;
}

.items-wrapper {
    display: flex;
    justify-content: space-evenly;
    gap: 1.5rem;
    max-width: 600px;
    width: 100%;
}

@media (max-width: 760px) {
    #iconimg {
        display: none;
    }

    .items-wrapper {
        margin-top: 1rem;
    }

    .theme-toggle {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
}

a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
}

a::after {
    content: "";
    position: absolute;
    background-color: white;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    opacity: 0;
    transform: translateY(0px);
    transition: all 0.3s ease-in-out;
}

a:hover::after {
    opacity: 100%;
    transform: translateY(10px);
}

.light a::after {
    background-color: black;
}

@media (max-width: 575px) {
    a::after {
        display: none;
    }
}

#centercookie {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#cookiebanner {
    z-index: 999;
    position: fixed;
    max-width: 500px;
    width: 100%;
    background-color: rgb(43, 40, 40);
    padding: 1rem;
    border-radius: 10px;
    bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0px 0px 12px black;
}

@media (max-width: 450px) {
    #cookiebutton {
        margin-bottom: 2rem;
    }
}

#cookiebutton {
    background-color: white;
    max-width: 100px;
    width: 100%;
    transition: 200ms;
    box-shadow: 1px 1px 6px black;
}

#cookiebutton:hover {
    transform: translateY(-5px);
    background-color: rgba(122, 116, 116, 0.404);
}

.light #cookiebutton {
    background-color: black;
    color: white !important;
}

#smallscreen {
    padding: 2rem;
    line-height: 2rem;
}

@media (max-width: 430px) {

    #smallscreen {
        position: relative;
        bottom: 1.5rem;
        line-height: 2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 430px) {

    h4 {
        position: relative;
        bottom: 15px;
    }
}

#box {
    background-color: rgba(133, 132, 132, 0.192);
    backdrop-filter: blur(10px);
    box-shadow: 1px 1px 20px black;
    max-width: 500px;
    width: 90%;
    transition: 0.3s;
}

#box:hover {
    background-color: rgba(133, 132, 132, 0.342);
    transform: translateY(-10px);
}

footer {
    max-width: 500px;
    padding-top: 10%;
    font-size: 25px;
}

@media (max-width: 430px) {
    footer {
        max-width: 100%;
        padding-bottom: 20%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
    }
}

@media (max-width: 412px) {
    footer {
        display: inline;
        justify-content: center;
        align-items: center;
        font-size: 20px;
    }
}

#converter {
    border: 2px dashed white;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 25px;
    margin-top: 10%;
    box-shadow: 0px 0px 0px black;
    background-color: rgba(133, 132, 132, 0.192);
    backdrop-filter: blur(10px);
}

.light #converter {
    border: 2px dashed black;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    padding: 25px;
    margin-top: 10%;
    box-shadow: 0px 0px 0px black;
    background-color: rgba(133, 132, 132, 0.192);
    backdrop-filter: blur(10px);
}

#converter:hover {
    box-shadow: 1px 1px 30px black;
    background-color: rgba(255, 255, 255, 0.185);
}

.light #converter:hover {
    box-shadow: 1px 1px 30px black !important;
    background-color: rgba(41, 39, 39, 0.301) !important;
}

#converter.disabled {
    pointer-events: none;
    opacity: 0.5;
}

#centerbutton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 430px) {
    #centerbutton {
        padding: 0 10px;
    }

    #centerbutton button {
        width: 100%;
        max-width: 300px;
    }
}

#maincolor {
    background-color: rgb(33, 37, 41);
    color: white !important;
}

.light {
    background-color: white !important;
    color: black !important;
}

.light a,
.light p,
.light h1,
.light h2,
.light h3,
.light h4,
.light h5,
.light ul,
.light li,
.light ol {
    color: black !important;
}

#sun {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 80px;
    width: 100%;
    max-height: 80px;
    height: auto;
    box-shadow: 0px 0px 0px black;
    transition: all 0.3s ease;
}

#sun:hover {
    background-color: rgba(255, 255, 255, 0.171);
    box-shadow: 0px 0px 12px black;
}

#moon {
    max-width: 70px;
    width: 100%;
    box-shadow: 0px 0px 0px black;
    transition: all 0.3s ease;
}

#moon:hover {
    background-color: rgba(0, 0, 0, 0.233);
    box-shadow: 0px 0px 12px black;
}

@media (max-width: 430px) {
    .terms {
        width: 300px;
        max-width: 100%;
        padding-bottom: 20%;
        display: flex;
        justify-content: center;
    }
}

#termsandservice {
    position: fixed;
    display: none;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    height: auto;
    background-color: rgb(33, 37, 41);
    box-shadow: 0px 0px 12px black;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border-radius: 10px;
}


.light #termsandservice {
    background-color: white;
}

@media (max-width: 700px) {
    #termsandservice {
        position: fixed;
        display: none;
        z-index: 1;
        width: 100%;
        max-width: 400px;
        height: 100%;
        max-height: 780px;
        background-color: rgb(33, 37, 41);
        box-shadow: 0px 0px 12px black;
        left: 50%;
        right: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        overflow-y: scroll;
    }
}

.light #steps {
    background-color: white;
}

#steps {
    background-color: rgb(33, 37, 41);
    box-shadow: 0px 0px 15px black;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    margin: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: 200ms;
}

#maincontent {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 1199px) {
    #maincontent {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 1rem;
        overflow-x: auto;
        padding: 1rem;
    }
}

@media (max-width: 991px) {
    #maincontent {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

#steps:hover {
    background-color: rgba(0, 128, 255, 0.507);
    transform: translateY(-10px);
}
