main-navbar, main-sidebar {
    display: contents;
}

*{
    margin: 0;
    padding: 0;
    color: white;
    font-family: raleway regular, serif;
}

input {
    padding: 0.65rem 0.9rem;
    box-sizing: border-box;
    
    font: inherit;
    background-color: #424769;
    border: 1px solid #fff;

}

select {
    padding: 0.65rem 0.9rem;
    box-sizing: border-box;
    
    font: inherit;
    background-color: #424769;
    border: 1px solid #fff;

}

.container button {
    padding: 0.65rem 0.9rem;
    box-sizing: border-box;

    font: inherit;
    width: 121.9px;
    background-color: #f9b17a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
button {
    padding: 0.65rem 0.9rem;
    box-sizing: border-box;

    font: inherit;
    background-color: #f9b17a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#IEp_option {
    display: block;
    margin: 0 auto;
    margin-top: 2em;
    border-radius: 20em;
    border-style: double;
    border-width: 10px;
    border-color: #5e6171;
    font-size: 3em;
    width: 10em;
    height: 2.5em;


}

.hideplus {
    display: none !important;
}

input::placeholder {
    color: #ffffffc4;
}

input:focus {
    outline: none;
    border-left: .5em solid #f9b17a;
}

body{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "navbar navbar"
    "sidebar main"
    "sidebar footer";
}

.title {
    text-align: center;
    font-size: clamp(3rem, 5vw + 1rem, 4rem);
    margin: 0;
    margin-bottom: .5em;
}

nav {
    z-index: 999;
    box-sizing: border-box;
    position:sticky;
    top: 0;
    grid-area: navbar;
    padding: 1em;
    background-color: #424769;
    border-bottom: .5px solid #f9b17a;

}

aside {
    z-index: 99;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    position: sticky;
    top: 60px;
    align-self: start;
    grid-area: sidebar;
    background-color: #424769;
    
}

#sidebar {
    box-sizing: border-box;
    padding: 5px 1em;
    border-right: 1px solid #f9b17a;
    border-top: .5px solid #f9b17a;
    
}

#sidebar ul {
    list-style: none;
    background-color: #424769;
}


#sidebar a, #sidebar .dropdown-btn {
    border-radius: .5em;
    padding: .85em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5em;
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

main {
    grid-area: main;
    background-color: #2d3250;
    padding: min(15px, 7%);

}

footer {
    grid-area: footer;
    padding: 2em;
    background-color: #424769;
}

#toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#sidebar svg{
    flex-shrink: 0;
}

#sidebar a span, #sidebar .dropdown-btn span {
    flex-grow: 1;

}

#sidebar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: 300ms ease-in-out;

    > div {
        overflow: hidden;
    }
}

#sidebar .sub-menu.show{
    grid-template-rows: 1fr;
}


.rotate svg:last-child {
    rotate: -180deg;
}

#sidebar #logbox {
    box-sizing: border-box;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #2d3250;
    width: 100%;
    border-top: 1px solid #f9b17a;
}

#sidebar #logoutButton {
    display: flex;
    text-align: center;
    background-color: #2d3250;
    border: none;
    bottom: 0px;
    padding: 1em;
    gap: .5em;
    font: inherit;
    cursor: pointer;
}

#loginButton, #goto {
    background-color: #f9b17a;
    color: #2d3250;
    width: 80px;
    height: 40px;
    border: none;
    border-radius: 5px;
    gap: .5em;
    cursor: pointer;
    font: inherit;

    box-shadow: 
        0 0 10px #f9b17a,
        0 0 30px #f9b17a,
        inset 0 0 15px #f9b17a;
}

.mainbox {
    border-style: solid;
    border-color: #424769;
    border-width: 2px;
    border-radius: 10px;
    background-color: #1f2236;
    position: relative;
    justify-self: center;
    width: clamp(150px, 50vw, 800px);
    padding: 3em;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;

}

.mainbox a {
    text-decoration: none;
}


.wrapper {

    display: grid;
    grid-template-rows: 1fr auto;
    width: 200px;
    height: 200px;
    align-items: center;
    text-align: center;
    padding: 1em;
    border-style: dashed;
    border-color: #424769;
}

.wrapper svg {
    justify-self: center;
    width: 100px;
    height: 100px;
    
}

.wrapper span {
    font-size: 2em;
}

.container {
    border-style: solid;
    border-color: #424769;
    border-width: 2px;
    border-radius: 10px;
    background-color: #1f2236;
    position: relative;
    justify-self: center;
    width: clamp(150px, 50vw, 800px);
    padding: 3em;
    margin-top: 5.4em;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-template-areas: 
    "d svg"
    "ty svg"
    "ca svg"
    "in svg"
    "but svg"
    ;

    gap: 1em;
}

.container h2 {
    position: absolute;
    font-size: 2.4em;
    top: -1.5em;
    left: .5em;


}

.container #ie-sdate {
    grid-area: d;
    width: 8.7em;
    font-size: 1.2em;
}

.container #ie-input {
    grid-area: in;
    width: 304.75px;
    font-size: 1.2em;
}

.container #ie-type {
    grid-area: ty;
    width: 304.75px;
    font-size: 1.2em;
}

.container #ie-category {
    grid-area: ca;
    width: 304.75px;
    font-size: 1.2em;
}

.container #ie-svg {
    grid-area: svg;
    justify-self: center;
    align-self: center;
    width: 250px;
    height: 250px;

}


@media (max-width: 600px) {
    body {
        grid-template-columns: 0;
    }
    
    aside {
        position:fixed;
        width: 300px;
        display: none;
    }
    .show {
        display: block;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    

    .container h2 {
        left: 0;
        right: 0;
        text-align: center;
    }

    .container #ie-input {
        width: 8.7em;
        font-size: 1.2em;
    }

    .container #ie-type {
        width: 8.7em;
        font-size: 1.2em;
    }

    .container #ie-category {
        width: 8.7em;
        font-size: 1.2em;
    }

    .container #ie-svg {
        display: none;
    }

    .container2 h2{
        left: 0;
        right: 0;
        text-align: center;
    }

    .container2 input {
        width: 8.7em;
        font-size: 1.2em;
    }

    #IEp_option {
        width: 10em;
        height: 3em;
        font-size: 20px;
        padding: auto;
    }

    
}

.container2 {
    border-style: solid;
    border-color: #424769;
    border-width: 2px;
    border-radius: 10px;
    background-color: #1f2236;
    position: relative;
    justify-self: center;
    width: clamp(150px, 50vw, 800px);
    padding: 3em;
    margin-top: 5.4em;

    display: flex;
    flex-direction: column;
    gap: 1em;
}

.container2 h2 {
    position: absolute;
    font-size: 2.4em;
    top: -1.5em;
    left: .5em;
}

#content {
    display: flex;
    flex-direction: column;
    gap: .5em;
    
}

#content input {
    width: 8.7em;
}

#content p {
    width: 8.7em;
    font-size: 1.2em;
}

#iep_container {
    display: none;;
}

.showplus {
    display: flex !important;
}

.smalltext {
    display: flex;
}

#config {
    background-color: transparent;
    padding: 0%;
    width: 150px;
}

#ieplusconfig {
    display: none;
}

#ieplusconfig.show {
    display: block;
}