/*@font-face {
    font-family: "nunito";
    src: url("fonts/nunito-variablefont_wght-webfont.woff") format("truetype");
}*/

/*@font-face {
    font-family: "raleway";
    src: url("fonts/raleway-variablefont_wght-webfont.woff") format("truetype");
}*/

.noto-sans-regular {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.noto-sans-bold {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: "Tahoma", "Verdana";*/
    font-family: "Noto Sans", sans-serif;
}

html, body {
    height: 100%;
    overflow: auto;
}

body {
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 10px;
}
  
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #888; 
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
    cursor: default;
}

input::-webkit-date-and-time-value {
    text-align: left;
  }

#block-elements {
    background: #00000050;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

p:empty::before {
    content: attr(data-placeholder);
    opacity: 60%;
}

.button {
    border-radius: 10px;
    border: none;  
    cursor: pointer;
    font-weight: bold;
    filter: brightness(100%);
    transition: filter 0.2s ease-in-out;
}

.button:hover { 
    filter: brightness(115%);
}

.button:active {
	position: relative;
	top: 1px;
}

.popUp {
    width: 40%;
    min-width: 300px;
    background: #5E718B;
    color: #DCDCDC;
    border-radius: 10px;
    padding: 20px;
    z-index: 9;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.7);
    transform: translate(-50%, -50%);
}

.popup-text {
    text-align: start;
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-confirm, .btn-cancel {
    background-color: #B4BFC5;
    border-radius: 5px;
    padding: 16px;
    width: 100%;
    font-size: medium;
    color: black;
}

.btn-cancel{
    background: #D9D9D9;
    margin-left: 10px;
}

#left-side {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    text-align: center;
    transition: height 1s;
    background: #5E718B;
}

#left-side.extended {
    height: 100%;
}

#right-side {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    transition: height 1s, top 1s;
    background: #B4BFC5;
}

#right-side.extended {
    top: 0;
    height: 100%;
}

#right-side .btn-confirm {
    background: #5E718B;
    color: #D9D9D9;
}

#left-side-button {
    height: 100%;
    width: 100%;
    background-color: hsl(215, 19%, 46%);
    border: 0;
    color: #B4BFC5;
    font-size: 400%;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#right-side-button {
    height: 100%;
    width: 100%;    
    background-color: hsl(201, 13%, 74%);
    border: none;
    color: #5E718B;
    font-size: 400%;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s;
}

#new-vehicle-form {
    width: 90%;
    z-index: 20;
}

@media only screen and (max-height: 500px){
    #left-side form, #right-side form {
        height: 90%;
        overflow-y: auto;
    }
}

@media only screen and (min-width: 768px){
    #left-side {
        width: 50%;
        height: 100%;
        transition: width 1s;
    }
    
    #left-side.extended {
        width: 100%;
    }

    #left-side-button:hover {
        background-color: hsl(215, 19%, 51%);
    }
    
    #right-side {
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
        transition: width 1s, left 1s;
    }
    
    #right-side.extended {
        left: 0;
        width: 100%;
    }

    #right-side-button:hover {
        background-color: hsl(201, 13%, 79%);
    }
    
    #left-side-button {
        font-size: 700%;
    }
    
    #right-side-button {
        font-size: 700%;
    }

    #new-vehicle-form {
        width: 60%;
    }
}

@media only screen and (min-width: 1200px){
    #new-vehicle-form {
        width: 45%;
    }
}

@media only screen and (min-width: 1400px){
    #new-vehicle-form {
        width: 40%;
    }
}

@media only screen and (max-width: 1400px){
    #left-side-button {
        font-size: 600%;
    }
    #right-side-button {
        font-size: 600%;
    }
}

@media only screen and (max-width: 1200px){
    #left-side-button {
        font-size: 500%;
    }
    #right-side-button {
        font-size: 500%;
    }
    
}

@media only screen and (max-width: 1000px){
    #left-side-button {
        font-size: 400%;
    }
    #right-side-button {
        font-size: 400%;
    }
}

@media only screen and (max-width: 400px){
    #left-side-button {
        font-size: 300%;
    }
    #right-side-button {
        font-size: 300%;
    }
}

#btn-cancel{
    color:black;
}

#left-side label, #right-side label {
    color: white;
    font-weight: normal;
    letter-spacing: 0.5px;
}

#right-side label {
    color: black;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: start;
}

.form-group label {
    font-weight: bold;
}

.form-group input,.form-group p {
    border-radius: 5px;
    padding: 12px;
    margin-top: 5px;
    border: none;
    background: #f1f1f1;
    font-size: 16px;
}

#new-event-form, #existing-event-form {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (min-width: 768px){
    #new-event-form, #existing-event-form {
        width: 50%;
    }
}

#left-side .horizontal-btns, #right-side .horizontal-btns {
    width: 100%;
}

#left-side .form-group, #right-side .form-group{
    min-width: 100%;
}

#left-side input,#right-side input {
    padding-inline: 15px;
    width: 100%;
    color: black;
}

.form-heading {
    margin-bottom: 40px;
    color: #D9D9D9;
    cursor: default;
}

.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px;
    padding: 8px;
    margin-bottom: 0;
    background: #5E718B;
    color: #DCDCDC;
    border-radius: 15px;
    min-width: 0;
    max-width: 100%;
    z-index: 2;
}

#top-bar-div-left{
    display: flex;
    flex-direction: row;
    align-items: center;
}

#top-bar-div-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding-left: 10px;
}

.event-name-container {
    margin: auto;
    cursor: default;
    padding-inline: 15px;
}

.event-name {
    text-align: center !important;
    min-width: 40px;
    font-size: 26px !important;
    word-wrap: break-word;
    color: #DCDCDC !important;
}

@media only screen and (min-width: 500px){
    .event-name { font-size: 32px !important; }
}

@media only screen and (min-width: 768px){
    .event-name { font-size: 40px !important; }
}

@media only screen and (min-width: 1200px){
    .event-name { font-size: 56px !important; }
}

.top-bar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
}

@media only screen and (min-width: 768px){
    .top-bar-button {
        width: 60px;
        height: 60px;
        border-radius: 30px;
    }
    .top-bar-button svg {
        width: 45px;
        height: 45px;
    }
}

.place-time-info {
    display: none;
}

@media only screen and (min-width: 768px){
    .place-time-info {
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding-inline: 5px;
        cursor: default;
        width: 200px;
    }
}

.place-time-info div>*, .place-time-info .button {
    border-radius: 10px;
    padding: 3px;
    padding-inline: 8px;
    color: #DCDCDC;
    font-size: 20px;
    font-weight: bold;
}

.place-time-info div>p {
    margin-bottom: 2px;
}

input[type=date]::-webkit-calendar-picker-indicator{
    margin-left: -8px;
    cursor: pointer;
}

input[type=time]::-webkit-calendar-picker-indicator{
    margin-left: 2px;
    cursor: pointer;
    color: #DCDCDC;
}

.event-datetime.editable-input {
    width: 128%;
}

.event-datetime.editable-label {
    width: 117%;
}

.event-datetime :hover {
    background: #00000020;
    cursor: pointer;
}

.event-code-copy-button {
    display: flex;
    align-items: center;
    background: none;
    width: fit-content;
    color: black;
}

.event-code-copy-button svg{
    margin-left: 5px;
}

.top-bar-extension {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    top: -30px;
    justify-content: space-between;
    border-radius: 15px;
    background: #B4BFC5;
    color: black;
    margin: 0 10px -30px 10px;
    padding: 10px;
    padding-top: 40px;
    cursor: default;
    justify-content: space-around;
    align-items: center;
}

@media only screen and (min-width: 768px){
    .top-bar-extension {
        display: none;
    }
}

.top-bar-extension > * {
    padding-inline: 10px;
    font-weight: bold;
    font-size: 16px !important;
}

.top-bar-extension input {
    font-size: 16px ;
    text-align: center;
}

.top-bar-extension .event-datetime.editable-input{
    width: 210px;
}

.vehicle-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0px 10px 10px 10px;
    margin-top: 10px;
    cursor: default;
}

.vehicle {
    display: flex;
    flex-direction: column;
    flex: 1 0;
    padding: 15px;
    background: #B4BFC5;
    border-radius: 15px;
}

.vehicle:not(:last-child) {
    margin-bottom: 10px;
}

@media only screen and (min-width: 768px){
    .vehicle-list {
        overflow-x: auto;
        overflow-y: hidden;
        flex-direction: row;
        height: 100%;
        min-height: fit-content;
    }

    .vehicle {
        display: flex;
        flex-direction: column;
        flex: 1 0 350px;
        height: 100%;
        max-width: 450px;
        padding: 15px;
        background: #B4BFC5;
        border-radius: 15px;
    }

    .vehicle:not(:last-child) {
        margin-right: 10px;
    }
}

.vehicle-list h1, .starting-point, .driver-name, .departure-time {
    margin-left: 10px;
    padding-inline: 10px;
    margin-bottom: 20px;
    font-size: 32px;
    width: fit-content;
}

.departure-time.editable-input {
    cursor: pointer !important;
}

.additional-info {  
    font-size: 20px;
    overflow-y: auto;
    margin-left: 10px;
    padding-inline: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    word-wrap: break-word;
    max-height: 96px;
    white-space: pre-wrap;
}

.additional-info.editing:hover {
    background: #00000020;
    cursor: text;
}

.additional-info.editing:focus {
    background: #00000020;
    cursor: text;
}

.seats-availability{
    display: flex;
    margin-bottom: 0 !important;
}

#vacant-seat-count {
    margin-right: 5px;
}

.total-seat-count-container {
    margin-left: 3px;
    width: 100%;
    height: 100%;
}

.total-seat-count {
    font-size: 32px;
    padding-inline: 0px !important;
}

.total-seat-count.editable-input {
    margin: auto;
}
/*
.total-seat-count-container input:invalid {
    border: 2px solid #fe0000 !important;
}
*/
.join-vehicle {
    width: 100%;
    min-height: 50px;
    margin-top: 15px !important;
    background: #5E718B; 
    color: #DCDCDC;
    font-weight: bold;
}



.vehicle-delete-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    background: #D9D9D9;
    border: 3px solid red;
    font-weight: bold;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
}



.vehicle-delete-button svg {
    margin-right: 4px;
}

#vertical-seat-list {   
    display: flex;
    flex: 1 1;
    flex-direction: column;
    overflow-y: auto !important;
    margin-top: 15px;
    max-height: 230px;
    min-height: 50px;
}

#vertical-seat-list:empty {
    min-height: 0;
}

@media only screen and (min-width: 768px){
    #vertical-seat-list {   
        max-height: 100%;
    }
}

.seat-slot {
    flex: 0 0 50px;
    display: flex;
    width: 100%;
}

.seat-slot:not(:last-child) {
    margin-bottom: 10px;
}

.seat-container {
    display: flex;
    width: 100%;
    background: #D9D9D9;  
    color: black;
    border-radius: 10px; 
}

.seat {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    width: 100% !important;
    font-weight: bold;
    font-size: 100%;
    text-align: center;
    
}

.seat.editable-input {
    padding-left: 3px;
    justify-content: center;
}

.seat-delete-button {
    background: #D9D9D9;
    border: 3px solid red;
    flex: 1 0 50px;
    overflow: hidden !important;
    height: 100%;
    margin-left: 10px;
}



#join-car-form {
    width: 40%;
    min-width: 300px;
    background: #5E718B;
    color: #DCDCDC;
    border-radius: 10px;
    padding: 20px;
    z-index: 9;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.7);
    transform: translate(-50%, -50%);
}

#join-car-form input[type=text]{
    width: 100%;
    border-radius: 5px;
    padding: 12px;
    margin-top: 5px;
    border: none;
    background: #f1f1f1;
    font-size: 16px;
}
  
#join-car-form input[type=text]:focus{
    background-color: #ddd;
    outline: none;
}

.horizontal-btns {
    display: flex;
    flex-direction: row;
}

.editable-input {
    cursor: text;
    border-radius: 10px;
    border: none;
    background: none;
    font-weight: bold;
    padding-inline: 10px;
    width: 96%;
    color: black;
}

.editable-input:hover {
    background: #00000020;
}

.editable-input:focus {
    background: #00000020;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    transform: translate(-50%, -50%);
}
  
#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
  
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}
 
@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
  
@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}
  
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}