a{
    z-index: 1;
    position: relative;
}

header{
    padding-right: 1.5rem;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.logotype{
    position: relative;
    z-index: 2;
    margin: 20px;
    display: block;
    color: black;
    width: 120px;
    height: 68px;
}

header nav{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: #002636; /* Aimo-Mother-Petroleum */
    text-align: left;
    width: 100%;
    padding: 128px 0 40px;
    align-self: baseline;
    text-indent: 20px;
    z-index: 2;
}

.error{
    color: #c71212;
}

nav.active{
    display: block;
}

nav.active ~ .logotype{
    color: #00A846; /* Aimo--Mother-green (digital) */
}

nav.active ~ #nav-button > span {
    background: white;
}

nav.active ~ #nav-button > span:first-child {
    transform: rotate(-45deg);
}

nav.active ~ #nav-button > span:nth-child(2){
    opacity: 0;
}

nav.active ~ #nav-button > span:last-child {
    transform: rotate(45deg);
}

.container{
    min-height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

header nav li{
    margin-bottom: 20px;
}

header nav a {
    font-family: "AimoSansBold", serif;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-size: 28px;
    line-height: 52px;
    letter-spacing: -1.12px;
    width: 100%;
    z-index: 0;
    cursor: pointer;
}

header a.link-active{
    border-bottom: 3px solid white;
}

header a:visited{
    color: white;
}

header a:active{
    color: white;
}

header nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

header #nav-button{
    width: 10vw;
    max-width: 50px;
    height: 10vw;
    max-height: 50px;
    cursor: pointer;
    border: 0;
    background: transparent;
    flex-direction: column;
    margin: 0;
    padding: 0;
    display: flex;
    transform: translateY(-5%);
    z-index: 2;
}

header #nav-button > span{
    height: 4px;
    width: 100%;
    transform-origin: 50%;
    background-color: black;
    border-radius: 2px;
    transition: transform .15s ease-out,opacity .1s ease-out,background-color .1s linear;
    display: block;
    position: absolute;
    top: 49%;
    left: 0;
}

header #nav-button span:first-child{
    transform: translateY(-10px);
}

header #nav-button span:last-child{
    transform: translateY(10px);
}

.mt-40{
    margin-top: 40px;
}

.text-center{
    text-align: center;
}

.hero{
    text-align: center;
    padding: 0 20px 20px;
    font-size: 20px;
    background: #D6DFE3; /* Aimo-Mother-Concrete */
}

.hero label{
    display: block;
}

#please-select-country{
    padding: 20px 0 10px;
}

#country-selector{
    margin-top: 20px;
    height: 60px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#country-list li > div:first-child,
#country-display > div > div:first-child{
    border-radius: 50%;
    width: 24px;
    height: 24px;
    overflow: hidden;
    margin-right: 10px;
}

#country-list li > div:first-child img,
#country-display > div > div:first-child img{
    transform: translateX(-5px);
}

#dropdown-arrow {
    pointer-events: none;
    margin-left: -44px;
    z-index: 1;
    align-self: center;
}

#country-selector.active > #dropdown-arrow{
    transform: rotate(180deg);
}

#country-selector.active > #country-display{
    display: none;
}

#country-selector.active > #country-list{
    display: block;
}


#country-list, #country-display{
    position: relative;
    list-style: none;
    font-weight: 400;
    border: 1px solid #6D8085; /* Aimo-Mother-Concrete-200 */
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 20px;
    appearance: none;
    border-radius: 8px;
    background: white;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

#country-list, .d-none{
    display: none;
}

#country-list li,
#country-display > div{
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    color: black;
    text-decoration: none;
    text-align: left;
    padding-left: 22px;
    border-top: 1px solid gray;
}

#country-list li:hover,
#country-list li:active{
    background: #ecebe9;
}

#country-list li.selected{
    font-weight: bold;
    background: #e7f5e5;
}

ul#country-list li:first-child,
#country-display > div:first-child{
    border-top: none;
}

#country-selector.active > #country-list{
    height: auto;
}

.hero > .content-wrapper{
    text-align: center;
}

footer{
    height: 100px;
    width: 100%;
    background: #002636; /*Aimo-Mother-Petroleum*/
    margin-top: auto;
}

@media screen and (min-width: 500px){
    #country-list, #country-display{
        max-width: 16em;
    }
}

@media screen and (min-width: 1024px){
    header{
        justify-content: space-between;
        align-items: center;
        padding-right: 1em;
    }
    .logotype{
        color: black !important;
        height: 48px;
        width: 83px;
    }
    header nav{
        display: block;
        position: static;
        width: auto;
        background: none;
        padding: 0;
        align-self: center;
    }
    header nav ul{
        display: flex;
        align-items: center;
    }

    header nav li{
        margin-bottom: 0;
        text-indent: 0;
    }

    header nav a {
        font-size: 16px;
        line-height: 20px;
        color: black;
        text-decoration: none;
        padding: 0 0 8px;
    }

    header a.link-active{
        border-bottom: 2px solid black;
    }

    header nav a:visited,
    header nav a:active{
        color: black;
    }

    header .separator{
        margin: 0 14px;
    }
    header .separator div{
        display: block;
        width: 3px;
        height: 5px;
        transform: rotate(45deg);
        background-color: #6D8085; /* Aimo-Mother-Concrete-200 */
    }

    header > #nav-button {
        display: none;
    }
}

@media screen and (min-width: 1920px){
    header{
        margin: 0 auto;
        width: 1120px;
    }
}
