@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700&display=swap');

.text-danger{ color: #f00 !important; }
.bg-danger{ background-color: #f00 !important; }
.btn-danger{ background-color: #f00 !important; border-color: #f00 !important; }

body{
    font-family: "Mukta", sans-serif;
    background: #0b0b0b;
    color: #EFEFEF;
}

.failed {
    border-color: red;
}

.change.diff, .change.stdout{
  display: block;
  font-family: monospace;
  margin: 1em 0;
  white-space: break-spaces;
}

.change.stderr {
    display: block;
    font-family: monospace;
    margin: 1em 0;
    white-space: break-spaces;
}

.change.pid {
    display: block;
}

.change.stdout {
    display: block;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.page-wrapper{
    padding: 5rem 0;
}

.bg{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 200vw;
    height: 200vh;
    opacity: .9;
    visibility: visible;
    z-index: -1;
    transform: translate(-50vw, -50vh);
}

.bg:after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: bg-animation 200ms infinite;
    background: transparent url("/static/img/noise.png");
    background-size: 700px;
    background-repeat: repeat;
    will-change: transform;
    -webkit-will-change: transform;
}

/* Deployment */
.page-wrapper .deployment:not(:last-child){
    padding-bottom: 5rem;
    margin-bottom: 5rem;
    position: relative;
}

.page-wrapper .deployment:not(:last-child):after{
    content: "";
    position: absolute;
    bottom: 0rem;
    left: 0;
    width: 100%;
    border-bottom: 1px solid white;
    opacity: .05;
}

.deployment .row-left{
    position: sticky;
    top: 2.5rem;
    height: 100%;
}

.name-wrapper h2{
    position: relative;
    word-break: break-word;
}
.failed .name-wrapper h2:before, .failed .name-wrapper h2:after{
    content: "";
    position: absolute;
    bottom: 9px;
    left: 0;
    background-image: url(/static/img/failed.gif);
    background-position: 0 8px;
    background-size: 100px;
    background-repeat: repeat-x;
    width: 100%;
    height: 40px;
    pointer-events: none;
    z-index: -1;
}

.failed .name-wrapper h2:after{
    z-index: 2;
    opacity: .3;
}

/* Server */
.row-right .project:not(:last-child){
    margin-bottom: 4rem;
}
.project{
    padding: 0rem 1rem;
    border-left: 4px solid #EFEFEF;
}

.project h3{
    text-transform: capitalize;
}

.project.failed{
    border-left: 4px solid #f00;
}

.project.failed li:not(.error){
    color: white;
}

.project.failed *{
    color: red;
}

.changes.retcode, .changes.pid{
    display: none;
}

.project *:last-child{
    margin-bottom: 0;
}

.version-badge{
    font-size: 40% !important;
    text-decoration: unset;
    transform: translate(-5px, -10px);
}

a {
    cursor: pointer;
    font-weight: 600;
}

a[data-bs-toggle="modal"]{
    text-decoration: underline !important;
}

a.permalink {
  text-decoration: none;
  color: white;
  font-weight: normal;
  font-size: 0.65em;
}

a.permalink:hover, a.permalink:active {
  color: blue;
}

ul{
    list-style: none;
}
ul li{
    position: relative;
}
ul li:before{
    content: "-";
    position: absolute;
    top: 0;
    left: -1rem;
    vertical-align: middle;
    font-weight: 900;
}

/* Modal styling  */
.modal{
    color: #0b0b0b;
    backdrop-filter: blur(3px);
}
.modal .change{
    margin-top: 0 !important;
    word-break: break-word;
}
.modal .modal-dialog{
    padding: 2rem;
}
.modal .modal-content{
    background: black;
    color:  #c7c7c7;
    border: 1px solid #605f5d;
    min-height: 400px;
}
.modal .modal-content *{
    color: #c7c7c7 !important;
}
.modal .modal-header{
    background: #383735;
    padding: .5rem 1rem;
    border: 0 !important;
}
.modal .modal-header a{
    margin-right: auto;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    background: #ed6a5e;
    color: #8c1a10 !important;
    font-size: 1.5rem;
    padding-top: 1px;
}
@media screen and (min-width: 992px){
    .modal-lg, .modal-xl {
        --bs-modal-width: 1200px;
    }
}

/* Login */
.login-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: white;
    color: #0b0b0b;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    max-width: 600px;
}
.image-wrapper{
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
.image-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

input{
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
input:focus{
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px;
}
.pagination .step-links {
    
}
.pagination a {
    color: white;
}
/* Static animation */
@keyframes bg-animation {
    0% {
        transform: translate(0,0);
        -ms-transform: translate(0,0);
        -webkit-transform: translate(0,0);
        -o-transform: translate(0,0);
    }
    10% {
        transform: translate(-5%,-5%);
        -ms-transform: translate(-5%,-5%);
        -webkit-transform: translate(-5%,-5%);
        -o-transform: translate(-5%,-5%);
    }
    20% {
        transform: translate(-10%,5%);
        -ms-transform: translate(-10%,5%);
        -webkit-transform: translate(-10%,5%);
        -o-transform: translate(-10%,5%);
    }
    30% {
        transform: translate(5%,-10%);
        -ms-transform: translate(5%,-10%);
        -webkit-transform: translate(5%,-10%);
        -o-transform: translate(5%,-10%);
    }
    40% {
        transform: translate(-5%,15%);
        -ms-transform: translate(-5%,15%);
        -webkit-transform: translate(-5%,15%);
        -o-transform: translate(-5%,15%);
    }
    50% {
        transform: translate(-10%,5%);
        -ms-transform: translate(-10%,5%);
        -webkit-transform: translate(-10%,5%);
        -o-transform: translate(-10%,5%);
    }
    60% {
        transform: translate(15%,0);
        -ms-transform: translate(15%,0);
        -webkit-transform: translate(15%,0);
        -o-transform: translate(15%,0);
    }
    70% {
        transform: translate(0,10%);
        -ms-transform: translate(0,10%);
        -webkit-transform: translate(0,10%);
        -o-transform: translate(0,10%);
    }
    80% {
        transform: translate(-15%,0);
        -ms-transform: translate(-15%,0);
        -webkit-transform: translate(-15%,0);
        -o-transform: translate(-15%,0);
    }
    90% {
        transform: translate(10%,5%);
        -ms-transform: translate(10%,5%);
        -webkit-transform: translate(10%,5%);
        -o-transform: translate(10%,5%);
    }
    100% {
        transform: translate(5%,0);
        -ms-transform: translate(5%,0);
        -webkit-transform: translate(5%,0);
        -o-transform: translate(5%,0);
    }
}

/* remove animation from safari */
@media not all and (min-resolution:.001dpcm) { 
    @media {
        .bg{
            display: none;
        }
    }
}
@media not all and (min-resolution:.001dpcm) { 
    @media {
        .bg{
            display: none;
        }
    }
}