@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;400;600;700;800;900&display=swap');

:root {
    --success: #014921;
    --dark: #1a1e23;
    --shadow: 0 10px 25px rgba(0,0,0,.6);
}

html, * {
    scrollbar-width: thin;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    position: relative;
    background-image: url("../../img/background.jpg");
    background-repeat: repeat;
    background-size: 500px 300px;
    display: flex;
    flex-direction: column;
}

main {
    padding-top: 85px;
    flex: 1;
}

a {

}

h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

img {
    max-width: 100%;
}

p {
    font-size: 16px;
    line-height: 26px;
}

a {
    text-decoration: none;
    color: #1a1e23;
}
a:not(a.btn):not(a.main-btn):hover {
    color: var(--primary);
    opacity: .7;
}

navigate-js {
    height: 100vh;
}

.text-primary {
    color: var(--primary);
}
.josefin {
    font-family: 'Josefin Sans', sans-serif;
}
.fw-bold {
    font-weight: bold;
}
.text-uppercase {
    text-transform: uppercase;
}
.text-center {
    text-align: center;
}
.flex {
    display: flex;
}
.mt-0 {
    margin-top: 0;
}
.mb-0 {
    margin-bottom: 0;
}
.d-none {
    display: none;
}
.pointer {
    cursor: pointer;
}
.rotate-left {
    transform: rotate(270deg);
}
.rotate-right {
    transform: rotate(-270deg);
}
.no-scroll {
    overflow: hidden;
}
.image-and-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.image-and-text > * {
    width: 50%;
}
.image-and-text img {
    border: 5px solid var(--primary);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.image-and-text .text {
    padding: 1em;
}
.container {
    width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}
.rect-title {
    padding: 10px;
    background-color: var(--primary);
    color: #ffff;
    clip-path: polygon(0 0, 91% 0, 24% 84vh, 0 100%);
}
.mt-1em {
    margin-top: 1em;
}
.mt-2em {
    margin-top: 2em;
}

.height-section {
    margin-top: 10em;
}
.height-section:last-of-type {
    margin-bottom: 10em;
}
a.go-back-btn {
    width: fit-content;
     display: block;
    padding: 7px 20px;
    border: 2px solid var(--primary);
    border-radius: 11px;
    font-family: 'Josefin sans', sans serif;
    opacity: .8;
    transition: all .3s ease-in-out;
}
a.go-back-btn:hover {
    background-color: var(--primary);
    color: white !important;
    opacity: 1 !important;
    border-color: var(--primary);
}
a.go-back-btn i {
    margin-right: 5px;
}

article {
    padding: 1em 0;
}

article h3 {
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Josefin Sans', sans-serif;
    color: var(--primary);
}
article h3:nth-of-type(2) {
    margin-top: 2em;
}

header {
    width: 100%;
    height: 85px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    padding-left: 1em;
    border-bottom: 2px solid #d0d0d0;
    z-index: 5;
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
}

header #echoes-logo {
    width: 150px;
    padding-right: 1em;
}

header .header-btn, header .toggle-menu, header #echoes-logo {
    cursor: pointer;
}

header .toggle-menu {
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    display: flex;
    height: 100%;
    align-items: center;
    padding: 0 8px;
}

.header-btn {
    color: var(--primary);
    font-size: 20px;
    text-transform: uppercase;
    padding: 0 1em;
    border-right: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    height: 100%;
    background-color: white;
}
.header-btn:hover {
    background-color: var(--primary);
    color: #fff;
}
.header-btn i {
    padding-bottom: 5px;
    padding-right: 8px;
    font-size: 30px;
}
#podcast-wrapper i {
    font-size: 30px;
    padding-bottom: 13px;
}

.header-buttons {
    margin-left: auto;
    display: flex;
    height: 100%;
    margin-right: 1em;
}
.header-btn.donate-wrapper {
    border-left: 1px solid #d0d0d0;
}

.header-player {
    display: flex;
    margin-left: auto;
    margin-right: 2em;
    position: relative;
}

#menu {
    position: absolute;
    width: 100%;
    top: -450px;
    z-index: 4;
    transition: .5s cubic-bezier(.74,.08,.51,.95);
    overflow-y: auto;
    max-height: calc(100vh - 87px);
    max-height: -webkit-fill-available;
    max-height: -moz-available;
}
#menu.active {
    top: 87px;
}

#menu-top {
    display: flex;
    background-color: #fff;
}
#menu-top nav {
    width: 80%;
    display: flex;
    padding: 1.5em 0 1.5em 3em;
}
#menu-top nav .menu-list-wrapper {
    width: 100%;
    display: flex;
}
#menu-top nav .menu-list {
    display: flex;
    flex-direction: column;
    width: 20%;
    font-size: 17px;
}
#menu-top nav > .menu-list:nth-of-type(1) {
    display: none;
}
#menu-top nav .menu-list .nav-links {
    display: flex;
    flex-direction: column;
}
#menu-top nav .menu-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

#menu-top nav a {
    margin-bottom: 10px;
}

#menu-top aside {
    width: 20%;
    display: flex;
    flex-direction: column;
    padding: 1em 2em;
}
#menu-top aside .btn {
    margin: 5px 0;
}

footer {
    background-color: #1d1e1e;
    color: white;
}

footer section.double {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 2em 0;
}

footer section.double .footer-left, footer section.double .footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
footer section.double .footer-left {
    width: 300px;
}
footer section.double .footer-right {
    align-items: initial;
}

footer p {
    margin: 0;
}

footer .credits {
    background-color: #323232;
    text-align: center;
    display: block;
    margin-top: 2em;
    font-size: 12px;
    padding: 1em 0;
}
footer .credits a {
    color: white;
}
footer .credits a:hover {
    color: var(--primary);
    opacity: 1;
}
.footer-buttons {
    display: flex;
}
.footer-buttons > * {
    margin-right: 10px;
}

.social-icons {
    padding: 1em 0;
    display: flex;
}
.social-icons a:hover {
    opacity: 1;
}
.social-icons i {
    display: block;
    font-size: 1.8em;
    margin: 0 5px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #fff;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 3px 10px rgba(0,0,0,.25);
}
.social-icons.icon-circle i {
    border-radius: 50%;
}
.social-icons.icon-rotate i:hover, .social-icons.icon-rotate i:active {
    -webkit-transform: scale(1.1) rotate(360deg);
    -moz-transform: scale(1.1) rotate(360deg);
    -ms-transform: scale(1.1) rotate(360deg);
    -o-transform: scale(1.1) rotate(360deg);
    transform: scale(1.1) rotate(360deg);
    opacity: 1;
}
.social-icons .facebook { background-color:#3C599F; }
.social-icons .instagram {
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.social-icons .linkedin { background-color:#0085AE; }
.social-icons .gmail { background-color: var(--primary) }

.btn {
    font-family: 'Josefin Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 2px solid var(--primary);
    padding: .375rem .75rem;
    font-size: .9rem;
    border-radius: .25rem;
    transition: .15s ease-in-out all;
    text-transform: uppercase;
}

.main-btn {
    display: block;
    padding: 12px 28px;
    color: white;
    background-color: var(--primary);
    width: fit-content;
    font-weight: 800;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    font-size: 23px;
    border: 2px solid var(--primary);
    transition: .2s ease-in-out;
    cursor: pointer;
}
.main-btn:hover {
    color: var(--primary);
    background-color: transparent;
    opacity: 1;
}

.btn i {
    font-size: 25px;
    padding-right: 10px;
}
.btn i.icon-radio {
    padding-bottom: 5px;
}

.btn-rect {
    border-radius: 0;
}

.btn-black {
    border: 2px solid #212529;
    color: #212529;
}
.btn-black:hover {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: rgba(0,0,0,0.5);
    transition: .5s ease-in-out all;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.layout-modal, .gallery-modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Noir avec opacité */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: .5s ease-in-out all;
}

.layout-modal.active, .gallery-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: #fefefe;
    padding: 10px;
    /*border: 1px solid #888;*/
    width: 80%;
    border-radius: 1em;
    scrollbar-width: thin;
    margin: 3em auto;
    transition: .5s ease-in-out all;
    transform: scale(0);
}
.modal-content.active {
    transform: scale(1);
}

.close-layout-modal {
    color: #aaa;
    font-size: 41px;
    font-weight: bold;
    transition: .2s ease-in-out;
    width: fit-content;
    margin-left: auto;
    margin-top: -11px;
    padding-right: 5px;
    display: block;
}
.close-layout-modal:hover, .close-gallery-modal:hover,
.close-layout-modal:focus  .close-gallery-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*.mobile-header-btn {*/
/*    display: none;*/
/*    transition: transform 0.3s ease-in-out;*/
/*}*/

@keyframes slideDownAndUp {
    0%, 20%, 100% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(8px);
    }
}

.go-back-mobile-nav {
    display: none;
}

.hero-banner {
    width: 100%;
    /*height: 450px;*/
    height: calc(100vh - 85px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-banner.got-title:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-banner h1 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 60px;
    margin-bottom: 0;
    letter-spacing: 7px;
    /*text-shadow: 0 1px 0 #da996c, 0 2px 0 #ce895d, 0 3px 0 #dc874c, 0 4px 0 #d57038, 0 5px 0 #cf8383, 0 6px 0 #cd7c7c, 0 7px 0 #ca7474, 0 8px 0 #c76d6d, 0 0 5px rgba(230, 139, 139, 0.05), 0 -1px 1px rgba(236, 123, 44, 0.5), 0 9px 2px rgba(232, 77, 12, 0.3), 0 12px 3px rgba(232, 77, 12, 0.5), 0 15px 5px rgba(232, 77, 12, 0.5);*/
    /*text-shadow: 2px -1px 0 #ffb87b, 2px -2px 0 #ffa259, 2px -3px 0 #ff8c24, 2px -4px 0 #ff7300;*/
}

article p {
    text-align: justify;
    font-size: 17px;
}

.reveal-type {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
.reveal-type.active {
    transform: translateY(0);
    opacity: 1;
}

#radiobox, #team {
    padding: 2em 2em 3em 2em;
}
#radiobox .hero-banner {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*margin-top: -9em;*/
}

/** FORM **/
input[type="text"], input[type="email"] {
    font-weight: bold;
}
input[type="text"]::placeholder, input[type="email"]::placeholder {
    font-weight: initial;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 1em;
    margin: .5em 0;
    border: 2px solid var(--color-light);
    background-color: var(--color-light);
    color: #000219;
    font-size: 1.2em;
    transition: .2s ease-in-out;
}

.insight-icon img {
    width: 70%;
}

form .main-btn:hover, form .main-btn:focus {
    outline: none;
    border-color: white;
    color: white;
    background-color: var(--primary);
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    border: 2px solid var(--primary);
}

#newsletter-modal-card {
    width: 330px;
    height: 270px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px -10px rgba(0, 64, 128, 0.2);
    padding: 30px;
}
.newsletter-wrapper {
    position: absolute;
    top: 13px;
    left: 13px;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 2em;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
    width: 300px;
    height: 240px;
}
.newsletter-title {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-weight: bold;
    font-size: 25px;
    color: var(--primary);
}
#newsletter-form input {
    width: 100%;
    margin: 0.4em auto;
    text-align: center;
    padding: 12px 0 !important;
}
#newsletter-form input[type="email"] {
    border: 1px solid #dedede;
    background-color: transparent;
    font-size: 16px;
}
#newsletter-modal form .main-btn:hover,
#newsletter-modal form .main-btn:focus {
    color: var(--primary);
    border: 2px solid var(--primary);
    background-color: transparent;
    opacity: 1;
}
.rainbow {
    width: 108%;
    height: 108%;
    -webkit-animation: o-rotate-360 linear 8s infinite;
    animation: o-rotate-360 linear 8s infinite;
}
.rainbow span {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    transform: translate(-50%, -50%);
}
.rainbow span:after {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 100%;
}
.rainbow span:first-child { background: #2cd2b6; }
.rainbow span:first-child:after { background: var(--primary); }
.rainbow span:last-child { background: #FEA525; }
.rainbow span:last-child:after { background: #e85f99; }
@-webkit-keyframes o-rotate-360 {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

@keyframes o-rotate-360 {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.making-waves-link {
    color: var(--primary);
    text-decoration: underline;
    text-align: center;
    font-style: italic;
    padding: 1em 0;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

@media screen and (max-width: 1100px) {
    .container {
        width: 900px;
    }
}

@media screen and (max-width: 1024px) {

    #radiobox, #contact, #rent, #organize, #partners {
        padding-top: 1em;
    }

    .container {
        width: 90%;
    }

    #radiobox .hero-banner {
        background-image: unset !important;
        height: unset;
    }
    #radiobox .hero-banner img {
        display: block;
    }

    .mobile-header-btn {
        display: flex;
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        z-index: 3;
    }

    .header-btn {
        padding: 0 10px;
        border-bottom: 1px solid #d0d0d0;
    }

    #album-art {
        width: 60px !important;
        height: 60px !important;
    }

    #album-art.bounce-animation {
        animation: slideDownAndUp 10s ease-in-out infinite;
    }

    #player-track {
        top: -150px !important;
    }
    #player-track.active {
        top: 139px !important;
    }

    #menu-top {
        flex-wrap: wrap;
    }
    #menu-top nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1em;
    }
    #menu-top aside {
        flex-direction: unset;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }
    #menu-top aside .btn {
        width: 48%;
        margin: 0.4em;
    }
    #menu-top nav .menu-list {
        width: 18%;
        padding: 0 5px;
    }

    .hero-banner h1 {
        text-align: center;
        font-size: 50px;
    }

    .image-and-text {
        flex-wrap: wrap;
    }
    .image-and-text > * {
        width: 100%;
    }
    .image-and-text .text {
        padding: 1em 0;
    }

    input[type="text"], input[type="email"], textarea {
        padding: .5em 1em;
    }
    .footer-right {
        margin-top: 2em;
    }
    .rect-title {
        clip-path: unset;
    }
}

@media screen and (max-width: 600px) {

    h1 {
        font-size: 27px;
    }
    .main-btn {
        font-size: 18px;
    }
    /*#memory, #radiobox {*/
    /*    padding-top: unset;*/
    /*}*/
    header {
        padding-left: 0;
    }
    header #echoes-logo {
        display: none;
    }
    header .toggle-menu {
        border-left: unset;
    }
    #menu {
        top: -661px;
    }
    #menu-top nav {
        padding: 0;
        position: relative;
        overflow: hidden;
    }
    #menu-top nav > .menu-list:nth-of-type(1) {
        display: block;
        width: 100%;
        text-align: center;
        /*padding-bottom: 10px;*/
    }
    #menu-top nav > .menu-list:nth-of-type(1) img {
        width: 39%;
    }
    #menu-top nav > .menu-list:nth-of-type(1) a {
        border-bottom: unset;
    }
    #menu-top nav .menu-list {
        padding: 5px 0;
        width: 100%;
        border-bottom: 1px solid #d0d0d0;
    }
    #menu-top nav .menu-title {
        width: 100%;
        padding: 8px 8px 8px 1em;
        position: relative;
        transition: .3s cubic-bezier(.74,.08,.51,.95);
        left: 0;
    }
    #menu-top nav .menu-title.inactive {
        left: -100vw;
    }
    #menu-top nav .menu-list .nav-links {
        position: absolute;
        background-color: #fff;
        width: 100%;
        left: 100vw;
        top: 0;
        height: 100%;
        transition: .3s cubic-bezier(.74,.08,.51,.95);
    }
    #menu-top nav .menu-list .nav-links.active {
        left: 0;
    }
    #menu-top nav a {
        border-bottom: 1px solid #d0d0d0;
        padding: 0.8em;
        margin-bottom: 0;
    }
    #menu-top aside .btn {
        width: 100%;
        margin: 0.4em;
    }

    .footer-buttons {
        flex-direction: column;
    }
    .footer-buttons > * {
        width: 100%;
        padding: 12px 0;
        margin-right: 0;
        text-align: center;
    }

    .control {
        width: 20%;
        margin: 0 3px;
    }
    .button {
        width: 20px;
        height: 20px;
        padding: 12px 12px 18px 12px;
    }
    .header-buttons {
        margin: 0;
        width: 100%;
    }
    .header-player {
        margin-left: 1em;
    }
    .header-btn {
        font-size: 17px;
        width: 50%;
        padding: 0 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .header-btn i {
        font-size: 30px;
    }

    .go-back-mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: 'Josefin Sans', sans-serif;
        font-weight: 800;
        font-size: 18px;
        border-bottom: 1px solid #d0d0d0;
        text-transform: uppercase;
        color: var(--primary);
    }
    .go-back-mobile-nav span {
        width: 50%;
        padding: 0.8em;
        border-right: 1px solid #d0d0d0;
    }
    .go-back-mobile-nav span:last-of-type {
        text-align: end;
        font-size: 15px;
        font-style: italic;
        color: black;
        text-transform: initial;
        font-family: 'Nunito', sans-serif;
    }
    .go-back-mobile-nav i {
        padding-right: 10px;
    }
    #menu-top nav .menu-list-wrapper {
        display: block;
        position: relative;
        width: 100%;
    }
    .ariane {
        margin-left: auto;
    }

    #player-track.active {
        top: 149px !important;
        left: unset;
        right: 9px;
    }

    .hero-banner {
        height: 250px;
    }
    .article-svg-animated section {
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }

    .social-icons {
        margin-top: 1em;
    }
    .social-icons i {
        font-size: 1.3em;
        width: 42px;
        height: 42px;
        line-height: 43px;
    }

    #radiobox, #team {
        padding-left: 0;
        padding-right: 0;
    }
    #newsletter-modal-card {
        width: 300px;
    }
    .newsletter-wrapper {
        width: 270px;
    }
}


/* ======= Toast message ======== */
#toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.toast {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 2px;
    padding: 20px 0;
    min-width: 400px;
    max-width: 450px;
    border-left: 4px solid;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: all linear 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 32px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.toast--success {
    border-color: #47d864;
}

.toast--success .toast__icon {
    color: #47d864;
}

.toast--info {
    border-color: #2f86eb;
}

.toast--info .toast__icon {
    color: #2f86eb;
}

.toast--warning {
    border-color: #ffc021;
}

.toast--warning .toast__icon {
    color: #ffc021;
}

.toast--error {
    border-color: #ff623d;
}

.toast--error .toast__icon {
    color: #ff623d;
}

.toast + .toast {
    margin-top: 24px;
}

.toast__icon {
    font-size: 24px;
}

.toast__icon,
.toast__close {
    padding: 0 16px;
}

.toast__body {
    flex-grow: 1;
}

.toast__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.toast__msg {
    font-size: 14px;
    color: #888;
    margin-top: 6px;
    line-height: 1.5;
    padding-right: 1em;
}

.toast__close {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
