@import "fontstyles.css";
* {
	font-family: "Chivo", sans-serif;
/*	font-weight: 100;*/
	color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #f8f4f4;
    padding: 20px 20px 40px;
    padding: 0;
    margin: 0;
    font-weight: 100;
}
a {
    text-decoration: none;
    font-weight: bolder;
}
a:hover {
    text-decoration: underline;
}
p, div, span, li, input, textarea, label, td {
    font-weight: 100;
    margin: 3px 0;
}
ol, ul {
    margin-inline-start: 1em;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin: 0.2em 0;
    text-transform: capitalize;
}
li {
	margin-bottom: 0.4em;
}
table {
    width: 100%;
}
th {
    text-align: left;
}
.centered {
    text-align: center;
}
.bigmargin {
    margin: 2em 4em;
}

.description {
    font-size: 0.8em;
    margin: 0.4em 0;
}



section.default {
    max-width: 680px;
    border: 1px solid lightgrey;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 3px;
    padding: 0 12px 10px;
    margin: 0 0 25px;
    box-shadow: 3px 3px rgb(0 0 0 / 10%);
}
@media (min-width: 768px) {
    section.default {
        padding: 10px 20px 24px;
    }
}

.default fieldset {
    border: 1px solid lightgrey;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 3px;
    margin: 1.4em 0;
    padding: 20px 10px;
}
.default fieldset.checks {}
.default input,
.default textarea {
    background: #fbfbfb;
    border: 1px solid lightslategrey;
    border-radius: 3px;
    padding: 0.2em;
}
.default input[type="text"],
.default input[type="password"],
.default input[type="email"],
.default textarea {
    margin: 2px 0;
}
.default fieldset label {}
.default fieldset .inputholder {}
.default fieldset .description {
	font-size: 0.8em;
}
.default fieldset .fieldsave {
    text-align: right;
    padding-bottom: 0px;
    align-self: end;
}
.default fieldset .recent_updates {
/*    width: 570px;*/
    max-height: 300px;
    overflow-y: scroll;
}
.default legend {
    /* background: #eeeeee; */
    border-radius: 3px;
    padding: 0.2em 0.5em;
    color: #333;
    line-height: 1em;
    font-size: 0.8em;
    opacity: 0.4;
    margin-left: 0;
}
.default input[type="checkbox"].is_custom {
    position: absolute;
    left: 0;
    /*
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    */
}
.default.inputholder {
    position: relative;
}
/* Create a custom checkbox */
/* https://www.w3schools.com/howto/howto_css_custom_checkbox.asp */

:disabled {
    opacity: 0.6;
    background: #fefefe;
}
.medium {
    font-weight: 500;
}
.strong {
    font-weight: 700;
}
.small {
    font-size: 0.8em;
}
.inputholder {
    display: flex;
    flex-direction: column;
}
.fieldbuttons {
    display: flex;
    flex-direction: row;
    justify-content: end;
}
.fieldbuttons button {
    border-radius: 50%;
    appearance: none;
    border: 1px solid lightgrey;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
}
.fieldadd {}
.fielddelete {}
.groupslist {
    padding-left: 0;
}
.groupslist li {
    display: flex;
    justify-content: space-between;
}
.groupslist h3 {
    margin: 0;
    margin-bottom: 0.2em;
}
th svg,
li svg {
    width: 20px;
    height: 18px;
    fill: #333333;
}
th svg {
    display: flex;
    justify-content: center;
    align-items: center;
}
.description ul {
    list-style-type: none;
    margin-left: 0;
    padding-inline-start: 0;
}
.description li {
    margin-bottom: 0.4em;
    display: flex;
    column-gap: 0.4em;
    justify-content: start;
    align-items: center;
}

#login_container,
#register_container {
    max-width: 650px;
    margin: 5vh auto;
    box-shadow: 4px 4px rgb(0 0 0 / 80%);
    padding: 0.2em 2em 2em;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top-left-radius: 5px;
    border: 1px solid lightgrey;
}
.stylish_button {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top-left-radius: 5px;
    padding: 0.5em 1em;
    border: 1px solid lightgrey;
    box-shadow: 4px 4px rgb(0 0 0 / 80%);
    cursor: pointer;
    transition: all 0.1s;
    margin: 12px 0;
}
.stylish_button:hover {
    box-shadow: 6px 6px rgb(0 0 0 / 80%);
    margin: 10px 0 14px;
}
.stylish_button:active {
    box-shadow: 2px 2px rgb(0 0 0 / 80%);
    margin: 12px 0 12px;
}

/*
.openai_greeting {
    max-width: 600px;
    box-shadow: 2px 2px 10px -5px rgb(0 0 0 / 20%);
    border-radius: 5px;
    padding: 1em;
    margin-left: 50px;
    margin-bottom: 2em;
}
*/



/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.demo-ribbon {
width: 100%;
height: 40vh;
background-color: #3F51B5;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}

.demo-main {
margin-top: -35vh;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}

.demo-header .mdl-layout__header-row {
padding-left: 40px;
}

.demo-container {
max-width: 1600px;
width: calc(100% - 16px);
margin: 0 auto;
}

.demo-content {
border-radius: 2px;
padding: 80px 56px;
margin-bottom: 80px;
}

.demo-layout.is-small-screen .demo-content {
padding: 40px 28px;
}

.demo-content h3 {
margin-top: 48px;
}

.demo-footer {
padding-left: 40px;
}

.demo-footer .mdl-mini-footer--link-list a {
font-size: 13px;
}

.mdl-card {
margin: 40px auto;
}

#telegramgroups_group>div {
display: flex;
flex-direction: column;
}



/*
** VERSION 202310
*/
thead {
    position: sticky;
    top: 0;
    background-color: #f1f1f1; /* Hintergrundfarbe für den fixierten Header */
    z-index: 1; /* Damit der Header über dem <tbody>-Bereich angezeigt wird */
}
table#groupsettings {
    margin: 20px 0;
/*    max-width: 800px;*/
}
button.big {
    text-transform: uppercase;
}
.multiple_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-between;
}
.multiple_buttons button,
.single_button button {
    width: 100%;
    height: 50px;
    font-size: 1.2em;
    border-radius: 12px;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.multiple_buttons form {
    width: 100%;
    text-align: center;
}
@media(min-width: 451px) {
    .multiple_buttons form {
        width: 49%;
    }
    .multiple_buttons button {
        height: 50px;
        font-size: 1.2em;
        border-radius: 12px;
        border: 2px solid white;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }
}
@media(min-width: 937px) {
    .multiple_buttons form {
        width: unset;
    }
    .multiple_buttons button {
        width: 190px;
    }
}
.multiple_buttons button:hover {
    letter-spacing: 1px;
    box-shadow: 0 0 8px -4px rgba(0,0,0,0.2);
}
.multiple_buttons button:disabled {
    opacity: 0.6;
}
#destroy .submit {
    color: red;
}
#activate .submit {
    background: red;
    color: white;
}
#activate .submit.active {
    background: green;
}
#livemode .submit {
    background: lightgrey;
    color: grey;
}
#livemode .submit.active {
    background: rgb(115,157,176);
    background: -moz-linear-gradient(-15deg, rgba(115,157,176,1) 0%, rgba(123,199,231,1) 19%, rgba(159,216,226,1) 43%, rgba(190,229,212,1) 68%, rgba(203,231,181,1) 100%);
    background: -webkit-linear-gradient(-15deg, rgba(115,157,176,1) 0%, rgba(123,199,231,1) 19%, rgba(159,216,226,1) 43%, rgba(190,229,212,1) 68%, rgba(203,231,181,1) 100%);
    background: linear-gradient(-15deg, rgba(115,157,176,1) 0%, rgba(123,199,231,1) 19%, rgba(159,216,226,1) 43%, rgba(190,229,212,1) 68%, rgba(203,231,181,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#739db0",endColorstr="#cbe7b5",GradientType=1);
    color: black;
}
#force .submit {
    background: black;
    color: white;
}
.chips {
    display: flex;
    gap: 5px;
}
.chips span {
    border: 1px solid lightgrey;
    padding: 0.2em 0.4em;
    font-size: 12px;
    border-radius: 5px;
}
.chips span:hover,
.chips span:active {
    background: lightgrey;
    cursor: pointer;
}
.chips span a {
    text-decoration: none;
}
.listsettings {
    list-style-type: none;
    padding-inline-start: 0;
}
.listsettings li {
    display: flex;
    flex-direction: row;
    width: 950px;
    gap: 5px;
}
.listsettings li:nth-child(even),
.listsettings tr:nth-child(even) {
    background: rgba(0,0,0,0.1);
}

.listsettings li .name {
    flex-grow: 5;
    flex-basis: 10%;
}
.listsettings li .botid {
    flex-grow: 3;
    flex-basis: 1%;
}
.listsettings li .testgroup {
    flex-grow: 1;
    flex-basis: 5%;
}
.listsettings li .welcomes {
    flex-grow: 2;
    flex-basis: 5%;
}
.listsettings li .forwards {
    flex-grow: 1;
    flex-basis: 5%;
}
.listsettings li .active {
    flex-grow: 1;
    flex-basis: 5%;
}


.listsettings th {
    text-align: left;
}
.listsettings tr {
    height: 26px;
}
.delete-group {
    background: #f8f4f4;
}
.delete-group .delete-group-button {
    display: none;
}

.delete-group:hover .delete-group-button,
.delete-group .delete-group-button.active {
    display: inline;
}


.bot_switch {
    display: flex;
}
.bot_switch_button {
    border: 2px solid #e4e2e238;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.4em 1em;
    margin: 0 -1px;
    z-index: 9;
    background: #f8f4f4;
}
.bot_switch_button a {
    color: lightgrey;
}
.bot_switch_button:first-child {
    margin-left:0;
}
.bot_switch_button:last-child {
    margin-right:0;
}
.bot_switch_button.active {
    /* border-color: #e4e2e2; */
    z-index: 99;
    box-shadow: 0px -6px 6px rgba(0,0,0,0.1);
}
.bot_switch_button.active a {
    color: grey;
    }
.bot_switch_button a {
    text-decoration: none;
}



.body, .main {
    background: #f8f4f4;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -7vh 15vh rgb(0 0 0 / 50%);
    padding: 1em;
    min-height: 100vh;
}
section.header {
    min-height: 40vh;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
    background-attachment: fixed;
    background-position-y: center;
    background-position-x: center;
}
@media (min-width: 768px) {
    section.header {
        background-position-y: 33%;
    }
}
@media (min-width: 1024px) {
    section.header {
        background-position-y: 40%;
    }
}
@media (min-width: 1920px) {
    section.header {
        background-position-y: 45%;
    }
}
section.header h1 {
    color: white;
    font-size: 48px;
    margin-top: 40vh;
}
.allowed_users {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}
.allowed_users span {
    cursor: pointer;
    background: #eae3e3;
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}
.unsplash_attribution {
    margin: unset;
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(248,244,244,0.5);
    background: #f8f4f4;
    opacity: 0.4;
    font-size: 10px;
    padding: 0.2em 0.5em;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
.language_selector {
    position: absolute;
    top: 0;
    left: 0;
    right: unset;
    padding: 2px 4px;
}
@media (min-width: 1024px) {
    .unsplash_attribution {
        top: unset;
        font-size: 10px;
        align-self: end;
        margin-bottom: -16px;
        opacity: 0.5;
    }
    .language_selector {
        top: 0;
        right: 0;
        left: unset;
    }
}



.bot_navi {
    display: flex;
    /* width: 100%; */
    height: 70px;
    padding: 0;
    border-radius: 50px;
    align-items: center;
    justify-content: space-evenly;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(191,204,203,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 4px solid rgba(150, 200, 200, 0.1);
    margin: 0 10px 20px;
}
.bot_navi span {
    /* background: white; */
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: flex-start;
}
.bot_navi p.description {
    font-size: 12px;
/*    font-weight: bolder;*/
    padding: 0.4em;
    margin: 0;
    display: --webkit-box;
    overflow-y: scroll;
}
.bot_navi p.description, .bot_navi p.description a {
    color: white;
}
.bot_navi img {
    width: 70px;
    height: 70px;
    display: block;
    float: left;
    transition: all 0.3s ease-in-out;
    filter: grayscale(1);
    z-index: 9;
}
.bot_navi span:not(:first-child):not(:last-child) img {
    border-left: 3px solid rgba(150, 200, 200, 0.1);
    border-right: 3px solid rgba(150, 200, 200, 0.1);
}
.bot_navi img:hover {
    width: 76px;
    height: 76px;
    margin: -3px;
    filter: grayscale(0.5);
    z-index: 99;
}
.bot_navi .active {
    flex-grow: 100;
    flex-basis: 33%;
    background: unset;
    min-width: 50vw;
    max-width: 66vw;
    z-index: 999;
}
.bot_navi .active img {
    filter: grayscale(0);
}
@media(min-width: 768px) {
    .bot_navi {
        width: 66vw;
    }
    .bot_navi .active {
        max-width: unset;
        min-width: unset;
    }
}
@media(min-width: 1024px) {
    .bot_navi {
        width: 750px;
        height: 100px;
    }
    .bot_navi img {
        width: 100px;
        height: 100px;
    }
    .bot_navi img:hover {
        width: 110px;
        height: 110px;
        margin: -5px;
    }
    .bot_navi p.description, .bot_navi p.description a {
        font-size: 16px;
    }
}


.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
  margin: 0 auto;
  padding: 1em; /* Horizontal padding is included */
  box-sizing: border-box; /* Padding is included in the width */
  max-width: calc(100% - 2em); /* Prevents horizontal overflow */
}

.box, .fullwidth, .formholder {
    box-shadow: 0 0.25rem 1.875rem rgba(42,53,79,.05);
    border: 1px solid lightgrey;
    padding: 1em;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: scroll;
}

.fullwidth {
    grid-column: 1 / -1;
/*    margin: 1em 0 0;*/
}
.fullwidth:last-child {
    margin-bottom: 80px;
}

/* Larger screens */
@media (min-width: 1024px) {
  .box-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1024px; /* Prevents horizontal overflow */
  }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
  .box-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smaller screens */
@media (max-width: 767px) {
  .box-container {
    padding: 0; /* Remove padding to avoid horizontal scrolling */
    max-width: 100%;
  }
  .box, .fullwidth {
    margin: 0;
    width: calc(100% - 2em); /* Adjust width for smaller devices */
  }
}


.formholder {
    max-width: 950px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
fieldset {
    border-radius: 5px;
    border: 1px solid lightgrey;
    padding: 1em 1.4em;
    margin: 5px 0;
    display: flex;
    flex-direction: column;
}
legend {
    font-size: 12px;
    padding: 0 0.4em;
    opacity: 0.4;
}
input, textarea {
    border: 1px solid lightgrey;
    padding: 0.2em 0.4em;
}
@media(min-width: 368px) {
    fieldset {
        min-width: 300px;
    }
}





table {
  width: 100%;
  table-layout: auto;
}
th, td {
  width: auto;
}
.checkbox-column, td:not(:first-child), th:not(:first-child) {
    min-width: 20px;
    max-width: 20px;
    width: 20px;
    text-align: center;
}
.name-column,
td:first-child,
th:first-child {
  min-width: 100px;
  width: auto;
}



/*
** FLAGS
*/
.flag-container {
    position: absolute;
    /* bottom: 0; */
    right: 5px;
    top: 0;
}
ul.flags {
    display: flex;
    flex-direction: row;
    gap: 0.2em;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: end;
}
li.flag {
    margin: 0;
}
li.flag svg {
    width: auto;
    height: 1em;
    margin: 0;
}
.icon_legend {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 0px;
    max-width: 100%;
    margin: 0;
}

/*
** LEGEND
*/
.row {
    display: flex;
    align-items: center;
    margin: 0;
}

.key {
    margin: 0 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key svg {
    width: 14px; /* Kleinere Icon-Größe */
    height: 14px; /* Kleinere Icon-Größe */
}

.row .role {
    font-size: 14px; /* Kleinere Schriftgröße */
}
