html {
    scroll-behavior: smooth;
}

body {
    transition: .3s ease-in-out;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1050px;
    }

    .overflow-width {
        position: relative;
        width: 1200px;
        left: -25px;
    }
}

@media (min-width: 2000px) {
    .overflow-width {
        position: relative;
        width: 1800px;
        left: -325px;
    }
}


#intro {
    height: 100vh;
    position: relative;
}

.image-select-delete {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 150px));
    grid-gap: 1rem;
    justify-content: center;
}

.image-select-delete input {
    margin-left: 5px;
}

input[type='file'].form-control {
    border: none;
}

.image-select-delete label {
    display: block;
}

.image-select-delete .img {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background: no-repeat center center;
    background-size: cover;
}

.post-header {
    background: no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    filter: blur(25px);
    -webkit-filter: blur(25px);
    position: absolute;
    height: 100%;
    width: 100%;
}

#login-background {
    background: no-repeat center center fixed;;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100vh;
    width: 100%;
    filter: blur(15px);
    -webkit-filter: blur(15px);
    position: absolute;
}

#login {
    padding: 5rem 0 1rem 0;
    min-height: 100vh;
}

main {
    min-height: 100vh;
}

main > *:first-child {
    padding-top: 5rem;
}

main > *:last-child {
    padding-bottom: 2rem;
}

.btn {
    margin-bottom: 1rem;
}

.table a.block {
    display: block;
}

table a .material-icons {
    font-size: 1.35rem;
}

@media (min-width: 1400px) {
    main > * {
        padding: 3rem 0;
    }
}

.navbar a {
    color: white;
}

.navbar .dropdown-menu {
    background-color: #333;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #444;
}

.errorlist {
    margin: 0;
    padding: 0 0 0 1rem;
    color: #B00020;
}

.forum-post {
    position: relative;
}

.edit-post-links {
    margin-left: .01rem;
}

.link {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    color: #007bff;
    border: none;
    background: none;
    margin: 0;
    padding: 0;
}

#spotlight a {
    color: black;
}

#spotlight a i {
    transition: .2s ease;
}

#spotlight a:hover i {
    transform: scale(1.3);
}

#spotlight .post-items {
    padding: 0;
    list-style-type: none;
    text-decoration: underline;
}

table.table .link {
    color: #0b51c5;
}

.top-nav-collapse {
    background-color: #222222;
}

.list-group-item {
    padding-left: 0;
    padding-right: 0;
}

.post-link {
    display: flex;
    justify-content: space-between;
}

img {
    max-width: 100%;
}


@media (max-width: 768px) {
    .navbar:not(.top-nav-collapse) {
        background-color: #222222;
    }
}

@media (min-width: 800px) and (max-width: 850px) {
    .navbar:not(.top-nav-collapse) {
        background-color: #222222;
    }
}

.card {
    overflow: hidden;
}

.monitor-list .card {
    max-width: calc(100vw - 2rem);

}

.monitor-card > div {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.monitor-card > div > * {
    width: 100%;
}

.monitor-card .monitor-info {
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .monitor-card > div {
        flex-direction: row;
    }

    .monitor-card .sample {
        padding-bottom: 50%;
    }

    .monitor-card > div > * {
        width: calc(270px - .5rem);
        height: calc(270px - .5rem);
    }

    .monitor-card .monitor-info {
        padding: 1rem;
    }

    .edit-post-links {
        position: absolute;
        right: 2rem;
        top: 1rem;
    }
}

.monitor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, calc(540px - 1rem));
    grid-gap: 2rem;
}

.monitor-group {
    font-size: 3rem;
    font-weight: bold;
}

.monitor-info h2 {
    font-size: 5rem;
    padding: 0;
    margin: 0;
}

.monitor-info a {
    color: white;
}

.monitor-info span {
    display: block;
    font-size: 1rem;
}

.calendar .row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    word-wrap: break-word;
    word-break: break-all;
    border-bottom: 1px solid #EEEEEE;
}

.calendar .event-list {
    list-style-type: none;
    padding: 0;
    font-size: .6rem;
}

@media (min-width: 768px) {
    .calendar .event-list {
        list-style-type: none;
        padding: 0;
        font-size: .8rem;
    }
}

.calendar .weekday-names > * {
    padding: .3rem;
    font-weight: bold;
}

.calendar .event-list li {
    margin-top: .2rem;
    padding: .2rem;
    display: block;
    background-color: #00b0ff;
    border-radius: 3px;
}

.calendar .event-list li a {
    display: block;
    color: black;
}

.calendar .event-list li .event-title {
    font-weight: bold;
}

.calendar .day {
    padding: .3rem;
    border-right: 1px solid #DDDDDD;
}

.calendar .day:first-child {
    border-left: 1px solid #DDDDDD;
}

.calendar .week {
    min-height: 4rem;
}

.calendar .calendar-nav a {
    padding-right: .3rem;
    border-right: 1px solid #AAAAAA;
}

.calendar .calendar-nav a:last-child {
    border-right: none;
}

.page-footer {
    padding: 2rem 0;
}

.page-footer .container {
    display: block;
    justify-content: space-between;
    font-size: .9rem;
}

@media (min-width: 768px) {
    .page-footer .container {
        display: flex;
    }
}

.page-footer .container .title {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.2em;
    font-weight: bold;
}

.page-footer ul {
    padding: 0;
    list-style-type: none;
}

.page-footer ul li {
    margin-bottom: .3rem;
}

.page-footer .column {
    display: flex;
    flex-direction: column;
}

.page-footer .socials {
    display: flex;
    align-items: center;
}

.page-footer .socials > * {
    margin-right: .3rem;
}

@media (min-width: 768px) {
    .page-footer .socials {
        flex-direction: column;
    }
}

.bold {
    font-weight: bold;
}

.posts li a {
    display: flex;
    justify-content: space-between;
}

input[type=checkbox].form-control {
    width: auto;
}

strong {
    font-weight: bold;
}

td a {
    transition: .3s ease-in-out;
}

.invisible-link:after {
    display: block;
    content: "";
    width: 0;
    height: 1px;
    background-color: #666;
    transition: .3s ease-in-out;
}

.invisible-link:hover:after {
    width: 80px;
}

.invisible-link {
    transition: .3s ease-in-out;
}

.invisible-link:hover {
    color: #666;
}

.ck-content {
    overflow: auto;
}

.messages {
    z-index: 10;
    position: fixed;
    bottom: 10px;
    width: 100vw;
    display: flex;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    transition: .5s;
    animation: message .3s 6s 3;
}

.messages ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

.messages ul li {
    margin-top: .5rem;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    color: white;
    background-color: #222222;
    box-shadow: 0 0 0 2px #222222;
}

.messages ul li .material-icons {
    font-size: 1rem;
    margin-left: 1rem;
    color: grey;
    cursor: pointer;
    transition: .3s;
}

.messages ul li .material-icons:hover {
    color: white;
}

.messages.disappear {
    opacity: 0;
    visibility: hidden;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, 265px);
    justify-content: center;
    grid-gap: 1rem;
}

.image-gallery img {
    height: 265px;
    width: 265px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    background: linear-gradient(#EEE, #DDD);
}

.comment {
    margin-bottom: 15px;
}

.sample {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background: no-repeat center center;
    background-size: cover;
}

.comment .delete-comment {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 80%;
    padding: 10px;
    border: none;
    background: none;
}

.comment {
    position: relative;
}


#carousel {
    background: #00000044;
}

#carousel-container {
    width: 100%;
}

#carousel-container > div {
    margin: 6.5rem auto;
    max-width: 1240px;
    min-height: calc(100vh - 13rem);
    display: flex;
    align-items: center;
}

.images.owl-carousel .owl-stage-outer img {
    max-width: calc(100vw - 2rem);
}

.images.owl-carousel img {
    transition: .2s ease-in-out;
}

.images.owl-carousel img:hover {
    transform: scale(1.08);
}

.images.owl-carousel .owl-stage-outer img {
    max-height: 200px;
}

.images.owl-carousel .owl-stage {
    max-height: 300px;
}

#carousel img {
    max-width: calc(100vw - 100px);
}

.gallery-list {
    display: grid;
    grid-gap: 1.5rem;
}

@media (min-width: 1240px) {
    #carousel img {
        max-width: 1140px;
    }
}

@media (min-width: 768px) {
    .gallery-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .comment-form {
        display: flex;
        align-items: center;
    }

    .comment-form {
        padding: 5px 10px 5px 5px;
        background-color: #E8E8E8;
        border-radius: 35px;
    }

    .comment-form button {
        margin: 0 0 0 10px;
        word-wrap: unset;
    }


    .comment-form .form-control {
        border-radius: 30px;
    }
}

.pagination {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.pagination .number {
    width: 40px;
}

.pagination .max, .pagination .number {
    margin: 5px;
    height: 40px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222222;
    color: grey;
}

.pagination .max {
    padding: 0 10px;
    width: 106px;
    text-align: center;
    line-height: 1rem;
}

.pagination li a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 100%;
    height: 100%;
}

.owl-carousel .owl-stage-outer img {
    max-height: calc(100vh - 13rem);
    max-width: calc(100vw - 100px);
    width: auto !important;
    height: auto !important;
}

@media (min-width: 576px) {
    .owl-carousel .owl-stage-outer img {
        max-width: 470px;
    }
}

@media (min-width: 768px) {
    .owl-carousel .owl-stage-outer img {
        max-width: 620px;
    }
}

@media (min-width: 992px) {
    .owl-carousel .owl-stage-outer img {
        max-width: 860px;
    }
}

@media (min-width: 1200px) {
    .owl-carousel .owl-stage-outer img {
        max-width: 1000px;
    }
}

.owl-carousel .owl-stage-outer .owl-stage {
    display: block !important;
}

.owl-carousel .owl-stage-outer .owl-item {
    display: inline-block;
    float: none;
    vertical-align: middle;
}

.owl-carousel .owl-stage-outer .item {
    text-align: center;
}

#carousel.owl-carousel .owl-stage-outer .owl-stage {
    display: flex !important;
    align-items: center;
}

#admin-drop {
    z-index: 100000;
    position: fixed;
    top: -1.5rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    transition: .3s ease-in-out;
    box-shadow: 0 0 2px 0 #444;
}

#admin-drop:hover {
    top: 0;
}

#admin-drop a {
    color: white;
    width: 70px;
    text-align: center;
    text-decoration: underline;
    font-weight: lighter;
    font-size: .9rem;
    background: #444;
    border-radius: 0 0 3px 3px;
}

#admin-drop .material-icons {
    position: absolute;
    left: 20px;
    height: 1rem;
    bottom: -.9rem;
    width: 30px;
    text-align: center;
    line-height: 1rem;
    font-size: 1rem;
    border-radius: 0 0 3px 3px;
    color: white;
    background: #444;
    cursor: default;
}

.id-link {
    position: relative;
    top: -6rem;
    height: 0;
}

.arrow:before {
    content: "keyboard_arrow_down";
    display: block;
    height: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
    position: relative;
    animation: animate-arrow-3 5s ease-in-out infinite 0.1s;
}

.arrow {
    animation: animate-arrow-2 5s ease-in-out infinite;
    color: #2E2E2E;
    display: block;
    margin: 2rem 0 6rem 0;
}

.arrow:after {
    content: "keyboard_arrow_down";
    display: block;
    top: 0;
    bottom: 0;
    margin: auto;
    position: relative;
    animation: animate-arrow-1 5s ease-in-out infinite 0.2s;
}

#calendar {
    min-height: 600px;
}

.popover-header {
    color: white;
    background-color: #222;
}

@keyframes animate-arrow-1 {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    15%, 100% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes animate-arrow-2 {
    0% {
        transform: translateY(-15px);
        opacity: 0;
    }
    15%, 100% {
        transform: translateY(0px);
        opacity: 0.6;
    }
}

@keyframes animate-arrow-3 {
    0% {
        transform: translateY(-7px);
        opacity: 0;
    }
    15%, 100% {
        transform: translateY(0px);
        opacity: 0.3;
    }
}

#upload-widget.dropzone {
    border: 2px dashed #0B51C5;
    border-radius: 5px;
    background: white;
    margin: 1rem 0;
}

#upload-widget.dropzone .dz-message {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 1.3em;
    font-family: Arial, serif;
}

#upload-widget.dropzone .dz-message .small {
    font-weight: normal;
    text-transform: none;
    color: #666666;
}
