/* fonts */

@font-face {
    font-family: "Alagard";
    src: url('/fonts/alagard.ttf');
}

* {
    margin: 0;
    padding: 0;
    /*position: relative;*/
    user-select: none;
}

body {
    background-color: #ebeef0;
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    color: #333;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

h1 {
    width: 100%;
    color: white;
    font-weight: 500;
    font-size: 26px;
    margin-bottom: 30px;
}

h1 i {
    margin-right: 15px;
}

h2 {
    color: #339af0;
    margin-top: 50px;
    margin-bottom: 20px;
}

nav#navigation {
    padding: 0;
    width: 250px;
    height: 100%;
    background-color: #202225; /*#121212; /*#202428;*/
    position: fixed;
    padding-top: 30px;
    z-index: 20;
    transition: 300ms;
}

nav.hidden {
    display: block !important;
    transform: translateX(-300px);
}

nav strong {
    color: #61727f;
    margin-left: -10px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 30px;
}

nav strong i {
    /*color: #339af0;*/
}

nav i {
    margin: 0 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

nav ul i {
    position: absolute;
    left: 5px;
    top: 13px;
}

nav ul li {
    color: #61727f;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
    cursor: pointer;
    transition: 200ms;
    border-left: 3px solid transparent;
    padding-left: 45px;
    position: relative;
    font-size: 14px;
}

nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

nav ul li.disabled {
    cursor: default;
}

nav ul li.disabled:hover {
    background-color: inherit;
    color: #61727f;
}

nav img {
    width: 80px;
    display: block;
    margin: 20px auto;
}

ul {
    list-style-type: none;
}

nav .active {
    border-left: 3px solid #339af0;
    color: white;
}

/* Main content */

main {
    width: 100%;
    height: 100%;
}

main > div {
    height: 100%;
}

main > header {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'Roboto';
    font-weight: 500;
    background-color: #339af0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    padding-left: 274px;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

main > header a {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Roboto';
    text-decoration: none;
    transition: 200ms;
    cursor: pointer;
}

main > header a:hover {
    color: rgba(255, 255, 255, 1);
}

main > header #notifications {
    font-size: 20px;
    margin: 0 20px;
    transition: 200ms;
}

main > header #notifications:hover {
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
}

main > header .left i {
    margin: 0 10px;
    font-size: 10px;
    position: relative;
    bottom: 1px;
}

main > header div.right,
main > header div.left {
    display: flex;
    align-items: center;
}

main > section {
    position: relative;
}

main > section header {
    height: 100px;
    background-color: #339af0;
    padding-top: 70px;
}

main > section header .content {
    width: 100%;
    margin: auto;
    padding: 0 24px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Roboto';
    font-weight: 500;
    line-height: 24px;
    padding-left: 274px;
    position: relative;
}

/* Gestion des onglets */
main > section header .content .tabs {
    display: flex;
    align-items: center;
    font-size: 14px;
    position: relative;
    left: -13px;
}

main > section header .content .tabs li {
    padding: 10px 16px;
    transition: 200ms;
    position: relative;
}

main > section header .content .tabs li.active {
    color: rgba(255, 255, 255, 1);
}

/*main > section header .content .tabs li.active:after {
    content: '';
    position: absolute;
    width: 80%;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -6px;
    height: 3px;
    border-top: 4px solid #ebeef0;
    border-radius: 20px;
}*/

main > section header .content .tabs li:first-child {}

main > section header .content .tabs li:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 1);
}

main > section header .content .line {
    position: absolute;
    width: 0px;
    left: 275px;
    margin: auto;
    bottom: -6px;
    height: 3px;
    border-top: 4px solid #ebeef0;
    border-radius: 20px;
    transition: 300ms;
}

main > section .tab {
    padding-left: 274px;
    animation-duration: .4s;
    animation-name: display;
}

/* Display Animation */
@keyframes display {
    from {
        transform: translateY(5px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#projects {
    position: relative;
}

#projects > header > div.content {
    padding-left: 36px;
}

#projects h1 {
    font-size: 30px;
}

#projects header {
    height: 300px;
}

#projects header .content {
    width: 1000px;
}

#projects #projects-list {
    width: 1000px;
    margin: auto;
    padding: 0 24px;
    position: relative;
    bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    /*padding-left: 262px;*/
}

#projects #new-project {
    color: #339af0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#projects #new-project p {
    font-family: 'Roboto';
    font-size: 14px;
    font-weight: 500;
    line-height: 40px;
}

#projects #new-project i {
    font-size: 37px;
}

#projects #projects-list .project {
    width: 300px;
    height: 150px;
    margin: 0 12px 24px;
    font-size: 16px;
    padding: 20px;
    background-color: #fff;
    transition: 300ms;
    cursor: pointer;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    /*box-shadow: 0px 0px 20px rgba(0,0,0,0.25);*/
}

#projects #projects-list .project:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
}

#projects #projects-list .project h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

#projects #projects-list .project .link {
    display: flex;
    justify-content: space-between;
}

#projects #projects-list .project .link i {
    margin-left: 15px;
    color: rgba(51, 154, 240, 0.7);
    font-size: 13px;
}

#projects #projects-list .project .url {
    color: rgba(0, 0, 0, 0.38);
    font-size: 14px;
}

/* Déconnexion */
#logout {
    font-size: 12px;
    margin-left: 7px;
    transition: 200ms;
    position: relative;
    top: 1px;
}

#logout:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 1);
}

/* Buttons */

main button {
    /*border: 2px solid transparent;
    background-color: #339af0;
    padding: 5px 20px;
    color: #fff;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 200ms;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 10px;*/
}

main button:hover {
    background-color: #1083e1;
}

main button i {
    margin: 0;
    margin-right: 5px;
}

#save {
    position: absolute;
    z-index: 15;
    bottom: 0px;
    left: 20px;
    background: url('../images/success.png') no-repeat 15px;
    background-size: 10%;
    background-color: white;
    border-left: 4px solid #7dd320;
    padding: 15px 40px 15px 60px;
    color: rgba(0, 0, 0, 0.8);
    box-shadow: 1px 3px 9px 0px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 1px 3px 9px 0px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 800ms;
}

@keyframes move {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(-20px);
    }

    80% {
        opacity: 1;
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

#save.active {
    animation: move 4000ms;
}

#save p:first-child {
    font-weight: bold;
    color: #333;
}

.hidden {
    display: none !important;
}

/* Loading projects */
.loading {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    transform: translateY(-150%);
    height: 25px;
    width: 10px;
    border-radius: 10%;
    background: rgba(255, 255, 255, 0.7);
    /*border-top-color: rgba(41, 128, 185, 1);*/
    animation: fade2 1s infinite;
    transition: background .2s;
}

.loading:after,
.loading:before {
    content: '';
    position: absolute;
    display: block;
    height: 20px;
    width: 10px;
    background: rgba(255, 255, 255, 0.7);
    top: 50%;
    transform: translateY(-50%);
    left: -15px;
    border-radius: 10%;
    animation: fade1 1s infinite;
    transition: background .2s;
}

.loading:before {
    left: 15px;
    animation: fade3 1s infinite;
}

@keyframes fade1 {
    0% {
        background: rgba(255, 255, 255, 1);
    }
}

@keyframes fade2 {
    33% {
        background: rgba(255, 255, 255, 1);
    }
}

@keyframes fade3 {
    66% {
        background: rgba(255, 255, 255, 1);
    }
}

/* Loading new project */
.loadingNewProject {
    animation-duration: 0.75s;
    animation-iteration-count: infinite;
    animation-name: rotate-forever;
    animation-timing-function: linear;
    height: 30px;
    width: 30px;
    border: 8px solid #339af0;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 40;
}

@keyframes rotate-forever {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* The Modal (background) */
.modal {
    position: fixed;
    display: block;
    z-index: 30;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #fafafa;
    margin: auto;
    padding: 24px;
    box-sizing: border-box;
    overflow: auto;
    /*border: 1px solid #888;*/
    border-radius: 12px;
    width: 520px;
    height: 500px;
    /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);*/
    box-shadow: 0 2px 3px 0 rgba(60, 64, 67, .3), 0 6px 10px 4px rgba(60, 64, 67, .15);
    animation-duration: 0.4s;
    animation-name: modal;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 17px;
    color: black;
    font-weight: 500;
    margin: 0;
}

.modal-body {
    color: rgba(0, 0, 0, .54);
    font-size: 13px;
}

.modal-body input {
    background-color: #fff;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    color: rgba(0, 0, 0, .87);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin: 10px 0;
    max-width: 100%;
    outline: 0;
    padding: 8px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px transparent inset, 0 0 0 1px #e0e0e0 inset;
    width: 390px;
    max-height: 36px;
    font-size: 13px;
    font-family: 'Roboto';
    padding-left: 15px;
}

.modal-body input:focus {
    box-shadow: 0 0 0 2px #039be5 inset, 0 0 0 1px #e0e0e0 inset;
}

.modal-body input::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-family: 'Roboto';
}

.modal-footer {
    position: absolute;
    bottom: 20px;
    right: 25px;
    display: flex;
}

button {
    border: 2px solid transparent;
    background-color: #339af0;
    padding: 6px 15px;
    color: #fff;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 200ms;
}

button:hover {
    background-color: #1083e1;
}

button:focus {
    outline: none; /* rgba(0, 0, 0, 0.2) auto 1px; */
}

.modal-footer #cancel-btn {
    margin-right: 20px;
    color: rgba(0, 0, 0, .54);
    background: transparent;
}

.modal-footer #cancel-btn:hover {
    background: rgba(235, 235, 235, 1);
}

/* Modal Animation */
@keyframes modal {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* The Close Button */
.close {
    color: rgba(0, 0, 0, .54);
    font-size: 22px;
    font-weight: bold;
    position: absolute;
    right: 25px;
    top: 20px;
}

.close:hover,
.close:focus {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    cursor: pointer;
}

.card {
    box-shadow: 0 0px 2px 0 rgba(60,64,67,.15), 0 1px 3px 1px rgba(60,64,67,.15);
    padding: 24px;
    margin-bottom: 40px;
}