

*, *::before, *::after{
    box-sizing: border-box;
}
body{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    max-width: 100%;
}
:root{
    --accent-color: #003153;
    --hover-accent-color: #00528C;
    --lightest-gray:rgb(249,249,249);
    --light-gray:rgb(235,236,240);
    --medium-gray:rgb(202,202,202);
    --dark-gray:#2e2e2e;
    --header-height: 56px;
    --xition-duration: 200ms;
    --xition-timing-curve: ease-in-out;
}

h3{
    margin-bottom: .4em;
    font-weight: 600;
}

hr  {
    margin-top: 1.25em;
    border: none;
    height: 1px;
    background-color: var(--hover-accent-color);
    
}

a {
    color: var(--hover-accent-color);
    text-decoration: none;
}
select{
    font-size: 1em;
}

.header{
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--accent-color);
    opacity: .98;
    box-shadow: 0 1px 7px 0 rgb(0,0,0,0.28);
    height: var(--header-height);  
    padding: 0 1.1rem;
}

input{
    font-size: 1em;
}
input[type="number"]{
    text-align: right;
}

input[type="text"]{
    text-align: right;
    border: none transparent;
    outline: none;
    background-color: var(--lightest-gray);
}

input[type="button"]{
    background-color: var(--accent-color);
    color: #ffffff;
    border: .6px solid #808080;
    cursor: pointer;
}

input[type="button"]:hover{
    background-color: var(--hover-accent-color);
    border: .6px solid #808080;
}

input[name="base"]{
    border: .5px solid;
    background-color: #ffffff;
} 

.menu-icon-btn{
    background: none;
    border: none;
    padding: 0;
}
.menu-icon{
    height: 24px;
    width: 24px;
    stroke: #ffffff;
}

.menu-icon:hover{
    stroke: var(--light-gray);
    cursor: pointer;
}

.site-logo{
    height: 24px;
    padding-left: 1.1rem;
}

.logo-line{
    color:#ffffff;
    font-size: 1.6em;
    margin-left: 1em;
    font-weight: 400;
}

.logo-tag{
    color: var(--light-gray);
    margin-left: 0;
    font-weight: 300;
}

.sidebar{
    flex-shrink: 0;
    padding-top: 1.35rem;
    width: 65px;
    overflow: hidden;
    /* border-right: .25px solid var(--light-gray); */
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    align-items: center;
    transition: width var(--xition-duration) var(--xition-timing-curve);
    position: sticky;
    left: 0;
    top: var(--header-height);
}

.sidebar .hidden-sidebar{
    opacity: 0;
    width: 0;
    transition: opacity var(--xition-duration) var(--xition-timing-curve);
}

.sidebar.open .hidden-sidebar{
    width: 100%;
    opacity: 1;
}

.sidebar .top-sidebar{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: .8rem;
}

.sidebar .logo {
    display: block;
    width: 30px;
    height: 30px;
    transition: var(--xition-duration) var(--xition-timing-curve);
}

.sidebar.open .logo {
    width: 92px;
    height: 92px;
}

.sidebar .logo > img{
    width: 100%;
    height: 100%;
}

.middle-sidebar{
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
}
.middle-sidebar, .bottom-sidebar{
    width: 100%;
}

.container{
    display: flex;
}

.content{
    width: 100%;
    color: var(--dark-gray);
    background-color: var(--lightest-gray);
    padding: .8rem 3rem 3rem;
    font-weight: 300;
    overflow: scroll;
}

.sidebar-list{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
}

.sidebar.open .sidebar-link{
    justify-content: flex-start;
}

.sidebar.open .sidebar-button{
    justify-content: flex-start;
}

.sidebar-icon {
    height: 24px;
    width: 24px;
    flex-shrink: 0;
}

.sidebar-list .hidden-sidebar{
    margin-left: 1.1rem;
    white-space: nowrap;
}

.sidebar-link{
    display: flex;
    width: 100%;
    padding: .5rem 0;
    color: var(--dark-gray);
    text-decoration: none;
    align-items: center;
    padding-left: 21px;
}

.sidebar-button{
    display: flex;
    width: 100%;
    padding: .5rem 0;
    color: var(--dark-gray);
    text-decoration: none;
    align-items: center;
    padding-left: 21px;
    border: none;
    background-color:inherit;
    font-size: 1em;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-button:hover {
    background-color: var(--lightest-gray);
}

.sidebar-button.active {
    background-color: var(--lightest-gray);
}

.sidebar-list-item {
    width: 100%;
    justify-content: center;
    position: relative;
}

.sidebar-list-item.active {
    background-color: var(--lightest-gray);
}

.sidebar-list-item:hover {
    background-color: var(--lightest-gray);
}

.sidebar-list-item.active::before {
    content: "";
    background-color: var(--accent-color);
    height: 100%;
    width: 4px;
    left: 0;
    position: absolute;
}

.sidebar.open{
    width: 180px;
}

.headline1 {
    font-weight: 400;
    font-size: .85rem;
    margin: .4rem 0 .2rem;
    color: var(--dark-gray);
}

.headline2{
    font-weight: 300;
    font-size: .75rem;
    color: var(--dark-gray);
}

.sidebar .top-sidebar{
    height: 30px;
    transition: height var(--xition-duration) var(--xition-timing-curve);
}

.sidebar.open .top-sidebar{
    height: 100px;
}

.sidebar .top-sidebar .hidden-sidebar{
    text-align: center;
    width: 100%;
}

.modal-link{
    color: black;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--medium-gray);
    cursor: pointer;
}

.modal-link fas{
    text-decoration: none;
}

.fas {
    color: var(--medium-gray);
}

.tabcontent{
    display: none;
}

.tabcontent.active{
    display: block;
}

/*modals*/
.modal{
    position:fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
    transition: 250ms ease-in-out;
    border: 0.5px solid var(--dark-gray);
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    width: 600px;
    max-width: 80%;
    max-height: 80%;
    overflow: scroll;
}

.modal.active{
    transform: translate(-50%,-50%) scale(1);
}

.modal-header{
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid var(--accent-color);
}

.modal-title{
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body{
    padding: 10px 15px;
    font-weight: 300;
}

.close-button{
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
}

#overlay{
    position:fixed;
    transition: 250ms ease-in-out;
    opacity: 0;
    top:0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.65);
    pointer-events: none;
}

#overlay.active{
    pointer-events: all;
    opacity: 1;
}

.nobullets {
    list-style-type: none;
}

@media only screen and (max-width: 600px) {
    .logo-tag {
      display: none;
    }

    .content{
        padding: .4rem 1rem;
    }
  }
  #calculateButton{
    margin-left: 10px;
  }

  #percentageResult{
    border: .5px dotted;
    margin-left: 14px;
    font-weight:bold;
    text-align: left;
  }
  /* hide increment in number type input fields */
  /* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}