:root {
    --nav-height: 64px;
    --max-width: 1200px;
  }




@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body{
    font-family: "Barlow", sans-serif !important;
    margin: 0 auto;
}

/* The alert message box */
.alert {
    padding: 0px 20px;
    background-color: #04AA6D;
    color: white;
    font-size: 16px;
    display: none;
    max-height: 0px;
    z-index: 10;
    position: fixed;
    transform: translateX(-50%);
    left: 50%;
    top: var(--nav-height);
  }
  .alert.failed{
    background-color: #f44336;
  }
.alert.active{
    display: block;
}

  .alert i{
    content: "\f058";
    margin-right: 10px;
    font-size: 25px;
  }
  
  /* The close button */
  .closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 50px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  /* When moving the mouse over the close button */
  .closebtn:hover {
    color: black;
  }

.day button{
    display: none;
}

.day button.dev-mode{
    display: block;
    margin: 0 1px 0 1px;
}
.day button.addTile{
    border: 1px dotted black;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
    font-weight: 600;
    background-color: #f2f2f2;
}
.day button.addTile:hover{
    width: 100%;
    cursor: pointer;
    background-color: #d2d2d2;
}

.day button.addTile::before {
    margin-right: 8px;
    content: '\2b'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}

.tile-buttons{
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    font-size: 15px;
}
.tile-buttons button{
    flex-grow: 1;
    border: 1px dotted black;
    text-align: center;
    font-weight: 600;
    height: 45px;
    transition: 0.2s;
    z-index: 1;

}
.tile-buttons button:hover{
    flex-grow: 1;
    border: 1px dotted black;
    text-align: center;
    cursor: pointer;
    background-color: #d2d2d2;
}

.tile-buttons button:nth-of-type(1)::before {
    margin-right: 8px;
    content: '\f062'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
.tile-buttons button:nth-of-type(2)::before {
    margin-right: 8px;
    content: '\f063'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
.tile-buttons button:nth-of-type(3)::before {
    margin-right: 8px;
    content: '\f044'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
.tile-buttons button:nth-of-type(4)::before {
    margin-right: 8px;
    content: '\f2ed'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}

.server-button{
    display: none;
    /* margin-top: 4px; */
    /* align-self: center; */
    /* order: 2; */
}
.server-button.dev-mode{
    display: block;
    /* margin-bottom: 30px; */
}
.server-button button{
    min-width: 120px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    background-color: #f2f2f2;
    color: black;
    transition: 0.3s;
    cursor: pointer;
    border: 1px dotted black;
    padding: 10px;
}



.dev{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 64px auto 0 auto;
    max-width: 1200px;
    
}


.container {
    max-width: var(--max-width);
    margin: var(--nav-height) auto 0 auto;
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
}

#devSwitch{
    text-align: right;
}
#devSwitch::before {
    margin-right: 2px;
    content: '\f121'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
#devSwitch .switch-text{
    margin-right: 12px;
    margin-bottom: 3px;
    margin-left: 0;
    font-weight: 600;
}

.dev a{
    text-decoration: none;
    font-weight: 600;
    order: 1;
    color: black;
    transition: 0.2s;
}
.dev a:hover{
    font-size: 16.5px;
    color: gray;

}
.dev a::before{
    margin-right: 4px;
    content: '\f08b'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}

.weekdays {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.day {
    border: 1px solid black;
    border-radius: 4px;
    margin: 24px 8px 37px 8px;
    text-transform: uppercase;
    flex: 1;
    align-self: flex-start;
    position: relative;
    padding: 8px;
}


.day-name i{
    display: none;
}

.weekend {
    flex-direction: column;
    flex: 1;
}

.weekend .day {
    align-self: normal;
    margin: 24px 8px 8px 8px;
}

#sunday{
    margin-bottom: 24px;
}

.day h3 {
    text-align: center;
    padding: 0px;
    font-weight: 500;
    margin: 0 0 -6px 0;
    font-size: 24px;
}

.tiles {
    margin-top: 10px;
    font-size: 15px;
    line-height: 20px;
}

.tiles strong{
    margin-bottom: 4px;
    font-weight: 600;
}

.tile {
    padding: 12px;
    margin: 4px 0 0 0;
    border-radius: 4px;
    position: relative;
    color: white; /* Default color for tile text */
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

.tile .info {
    position: absolute;
    bottom: 12px; /* Position tooltip icon at bottom */
    right: 12px; /* Position tooltip icon on the right */
    cursor: pointer;
}

.tooltip {
    visibility: hidden;
    width: 248px; /* Stała szerokość */
    border-radius: 6px;
    padding: 11px 16px;
    position: absolute;
    z-index: 1;
    bottom: 0%; /* Ustawienie tooltipa na połowie wysokości .tile */
    right: 0; /* Ustawienie tooltipa przy prawej krawędzi .tile */
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: white;
    color: black;
    box-shadow: 4px 5px 5px #00000014;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: left;
    transform: translate(-10%, 0%);
    text-transform: none;
}




.tile .info:hover .tooltip {
    visibility: visible;
    opacity: 0.97;
}

.info i{
    font-size: 24px;
    /* color: #ffffff; */
    opacity: 60%;
    position: absolute;
    bottom: 0px;
    right: 0;
}

/* Popup form */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    margin-top: var(--nav-height);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border: 1px solid #888;
    width: 80%;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
    max-width: 40%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 50px;
    font-weight: bold;
    margin-right: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

input[type=text] {
    border: none;
    box-sizing: border-box;
    font-size: 24px;
    width: 100%;
    }
input[type=text]:focus {
    border: none;
    outline: none;
    box-sizing: border-box;
    }
.input-color{
    margin: -8.5px 0px;
}
.input-color, .input-switch{
    display: flex;
    justify-content: space-around;
    align-items: center;    
}
.input-switch .switch-text{
    flex-grow: 1;
    margin-left: 24px;
}
.input-switch .switch{
    margin-right: 16px;
}
input[type=color]{
    appearance: none;
    background-color: transparent;
    width: 35px;
    height: 35px;
    border: none;
    cursor: pointer;
    margin-right: 16px;
}
input[type=color]::-webkit-color-swatch{
    border-radius: 50%;

}
.input-color label{
    text-align: center;
    flex-grow: 1;
    text-align: left;
    margin-left: 24px;
}
.input-time{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}
#startTime, #endTime, .fa-arrow-right{
    flex-grow: 1;
    text-align: center;
}
input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Remove the spin buttons (up/down arrows) in WebKit browsers */
input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


#startTime{
    margin-left: 24px;
    border: none;
    outline: none;
    font-size: 30px;
    cursor: text;
    background-color: white;

}
#endTime{
    margin-right: 24px;
    border: none;
    outline: none;
    font-size: 30px;
    cursor: text;
    background-color: white;


}

.input-time::before {
    content: '\f017'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
.input-color::before {
    content: '\f55d'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
#textSwitch::before {
    content: '\f031'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
#toolSwitch::before{
    content: '\f05a'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}

#hexColor{
    width: 7.5ch;
}
.hex-color{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hex-color label{
    flex-grow: 1;
    margin-left: 24px;
}

.hex-color::before{
    content: '\#'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}


hr{
    margin: 18px 0px;
}
textarea{
    padding: 10px;
    resize: none; /* Wyłącza możliwość ręcznego zmieniania rozmiaru */
    overflow: hidden; /* Ukrywa pasek przewijania */
    font-size: 16px;
    outline: none;
    border: none;
}
textarea:focus{
    outline: none;
    border: none;
}
textarea:disabled{
    background-color: white;
}

/* Textarea styles */
textarea {
    width: calc(100% - 20px); /* Full width of form minus padding */
    margin-top: 8px;
    padding: 8px;
    box-sizing: border-box;
}

form{
    padding: 20px 20px 0 20px;
}
.form-nav{
    background-color: #f2f2f2;
    display: flex;
    justify-content: space-around;
}
.form-nav button{
    outline: none;
    border: none;
    width: 100%;
    padding: 20px;
    cursor: pointer;
}
.form-nav button:hover{
    background-color: #000000c9;
    transition: 0.3s;
    color: white;
}
.form-nav button:nth-of-type(1){
    border-right: 0.1px solid rgba(0, 0, 0, 0.76);
}
.form-nav button:nth-of-type(2){
    border-left: 0.0px solid rgba(0, 0, 0, 0.76);
}

.header{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header h4{
    font-size: 14px;
    line-height: 20px;
    margin: 48px 0 0 0;
    text-transform: uppercase;
    font-weight: 500;
}
.header h2{
    font-size: 40px;
    line-height: 30px;
    margin: 12px 0 12px 0;
    text-transform: uppercase;
}

h6{
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 80px 0;
    text-align: center;
    order: 1;
}
h6::before {
    margin-right: 8px;
    content: '\f017'; /* Unicode ikony zegara (Font Awesome) */
    font-family: 'Font Awesome 6 Free'; /* Odpowiednia rodzina fontów */
    font-weight: 900; /* Grubość fontu, np. dla Font Awesome */
}
.header hr{
    text-align: center;
    margin: 26px 0 0 0;
    width: 8%;
}



/* Styl dla urządzeń mobilnych */
@media (max-width: 768px) {
    body{
        margin: 0 auto;
    }
    .container {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        /* width: 100%; */
        overflow-x: hidden;
        margin: var(--nav-height) 16px 40px 16px;
    }

    .weekdays {
        display: flex;
        flex-direction: column; /* Zmieniamy kierunek flex na kolumnowy */
        padding: 0;
    }

    .day {
        width: 100%; /* Ustawiamy szerokość na 90% dla lepszego wyśrodkowania */
        box-sizing: border-box; /* Upewniamy się, że padding i border są uwzględnione w szerokości */
        margin: 0;
        border: none;
        padding: 0;
        display: none;
    }
    .day.active{
        display: block;
    }

    .day h3{
        font-weight: 500;
        line-height: 30px;
        padding: 4px 0;
        font-size: 21px;
        margin: 21px 0 16px 0;
    }

    .day-name{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .day-name i{
        display: var(--fa-display,inline-block);
        cursor: pointer;
        font-size: 24px;
    }

    .weekend .day {
        margin: 0;
    }

    #sunday{
        margin-bottom: 0;
    }


    #tileFormContainer{
        padding: 0;
    }

    .modal-content{
        width: 100%;
        margin: 0;
    }

    .tooltip{
        width: 248px;
    }

    .header hr{
        text-align: center;
        margin: 0 0 32px 0;
        width: 30%;
    }

    .header h4{
        margin: 24px 0 0 0;
    }

    .header h2{
        font-size: 28px;
        margin: 12px 0 12px 0;
    }

    h6{
        order: 0;
        margin: 0;
    }

    .form-nav{
        position: fixed;
        z-index: 1;
        bottom: 0;
        width: 100%;
    }
    
    .modal-content{
        height: 100%;
        max-width: 100%;
    }

    .alert{
        width: 100%;
    }



    .dev{
        padding: 0 20px;
    }

    .tile-buttons button{
        font-size: 12px;
    }
    

}



/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */
/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */
/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */
/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */




/* Formularz nawigacji */
#navFormContainer {
    z-index: 2;
}

#navForm button {
    padding: 8px;
    border: 1px dotted black;
    text-align: center;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

#navForm button:hover {
    background-color: #d2d2d2;
}

#navForm button::before {
    margin-right: 8px;
    content: '\2b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Przyciski edycji i zapisu nawigacji */
.nav-edit {
    text-align: right;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

#save-nav-btn {
    outline: none;
    border: none;
    width: 100%;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

#save-nav-btn:nth-of-type(2) {
    border-left: 0 solid rgba(0, 0, 0, 0.76);
}

#save-nav-btn:nth-of-type(1) {
    border-right: 0.1px solid rgba(0, 0, 0, 0.76);
}

#save-nav-btn:hover {
    background-color: #000000c9;
    color: white;
}



.nav-dev-mode{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: var(--nav-height) auto 0 auto;
    max-width: var(--max-width);

}

.nav-dev-mode button {
    display: none;
    border: 1px dotted black;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
    font-weight: 600;
    background-color: #f2f2f2;
    /* width: 19%; */
    text-align: justify;
    margin-top: 3px;
}


#edit-nav-btn.dev-mode, #edit-footer-btn.dev-mode, #alert-btn.dev-mode {
    display: inline-block;
}

.nav-dev-mode button:hover {
    background-color: #d2d2d2;
}

.nav-dev-mode .server-button:hover{
    background-color: #ffffff;
    color: #2196F3;
    border: 1px dotted #2196F3;
}



#edit-nav-btn::before {
    margin-right: 8px;
    content: '\f0ca';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
#edit-footer-btn::before {
    margin-right: 8px;
    content: '\f54b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
#alert-btn::before {
    margin-right: 8px;
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.server-button::before {
    margin-right: 8px;
    content: '\f0ee';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}


/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */
/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */
/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */
/* NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA NAWIGACJA */



/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */
