/* Déclaration de la police locale RobotoMono */
@font-face {
    font-family: 'RobotoMono';
    src: url('../font/RobotoMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    background-color: #02151a !important;
    padding-bottom: 60px;
}

.navbar {
    margin-bottom: 15px;
    padding: 0;
    border-bottom: 2px solid darkgreen;
    position: relative;
    min-height: 42px;
    height: 42px;
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.navbar .container {
    position: relative;
    z-index: 2;
}

.navbar-brand {
    color: lightgreen;
}

#matrixeffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.nav-link {
    color: lightgreen !important;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background: black !important;
    border-bottom: 2px solid darkgreen !important;
    color: lightgreen !important;
}

.game-panel {
    padding: 16px;
    padding-right: 0;
    background-color: black;
    border: solid 1px darkgreen;
}

.intro-panel {
    border: 1px solid black;
    background-color: #218BC3;
    padding: 15px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-shadow: 0 5px 20px 3px rgba(75, 75, 75, 0.75);
    box-shadow: 0 5px 20px 3px rgba(1, 26, 35, 0.75);
}

.login-panel {
    color: lightgreen;
    background: black;
    border: solid 1px darkgreen;
    box-shadow: 5px 5px 20px 3px rgba(5, 45, 61, 0.75);
}

.main-title {
    position: absolute;
    margin: 0;
    padding: 0;
    color: #F9F1E9;
    text-align: center;
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

.demo .main-title {
    text-transform: uppercase;
    font-size: 4.2em;
    letter-spacing: 0.1em;
}

.main-title .thin {
    font-weight: 200;
}

@media only screen and (max-width: 768px) {
    .demo .main-title {
        font-size: 3em;
    }
}

.note {
    position: relative;
    display: inline-block;
    overflow:hidden;
    background: black;
    color: white;
    height: 125px;
}

.note-discover {
    animation: border-discover 1s linear normal;
}

.note-done:after {
    border-top: 75px solid darkgreen;
}

.note-todo:after {
    border-top: 75px solid #0cacac;
}

.note-unknown:after {
    border-top: 75px solid #ac440c;
}

.note-discover:after {
    border-top: 75px solid transparent;
}

.note:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    display: block;
    border-left: 75px solid transparent;
    border-bottom: 75px solid transparent;
    z-index: 0;
}

.note svg {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 36px;
    z-index: 1;
    margin: 0;
    padding: 0;
}


/* Terminal */
.terminal{
    font-family: 'Roboto Mono', 'Courier New', monospace;
    color: darkgreen;
    font-size: 14px;
    padding: 4px;
}

.line {
    display: table;
    width: 100%;
}

.terminal span {
    display: table-cell;
    width: 1px;
}

.terminal input {
    display: table-cell;
    width: 100%;
    border: none;
    outline: none;
    background-color: black;
    color: darkgreen;
}

@keyframes border-discover {
    0% {
        background: darkcyan;
        opacity: 0.1;
        -webkit-box-shadow: 0 0 26px 4px darkcyan;
        -moz-box-shadow: 0 0 26px 4px darkcyan;
        box-shadow: 0 0 26px 4px darkcyan;
    }

    25% {
        opacity: 0.5;
        -webkit-box-shadow: 0 0 26px 4px darkcyan;
        -moz-box-shadow: 0 0 26px 4px darkcyan;
        box-shadow: 0 0 26px 4px darkcyan;
    }

    50% {
        opacity: 0.7;
        -webkit-box-shadow: 0 0 26px 4px darkcyan;
        -moz-box-shadow: 0 0 26px 4px darkcyan;
        box-shadow: 0 0 26px 4px darkcyan;
    }

    75% {
        opacity: 0.9;
        -webkit-box-shadow: 0 0 26px 4px darkcyan;
        -moz-box-shadow: 0 0 26px 4px darkcyan;
        box-shadow: 0 0 26px 4px darkcyan;
    }

    90% {
        opacity: 0.9;
        border-color: darkcyan;
        -webkit-box-shadow: 0 0 50px 4px darkcyan;
        -moz-box-shadow: 0 0 50px 4px darkcyan;
        box-shadow: 0 0 50px 4px darkcyan;
    }


    95% {
        opacity: 1;
        -webkit-box-shadow: 0 0 65px 4px darkcyan;
        -moz-box-shadow: 0 0 65px 4px darkcyan;
        box-shadow: 0 0 65px 4px darkcyan;
    }

    100% {
        opacity: 1;
    }
}

.no-select {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.note:before, .note:after {
    content: '';
    position: absolute;
    transition: transform .5s ease;
}

.note svg {
    color: white;
}

.note-done {
    box-shadow: none;
    border: solid darkgreen 1px;
    border-radius: 8px 0 8px 8px;
}

.note-todo {
    box-shadow: none;
    border: solid darkcyan 1px;
    border-radius: 8px 0 8px 8px;
}

.note-unknown {
    box-shadow: none;
    border: solid #ac440c 1px;
    border-radius: 8px 0 8px 8px;
}

.note-done:hover:not(a) {
    transform: rotate(0deg) scale(1) translateY(1px) translateX(1px);
    box-shadow: 2px 2px 15px 2px darkgreen;
    border-radius: 8px 0 8px 8px;
}

.note-todo:hover:not(a) {
    transform: rotate(0deg) scale(1) translateY(1px) translateX(1px);
    box-shadow: 2px 2px 15px 2px darkcyan;
    border-radius: 8px 0 8px 8px;
}

.note-unknown:hover:not(a) {
    transform: rotate(0deg) scale(1) translateY(1px) translateX(1px);
    box-shadow: 2px 2px 15px 2px #ac440c;
    border-radius: 8px 0 8px 8px;
}

.effect-btn, .effect-btn > span {
    position: relative;
    color: inherit;
    text-decoration: none;
    line-height: 24px;
}

.effect-btn:before, .effect-btn:after, .effect-btn > span:before, .effect-btn > span:after {
    content: '';
    position: absolute;
    transition: transform .4s ease;
}

.effect-4 {
    padding: 10px;
    display: inline-block;
    overflow: hidden;
}
.effect-4:before, .effect-4:after {
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
}
.effect-4:before {
    bottom: 0;
    transform: translateX(-100%);
}
.effect-4:after {
    top: 0;
    transform: translateX(100%);
}
.effect-4:hover:before, .effect-4:hover:after {
    transform: translateX(0);
}


/* Discover */
.background-img{
    height: 175px;
    padding:20px;
    position: relative;
}

.box{
    position: absolute;
    top: 0;
    left: 0;
    /*transform: translate(-50%, -50%);*/
    width: 100%;
    height: 175px;
    /*height: 300px;*/
    background: rgba(7, 7, 26, 0.65);
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 20px 50px rgb(4, 55, 78);
    border: 2px solid darkcyan;
    color: white;
    padding: 20px;
}

/*.box{*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*    width: 300px;*/
/*    height: 300px;*/
/*    background: rgba(7, 7, 26, 0.65);*/
/*    box-sizing: border-box;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 20px 50px rgb(23, 32, 90);*/
/*    border: 2px solid darkcyan;*/
/*    color: white;*/
/*    padding: 20px;*/
/*}*/

.box:before{
    content: '';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background: darkcyan;
    opacity: 0.1;
    transition:0.5s;
    pointer-events: none;
}

.box:hover:before{
    left:0%;
    /*transform: skewX(-5deg);*/
}

.box .content{
    position:absolute;
    top:15px;
    left:15px;
    right:15px;
    bottom:15px;
    padding:20px;
    text-align:center;
    box-shadow: 0 5px 10px rgba(9,0,0,0.5);
}

.box span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    display: block;
    box-sizing: border-box;
}

.box span:nth-child(1)
{
    transform:rotate(0deg);
}

.box span:nth-child(2)
{
    transform:translate(50%) rotate(90deg);
}

.box span:nth-child(3)
{
    transform:translateY(171px) rotate(180deg);
}

.box span:nth-child(4)
{
    transform:translate(-50%) rotate(270deg);
}

.box span:before
{
    content: '';
    position: absolute;
    width:100%;
    height: 2px;
    background: #50dfdb;
}

.box span:nth-child(1):before,
.box span:nth-child(3):before
{
    animation: animate 4s linear infinite;
}

.box span:nth-child(2):before,
.box span:nth-child(4):before
{
    animation: animate 8s linear infinite;
}

@keyframes animate {
    0% {
        transform:scaleX(0);
        transform-origin: left;
    }
    50%
    {
        transform:scaleX(1);
        transform-origin: left;
    }
    50.1%
    {
        transform:scaleX(1);
        transform-origin: right;
    }

    100%
    {
        transform:scaleX(0);
        transform-origin: right;
    }
}

.neon {
    color: #fff;
    text-shadow:
            0 0 5px #f3f3f3,
            0 0 40px darkcyan,
            0 0 90px darkcyan;
}

.data-panel {
    position: absolute;
    top: 40px;
    height: 45px;
    background-color: black;
    border: solid 1px darkgreen;
    color: darkgray;
    z-index: 0;
}

.data-panel {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    font-size: 18px;
    padding: 6px;
    z-index: 120;
    border-top: 2px solid darkgreen;
}

/* Styles responsives pour le data-panel */
@media (max-width: 576px) {
    .data-panel {
        max-width: 100%;
        margin: 0 10px;
        font-size: 16px;
        padding: 8px;
    }
    
    .data-panel .points {
        font-size: 14px;
    }
    
    .data-panel .d-flex {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .data-panel .d-flex > div {
        white-space: nowrap;
    }
    
    #logs {
        margin-top: 10px;
    }
    
    #logs .nav-tabs {
        font-size: 14px;
        flex-wrap: nowrap;
    }
    
    #logs .nav-tabs .nav-item {
        flex: 1;
        min-width: 0;
    }
    
    #logs .nav-tabs .nav-link {
        padding: 6px 4px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #nav-tabContent {
        font-size: 14px;
        height: calc(80vh - 100px);
    }
    
    #nav-rank .row {
        font-size: 13px;
    }
    
    #nav-logs div {
        font-size: 13px;
    }
    
    #nav-divers {
        font-size: 14px;
    }
    
    #nav-divers .mb-2 {
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .data-panel {
        margin: 0 5px;
        font-size: 14px;
    }
    
    .data-panel .points {
        font-size: 13px;
    }
    
    .data-panel .d-flex {
        gap: 2px;
    }
    
    .data-panel .d-flex > div {
        font-size: 12px;
    }
    
    #logs .nav-tabs {
        font-size: 12px;
    }
    
    #logs .nav-tabs .nav-link {
        padding: 4px 2px;
        font-size: 12px;
    }
    
    #nav-tabContent {
        font-size: 13px;
        height: calc(75vh - 90px);
    }
    
    #nav-rank .row {
        font-size: 12px;
    }
    
    #nav-logs div {
        font-size: 12px;
    }
    
    #nav-divers {
        font-size: 13px;
        padding: 10px;
    }
}

.expend-log:hover {
    color: lightgreen;
    cursor: pointer;
}


#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.75); /* Black background with opacity */
    z-index: 149; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

#overlay_achievement {
    position: fixed; /* Sit on top of the page content */
    display: block; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.75); /* Black background with opacity */
    z-index: 149; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

.glow {
    box-shadow: 0px 0px 40px 5px #006400;
    animation: neons 1s linear infinite;
}

@keyframes neons {
    0% {
        opacity: 0.9;
    }

    5% {
        opacity: 0.95;
    }

    10% {
        opacity: 0.85;
    }

    15% {
        opacity: 1;
    }

    20% {
        opacity: 0.9;
    }

    30% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0.9;
    }
}


.achievement, .achievement::before, .achievement::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.blinking_achievement {
    color: #fff;
    text-shadow:
            0 0 2px black;
}

.achievement {
    background-color: black;
    z-index: 150;
    width: 261px;
    height: 261px;
    color: #0cacac;
    left: calc(50% - 125px);
    top: 25%;
    border: solid 3px rgba(12, 172, 172, 0.85);
    border-radius: 3px;
    box-shadow: 0px 0px 140px 15px #0cacac;
}

@keyframes blinkingText {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 0.9;
    }
}

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

/* keyframes for animation;  simple 0 to 360 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#rays	{
    background: url(../img/rays-main.png) 0 0 no-repeat;
    position: absolute;
    width: 490px;
    height: 490px;
    opacity: 1;

    left: calc(50% - 245px);
    top: calc(25% - 125px);

    /* microsoft ie */
    animation-name: spin;
    animation-duration: 30s; /* 40 seconds */
    animation-iteration-count: infinite;
    animation-timing-function: linear;

    z-index: 0;
}

a.achievement_link:link {
    color:darkcyan;
    text-decoration: none;
}

a.achievement_link:visited {
    color:darkcyan;
    text-decoration: none;
}

a.achievement_link:hover {
    color:darkcyan;
    text-decoration: underline;
}

a.achievement_link:active {
    color:darkcyan;
    text-decoration: underline;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40;
    border-top: 1px solid #2d2d2d;
    opacity: 0.9;
    z-index: 1000;
    padding: 0.5rem 0;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    color: #5fb15f !important;
    font-size: 0.9em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-copyright:hover {
    color: #7fd17f !important;
}

/* Styles responsives pour les onglets */
@media (max-width: 576px) {
    .nav-tabs {
        border-bottom: 1px solid darkgreen;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .nav-tabs .nav-item {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .nav-tabs .nav-link {
        border: 1px solid darkgreen;
        border-bottom: none;
        border-radius: 4px 4px 0 0;
        margin-right: 2px;
        font-size: 13px;
        padding: 6px 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-tabs .nav-link.active {
        border-bottom: 2px solid darkgreen;
        margin-bottom: -1px;
    }
    
    /* Amélioration du conteneur principal */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Amélioration de la navbar */
    .navbar {
        min-height: 50px;
        height: 50px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-tabs .nav-link {
        font-size: 12px;
        padding: 4px 2px;
    }
    
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}
