@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;700&display=swap');

:root {
    --clr-primary: #0700D0;
    --clr-white: #f5f5f5;
    --clr-black: #111;

    --yellow: #feb60a;
	--red: #ff0062;
	--blue: #00dbf9;
	--violet: #da00f7;
}

* {
    line-height: 1.5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Rubik', Helvetica, sans-serif;
}

html, body, main {
    font-family: 'Rubik', Helvetica, sans-serif;
    background-color: #111;
    width: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

/* MENU */
nav {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10;
    clip-path: circle(25px at calc(100% - 45px) 45px);
    -webkit-clip-path: circle(25px at calc(100% - 45px) 45px);
    transition: all 500ms ease-in-out;
    -webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
}

nav.active {
    clip-path: circle(75%);
    -webkit-clip-path: circle(75%);
}

nav.active .links, nav.active .nav-footer {
    display: block;
}

nav .hamburger-btn {
    position: absolute;
    top:20px;
    right: 20px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
}

nav .hamburger-btn span {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    width: 50%;
    height: 2px;
    background-color: #f5f5f5;
    transition: all 200ms ease-in-out;
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
}

nav .hamburger-btn:hover {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

nav .hamburger-btn span:nth-child(1) {
    top: 30%;
}
nav .hamburger-btn span:nth-child(2) {
    top: 50%;
}
nav .hamburger-btn span:nth-child(3) {
    top: 70%;
}

nav.active .hamburger-btn span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -moz-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    -o-transform: translate(-50%, -50%) rotate(45deg);
}
nav.active .hamburger-btn span:nth-child(2) {
    display: none;
}
nav.active .hamburger-btn span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    -moz-transform: translate(-50%, -50%) rotate(-45deg);
    -ms-transform: translate(-50%, -50%) rotate(-45deg);
    -o-transform: translate(-50%, -50%) rotate(-45deg);
}

nav .links {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    text-align: center;
}

nav .links a {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    font-size: 1.4em;
    font-weight: 700;
    text-decoration: none;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 5px;
}

nav .links a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0%;
    background: blue;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
}

nav .links a:hover:after {
    width: 100%;
}

nav .nav-footer {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translate(-50%, -50%);
}

.header-logo {
    z-index: 2;
    position: fixed;
    top: 20px;
    left: 20px;
}

.header-logo a img {
    cursor: pointer;
    height: 160px;
    box-shadow: 0 5px 4px rgba(0,0,0,.5);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transition: all 200ms ease-in-out;
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    border: 2px solid white;
}

.header-logo a img:hover {
    transform: translate(0, -10px);
    -webkit-transform: translate(0, -10px);
    -moz-transform: translate(0, -10px);
    -ms-transform: translate(0, -10px);
    -o-transform: translate(0, -10px);
}

/* GENERAL */
.page-title {
    font-size: 1.5em;
    text-align: center;
    color: white;
    margin: 2em;
    text-transform: uppercase;
}

.page-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.page-selector a {
    border: none;
    color: white;
    padding: 8px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 1.3em;
    margin: 4px 10px;
    cursor: pointer;
    background-color: #111;
    border: 2px solid #f5f5f5;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    transition: 200ms;
    -webkit-transition: 200ms;
    -moz-transition: 200ms;
    -ms-transition: 200ms;
    -o-transition: 200ms;
}

.page-selector a:hover {
  box-shadow: 0 0.5em 0.5em -0.4em white;
  transform: translateY(-0.25em);
  outline: none;
  -webkit-transform: translateY(-0.25em);
  -moz-transform: translateY(-0.25em);
  -ms-transform: translateY(-0.25em);
  -o-transform: translateY(-0.25em);
}

.page-selector .active {
    box-shadow: 0 0.5em 0.5em -0.4em white;
    background-color: #f5f5f5;
    color: black;
    font-weight: bold;
    animation: fadein 1s;
    -webkit-animation: fadein 1s;
    transform: translateY(-0.25em);
    -webkit-transform: translateY(-0.25em);
    -moz-transform: translateY(-0.25em);
    -ms-transform: translateY(-0.25em);
    -o-transform: translateY(-0.25em);
}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

@-webkit-keyframes fadein { /* sur Safari et Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

.data {
    text-align: center;
    font-size: 1.1em;
    margin: 30px;
    color: #ffffff;
}

.overlay {
    z-index: 3;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}
.overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}
.popup button {
    background: none;
    outline: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.popup button:hover {
    cursor: pointer;
    color: #06D85F;
}
.popup .content {
    max-height: 30%;
    overflow: auto;
}

/* SOCIALS */
.social {
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    font-size: 2em;
    box-shadow: 0 5px 4px rgba(0,0,0,.5);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
}

.social:hover {
    cursor: pointer;
    color: white;
    transform: translate(0, -10px);
    -webkit-transform: translate(0, -10px);
    -moz-transform: translate(0, -10px);
    -ms-transform: translate(0, -10px);
    -o-transform: translate(0, -10px);
}

.social.insta:hover {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

/* LOADER */
.loaded .loading {
    display: none;
}

.loading {
    z-index: 15;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.loader {
    width: 10em;
    height: 10em;
    font-size: 25px;
    box-sizing: border-box;
    border-top: 0.3em solid #feb60a;
    border-radius: 50%;
    position: relative;
    animation: rotating 2s ease-in-out infinite;
    --direction: 1;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    box-sizing: border-box;
    top: -0.2em;
}

.loader::before {
    border-top: 0.3em solid #00dbf9;
    transform: rotate(120deg);
}

.loader::after {
    border-top: 0.3em solid #da00f7;
    transform: rotate(240deg);
}

.loader span {
    position: absolute;
    color: white;
    width: inherit;
    height: inherit;
    text-align: center;
    line-height: 10em;
    animation: rotating 2s linear infinite;
    --direction: -1;
}

@keyframes rotating {
    50% {
        transform: rotate(calc(180deg * var(--direction)));
    }

    100% {
        transform: rotate(calc(360deg * var(--direction)));
    }
}

footer {
    margin-top: 20px;
    clear: both;
    position: relative;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background-color: #f5f5f5;
    color: #111;
}

footer div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer a {
    color: black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 1024px) {
    nav .nav-footer {
        bottom: 0;
    }

    .page-title {
        font-size: .9em;
        text-align: left;
    }

    .header-logo {
        display: none;
    }

    .page-selector a {
        margin: 4px 2px;
    }

    .popup {
        width: 90%;
    }

    footer {
        padding-bottom: 30px;
    }
}