/**
* General elements
*/

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font: 18px 'Roboto', serif;
    padding: 0;
    height: 100%;
}

h1 {
    font: normal 40px 'Roboto Slab', sans-serif;
    line-height: 1.2;
}

p {
    margin: 0 0 16px;
    line-height: 1.6;
}

a {
    color: #00a4e4;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #0f004e;
}



/**
* Header
*/

header {
    background: #0f004e;
    height: 72px;
}

#logo {
    position: absolute;
    top: 0;
    left: 24px;
    width: 140px;
    z-index: 10;
}

header nav {
    display: none;
}

header ul {
    margin: 0 0 0 190px;
    padding: 0;
    position: relative;
}

header li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 20px 0 0;
    line-height: 4;
}

header li:last-child {
    margin: 0;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

header a:hover {
    color: #fff;
    text-decoration: underline;
}

.fa {
    vertical-align: middle;
    color: #fff;
    font-size: 32px;
}

.fa.visible-xs {
    position: fixed;
    z-index: 10;
    top: 14px;
    right: 80px;
}

.fa-home.visible-xs {
    left: 24px;
    right: initial;
}

.hidden-xs {
    display: none;
}

.language {
    width: 26px;
    height: 26px;
    display: block;
    position: relative;
    border: 1px solid #fff;
    border-radius: 5px;
}

.en {
    background: url("../assets/en.png") no-repeat left top;
    background-size: contain;
}

.fr {
    background: url("../assets/fr.png") no-repeat left top;
    background-size: contain;
}

.lang-li {
    line-height: 4;
    position: absolute;
    top: 22px;
}

.lang-li:nth-child(6) {
    right: 10px;
}

.lang-li:nth-child(7) {
    right: 0;
}



/**
* Mobile menu
*/

#mobile-menu {
    height: 58px;
    background: #0f004e;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
}

#nav-container {
    position: fixed;
    height: 100vh;
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

#nav-container .bg {
    position: absolute;
    top: 58px;
    right: 0;
    width: 100%;
    height: calc(100% - 58px);
    visibility: hidden;
    transition: .3s;
    background: rgba(0,0,0,.6);
}

#nav-container:focus-within .bg {
    visibility: visible;
}

#nav-container * {
    visibility: visible;
}

.hamb {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    border-radius: 0;
    height: 30px;
    width: 30px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: .3s;
}

.icon-bar + .icon-bar {
    margin-top: 5px;
}

#nav-container:focus-within .hamb {
    pointer-events: none;
}

#nav-container:focus-within .icon-bar:nth-of-type(1) {
    transform: translate3d(0,8px,0) rotate(45deg);
}

#nav-container:focus-within .icon-bar:nth-of-type(2) {
    opacity: 0;
}

#nav-container:focus-within .icon-bar:nth-of-type(3) {
    transform: translate3d(0,-8px,0) rotate(-45deg);
}

#nav-container:focus-within #nav-content {
    transform: none;
}

#nav-content {
    margin-top: 58px;
    padding: 20px 40px;
    width: 82%;
    position: absolute;
    top: 0;
    right: 0;
    height: calc(100% - 70px);
    background: #fff;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transform: translateX(100%);
    transition: transform .3s;
    will-change: transform;
    contain: paint;
}

#nav-content ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
}

#nav-content li {
    list-style: none;
    border-bottom: 1px solid #f4f4f4;
}

#nav-content li a {
    padding: 15px 5px;
    display: block;
    text-transform: uppercase;
    transition: color .1s;
}

.language {
    width: 26px;
    height: 26px;
    display: block;
    position: relative;
    border: 1px solid #fff;
    border-radius: 5px;
}

.ro {
    background: url("../assets/ro.png") no-repeat left top;
    background-size: contain;
}

.en {
    background: url("../assets/en.png") no-repeat left top;
    background-size: contain;
}

.fr {
    background: url("../assets/fr.png") no-repeat left top;
    background-size: contain;
}

.lang-versions {
    padding: 15px 5px;
}

#nav-content .lang-versions a {
    display: inline-block;
    padding: 0;
    margin-right: 20px;
}



/**
* Page elements
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.no-padding {
    padding: 0;
}

.button {
    display: inline-block;
    padding: 16px 20px;
    font-size: 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    width: 88%;
    margin: 20px 0;
    color: #fff;
    background: #00a4e4;
    transition: background .3s ease;
}

.button:hover {
    text-decoration: none;
    background: #0485b8;
    color: #fff;
}



/**
* sections
*/

section {
    padding: 30px 0 50px;
}

#initiativa {
    background: #0f004e;
    color: #fff;
}

#initiativa .button {
    background: #fff;
    color: #000;
}

#initiativa .button:hover {
    background: #ddd;
}

.small-child-img {
    width: 100%;
}

.child-img {
    position: relative;
    top: -80%;
    bottom: -100px;
    width: 87%;
    display: none;
}

#legea .button {
    margin-top: 10px;
}

#legea .button:last-of-type {
    margin-top: 16px;
    background: #0f004e;
}

#legea .button:last-of-type:hover {
    background: #0b0039;
}

#comitetul {
    background: #00a4e4;
    color: #fff;
}

#voluntar  {
    overflow: hidden;
}

#voluntar .button {
    background: #0f004e;
}

#voluntar .button:hover {
    background: #0b0039;
}

.large-res {
    display: none;
}

.donatii {
    margin-top: 20px;
}

.donatii p {
    margin-bottom: 5px;
}

.donatii ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}


/**
* Footer
*/

footer {
    background: #0f004e;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: #fff;
    font-weight: 400;
}

footer small {
    font-size: 12px;
    display: block;
    margin-top: 30px;
}

.fa-home.hidden-xs {
    position: absolute;
    top: -14px;
    left: 24px;
}



/**
* Media queries
*/

@media (max-width: 370px) {

    #nav-content {
        padding: 20px;
    }

}

@media (min-width: 768px) {

    body {
        padding-top: 72px;
    }

    header {
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        right: 0;
    }

    header nav {
        display: block;
    }

    header li {
        margin: 0 45px 0 0;
    }

    .visible-xs {
        display: none;
    }

    .hidden-xs {
        display: block;
    }

    .fa-facebook-square {
        top: 20px;
        right: 20px;
    }

    #mobile-menu {
        display: none;
    }

    .button {
        display: inline-block;
        padding: 16px 20px;
        font-size: 20px;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        text-align: center;
        width: auto;
    }

    #legea .button {
        margin-top: 0;
        margin-right: 16px;
    }

    #legea .button:last-of-type {
        margin-top: 0;
    }

    .donatii {
        padding: 20px;
        background: #f4f4f4;
    }

    .donatii.lang {
        margin-top: 20px;
    }

}

@media (min-width: 1024px) {

    h1 {
        font-size: 62px;
    }

    .small-child-img {
        display: none;
    }

    .child-img {
        display: block;
        position: absolute;
        right: 0;
        bottom: 50px;
        top: initial;
        width: 350px;
    }

    .content-initiativa {
        width: 60%;
    }

    .explanation {
        margin-top: 45px;
        max-width: 420px;
    }

    .large-res {
        display: block;
    }

    .small-res {
        display: none;
    }

    .donatii {
        max-width: 420px;
    }

}

@media (min-width: 1200px) {

    section {
        padding: 50px 0 70px;
    }

    .child-img {
        right: -65px;
        bottom: -120px;
        width: 480px;
    }

    .explanation {
        max-width: 490px;
    }

    .donatii {
        max-width: 490px;
    }

}
