:root{
    --bg-color: #959595;
}


body {
    font-family: "Lato", sans-serif;
    margin: 0px;;
}

.hidden{
    display: none !important;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: 0.5s;
    width: 90px;
    background-color: #555;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.sidebar a {
    cursor: pointer;
    text-decoration: none;
    display: flex;
    text-align: center;
    padding: 16px;
    transition: all 0.3s ease;
    color: white;
    font-size: 36px;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.sidebar a:hover {
    color: #000;
}

#main {
    transition: margin-left .5s;
    margin-left: 90px;
    background-color: var(--bg-color);
    height: 100vh
}

.active {
    background-color: #04AA6D;
}

.sidebar_expanded {
    width: 250px;
}

.main_collided{
    margin-left: 250px !important;;
}

.sidebar-item-text{
    display:none;
}

.sidebar_expanded .sidebar-item-text{
    display:block;
}

.sidebar-toggler{
    margin-bottom: 60px;
}

.sidebar_expanded .sidebar-toggler{
    float: right;
}

.icon {
    width: 50px;
    height: 50px;
    display: block;
    user-select: none;
}

.icon-minecraft {
    background: url('images/minecraft-icon.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.icon-csgo {
    background: url('images/csgo-icon.png');
    background-repeat: no-repeat;
    background-size: contain;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidebar {padding-top: 15px;}
    .sidebar a {font-size: 18px;}
}



.popup {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
}

.popup-inner {
    color: black;
    /* padding: 2px; */
    min-width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--bg-color);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 1);
    z-index: 101;
    text-align: center;
}

.popup-active{
    display: inline-block;
}

.popup-close-span {
    font-family: Sans-Serif;
    font-size: 28px !important;
    font-weight: bold;
    margin-top: -20px;
    margin-right: -10px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.popup-button{
    margin: 2px;
}

.popup-header{
    height: 25px;
    padding: 5px 30px 5px 30px;
    background: var(--head-color);
}
.popup-header-title{
    font-size:20px !important;
    font-weight: bold;
}

.popup-content{
    overflow-y: auto !important;
    min-height: 100px;
    max-height: 800px;
    padding: 5px;
}

.popup-footer{
    min-width: 290px; /* min-width + padding für volle Breite */
    padding: 5px;
}

.popup-footer button{
    margin: 0 5px;
}

.raised_popup{
    z-index: 102;
}

.raised_popup.popup-inner{
    z-index: 103;
}

.rcon_command_button {
    padding: 5px 10px;
    margin: 5px;
    box-shadow: 0 0 10px 1px #1a1a1a;
    border-radius: 5px;
    border: none;
}

/*##############################################
                Minecraft
##############################################*/

#minecraft_rcon_div{
    width: 100%;
    height: 100%;
}

#minecraft_command_div{
    width: 70%;
    height: 100%;
    float:left;
}

#minecraft_buttons_div{
    height: 25%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
}

#minecraft_console_div{
    height: 75%;
    width: 100%;
    background-color: lightgray;
    border-radius: 0 10px 0 0;
}

#minecraft_stats_div{
    width: 30%;
    height: 100%;
    float:left;
}

#minecraft_stats_stats{
    height: 25%;
    width: 100%;
}

#minecraft_stats_players{
    height: 75%;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

#minecraft_console_command{
    align-items: center;
}

#minecraft_console_command_input{
    width: calc(100% - 20px); /* - padding*2 */
    padding: 10px;
    font-size: 18px;
    border: none;
    height: calc(50px - 20px);/* - padding*2 */
}

#minecraft_console_output{
    height:calc(100% - 50px);
    overflow-y: auto;
}

#minecraft_console_output_list{
    text-decoration: none;
    list-style: none;
    padding: 0;
    margin: 0;
}
#minecraft_console_output_list>*{
    padding: 5px;
    margin: 1px;
}

#minecraft_console_output_list .item-command{
    background-color: lightblue;
}

#minecraft_console_output_list .item-success{
    background-color: lightgreen;
}

#minecraft_console_output_list .item-info{
    background-color: lightseagreen;
}

#minecraft_console_output_list .item-warning{
    background-color: lightgoldenrodyellow;
}

#minecraft_console_output_list .item-error{
    background-color: lightcoral;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#minecraft_console_output::-webkit-scrollbar {
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
#minecraft_console_output {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.player-card{
    width: 90%;
    border-radius: 10px;
    padding: 3px;
    margin: 3px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 10px 1px white;
}

.player-card-name{
    font-size: 20px;
}

.player-card-head-image{
    width: 32px;
    height: 32px;
    margin: 0 5px;
}

.player-card-status{
    border-radius: 50%;
    border: 3px solid;
    margin-right: 5px;
    width: 20px;
    height: 20px;
}

.player-card-status.player-online{
    border-color: #60f3bd;
    background-color:#04AA6D;
    box-shadow: 0 0 10px 1px #04AA6D;
}

.player-card-status.player-offline{
    border-color: #ee6060;
    background-color:#e00e0e;
    box-shadow: 0 0 10px 1px #e00e0e;
}

/*##############################################
                CSGO
##############################################*/

#csgo_rcon_div{
    width: 100%;
    height: 100%;
}

#csgo_command_div{
    width: 70%;
    height: 100%;
    float:left;
}

#csgo_buttons_div{
    height: 25%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
}

#csgo_console_div{
    height: 75%;
    width: 100%;
    background-color: lightgray;
    border-radius: 0 10px 0 0;
}

#csgo_stats_div{
    width: 30%;
    height: 100%;
    float:left;
}

#csgo_stats_stats{
    height: 100%;
    width: 100%;
}

#csgo_console_command{
    align-items: center;
}

#csgo_console_command_input{
    width: calc(100% - 20px); /* - padding*2 */
    padding: 10px;
    font-size: 18px;
    border: none;
    height: calc(50px - 20px);/* - padding*2 */
}

#csgo_console_output{
    height:calc(100% - 50px);
    overflow-y: auto;
}

#csgo_console_output_list{
    text-decoration: none;
    list-style: none;
    padding: 0;
    margin: 0;
}
#csgo_console_output_list>*{
    padding: 5px;
    margin: 1px;
}

#csgo_console_output_list .item-command{
    background-color: lightblue;
}

#csgo_console_output_list .item-success{
    background-color: lightgreen;
}

#csgo_console_output_list .item-info{
    background-color: lightseagreen;
}

#csgo_console_output_list .item-warning{
    background-color: lightgoldenrodyellow;
}

#csgo_console_output_list .item-error{
    background-color: lightcoral;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#csgo_console_output::-webkit-scrollbar {
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
#csgo_console_output {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

























#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #1b15d7;

    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
            animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */

    z-index: 1001;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #18df11;

    -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
            animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e80cb1;

    -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
            animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0%   { 
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(0deg);  /* IE 9 */
                transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(360deg);  /* IE 9 */
                transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}
@keyframes spin {
    0%   { 
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(0deg);  /* IE 9 */
                transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: rotate(360deg);  /* IE 9 */
                transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: #222222;
    z-index: 1000;
    -webkit-transform: translateX(0);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: translateX(0);  /* IE 9 */
            transform: translateX(0);  /* Firefox 16+, IE 10+, Opera */
}

#loader-wrapper .loader-section.section-left {
    left: 0;
}

#loader-wrapper .loader-section.section-right {
    right: 0;
}

/* Loaded */
.loaded #loader-wrapper .loader-section.section-left {
    -webkit-transform: translateX(-100%);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: translateX(-100%);  /* IE 9 */
            transform: translateX(-100%);  /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);  
            transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #loader-wrapper .loader-section.section-right {
    -webkit-transform: translateX(100%);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: translateX(100%);  /* IE 9 */
            transform: translateX(100%);  /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);  
            transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #loader {
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;  
            transition: all 0.3s ease-out;
}
.loaded #loader-wrapper {
    visibility: hidden;

    -webkit-transform: translateY(-100%);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: translateY(-100%);  /* IE 9 */
            transform: translateY(-100%);  /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.3s 1s ease-out;  
            transition: all 0.3s 1s ease-out;
}

.loader-text{
    visibility: visible;
    top: 10%;
    position: absolute;
    font-size: 100px;
    color:white;
    width: 100vw;
    text-align: center;
    z-index: 1001;
}

.loaded .loader-text {
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;  
            transition: all 0.3s ease-out;
}


