@font-face {
    font-family:"Ubuntu";
    src: url('fonts/Ubuntu-Regular.ttf'); 
	font-display: fallback;
}
@font-face {
    font-family: "Segoe UI";
    src: url('fonts/Segoe UI.ttf');
	font-display: fallback;
}
@font-face {
    font-family: "Roboto";
    src: url('fonts/Roboto-Regular.ttf'); 
	font-display: fallback;
}

html, body {
    font-family: "Roboto", Sans-serif;
    padding: 0px;
    margin: 0px;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    display:flex; 
    flex-direction:column;
}
.bg-green       { background-color: darkgreen; color: white;}
.bg-main-color  { background-color: #283B1C; color:white; }
.bg-red          { background-color: red; color: white;}
.bg-alt-color   { background-color: #937943 !important; color: white;}
.bg-gray        { background-color: lightgrey;}
.main-color     { color: #937943 !important; }
.gray           { color: gray !important; }
.green          { color: green !important;}
.red            { color: red !important; }

.content { 
    margin: auto;
    margin-top: 0px; 
    max-width: 770px;
}

.button-tile {
    min-width: 100px;
    min-height: 100px;
    padding: 15px 15px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;   
}
.button {
    min-width: 100px;
    padding: 5px 15px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.input {
    width: calc(100% - 20px);
    padding: 10px;
}
.cursor {
    cursor: pointer;
}
.post-editor {
    background-color:white; 
    width: calc(100% - 20px);
    padding:10px;
}

.edit-group {
    display: none;
    border:1px solid gray;
    border-radius: 15px;
    padding: 25px;
}

.info-frame {    
    color:black; 
    background-color:white; 
}

.error-frame {
    color:white; 
    background-color:darkred; 
}

.loading-frame {
    color:black; 
    z-index:200; 
    font-size:2.5em;
    background-color:white;
}
.modal-background {
    background-color: black; 
    position:fixed; 
    top:0px; 
    left:0px; 
    height:100%; 
    width:100%; 
    opacity: 0.6; 
    z-index:100;
}

.modal-frame {
    position:fixed; 
    top: calc(50% - 150px); 
    left:0px; 
    width:100%; 
    z-index:200; 
    text-align:center;
    padding: 50px 0px;
}

.inline { display: inline-block; }
.p5 { padding:5px; }
.p10 { padding:10px; }
.p15 { padding:15px; }
.p20 { padding:20px; }
.p30 { padding:30px; }
.small { font-size: 14px; }
.center { text-align: center; }
.bold { font-weight: bold;}

.w50 { width: 50px;}
.w100 { width: 100px;}
.w200 { width: 200px;}

.f12 { font-size: 12px;}
.f15 { font-size: 15px;}
.f20 { font-size: 20px;}
.f25 { font-size: 25px;}

.group-title {
    font-size:32px;
    margin-top:25px;
    margin-bottom: 5px;
    font-weight: bold;
}

.right-al {
    text-align: right;
}

h1 {
    text-align: center;
    font-size: 50px;
    margin: 30px;
}

.menu-admin {
    display: grid;
    grid-template-columns: 525px 100px 200px;
    width: 800px;
    grid-row-gap: 25px;
    color: #937943 !important;
    font-size: 20px;
    font-family: Sans-serif;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: rgb(14, 112, 44);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px rgb(14, 112, 44);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(30px);
    transform: translateX(30px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

.menu-elem-admin { float: left; width: 525px; overflow: hidden; white-space: nowrap }
.menu-elem-admin:after { content: " ................................................................................................................................" }

.menu {
    display: grid;
    grid-template-columns: 700px 100px;
    width: 800px;
    grid-row-gap: 25px;
    color: #937943 !important;
    font-size: 20px;
    font-family: Sans-serif;
}

.menu-elem { float: left; width: 700px; overflow: hidden; white-space: nowrap }
.menu-elem:after { content: " ................................................................................................................................" }

.footer {
    position: fixed;
    left: 0px;              
    right: 0px;
    bottom: 0;               
    background-color: #283B1C;
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    padding-bottom: calc(8px + constant(safe-area-inset-bottom));
    z-index: 1000;   
}

.header-bar {
    display: flex;
    justify-content: space-between; /* testo a sx, icone a dx */
    align-items: center;
}

.header-title {
    flex: 1;
    text-align: left;
}

.home-btn {
    margin: 0 15px;
    font-size: 24px;
    color: #F7E9C2;
}

.home-btn:hover {
    color: #fff;
}

.lang-flag img {
    display: block;
}

.header {
    background-color: #283B1C; 
    width:calc(100% - 30px); 
    color: #F7E9C2; 
    padding:15px; 
    font-size: 25px;
    position:fixed; 
    top:0px;
    z-index: 100;
}

.header-bottom {
    padding-top: 70px;
    position: relative;
}

.allergens {
    color: black !important;
}

.cat-header {
    display: grid; 
    grid-template-columns: 250px auto;
    grid-column-gap: 15px;
}

.dashboard-header {
    display: grid; 
    grid-template-columns: 150px auto;
    grid-column-gap: 30px;
}
.dashboard-header-title {
    font-size: 35px; 
    font-weight: bold; 
}
.dashboard-header-content {
   font-size: 16px !important;
}

.item-details {
    display: grid; 
    grid-template-columns: 300px auto; 
    row-gap: 20px;
}

.tile-cat {
    width: 350px; 
    height:250px; 
    border:1px solid black;
    text-align: center; 
    margin: auto; 
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: inline-flex;
    align-items: flex-end;
    margin-right: 30px;
    margin-bottom: 30px;
    border-radius: 50px;
    box-shadow: 5px 5px 10px -5px #000000;
}
.tile-cat-title {
    padding: 10px; 
    background-color:rgba(0, 0, 0, 0.75); 
    width: 100%; 
    color:white;
    font-size: 18px;
    font-weight: bold;
}
.subcat-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    height: 120px;
    width: 120px;
}

.sub-category {
    margin-right: 30px; 
    margin-bottom: 30px;
    width:120px;
    text-align: center;
    vertical-align: top;
}
.cat-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    height: 150px;
    width: 150px;
}

@media only screen and (max-width: 800px) { 
    .content { 
        margin: auto;
        margin-top: 0px; 
        width: calc(100% - 25px);
        padding:20px;
    }

    .dashboard-header-content {
        font-size: 13px !important;
     }
    
    .menu {
        display: grid;
        grid-template-columns: 650px 100px;
        width: 750px;
        grid-row-gap: 25px;
        color: #937943 !important;        
    }
    .menu-elem { float: left; width: 650px; overflow: hidden; white-space: nowrap }
    .menu-elem:after { content: " ................................................................................................................................" }

}