/*CSSed constants and predefined... idk types of shit*/

:root{
    --main-background-old: rgb(113, 114, 148);
    --main-background: rgb(14, 28, 99);
    --main-theme: rgb(24, 83, 206);
    --active-theme: rgb(1, 49, 82);
    --calendar-theme: rgb(219, 244, 152);
    --calendar-theme-superior: rgb(101, 252, 85);
    --active-superior: rgb(248, 130, 34);

    --fresh-theme: rgb(212, 255, 20);

    --event-theme: rgb(114,255,90);

    /*--main-theme: rgb(0,0,0);*/

}
*{
    font-family: 'Noto Sans', sans-serif;
}
body{
    margin: 0px;
    border: 0px;
    padding: 0px;
    background-color: var(--main-background);
}

.big{
    font-size: 2vw;
}

.bigger{
    font-size: 3vw;
    
}
.bold1{
    font-weight: 500;
}
.bold2{
    font-weight: 700;
}

span.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(255, 255, 255, 0.7);
  }

/*CSSING top bar which is called navigator in this komor's page*/
#navigator{
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--main-theme);
    box-shadow: 2px -1px 28px 9px rgba(66, 68, 90, 0.7);
}
.navigatorCell{
    
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    user-select: none;
    margin: 5px;
    padding: 5px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    cursor: pointer;
    transition: 0.3s;
    word-break: keep-all;
    font-size: 120%;
}
.navigatorCell>i{
    color: var(--active-superior);
    text-shadow: -1px 0px 1px black;
}
.navigatorCell:hover{
    background-color: var(--active-theme);
    box-shadow: 0px 0px 10px 6px rgba(74, 112, 218, 0.7);
    color: white;
}
.Side{
    display: flex;
    width: 35%;
    justify-content: space-evenly;
    align-items: center;
}
#MainTab{
    font-weight: 600;
    align-self: center;
    transition: background-color 10s, box-shadow 10s;
    font-size: 3vw;
}
#MainTab:hover{
    background-color: var(--active-superior);
    transition: 0.3s;
}

/*CCSING the calendar...*/

#calendar{
    width: 90%;
    display: flex;
    flex-direction: column;
    background-color: rgba(190, 188, 255, 0.498);
    box-shadow: 9px -3px 20px 6px #0000009e;
    margin-top: 10vh;
    margin-bottom: 5vh;
    padding: 1vmin;
    border-radius: 3vmin;
    overflow: hidden;
    
    

}

.calendarRow{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
    margin-top:0.5vmin;
    margin-bottom:0.5vmin;
    box-sizing: border-box;
    width: 100%;
    box-sizing: border-box;
}
.calendarCell{
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
    flex-direction: column;
    
    box-sizing: border-box;
    background-color: var(--calendar-theme);
    background: linear-gradient(325deg, var(--main-background) 50%, transparent);
    border-bottom: 0.5vmin solid var(--main-background);
    background-size: 200%;
    background-position: 50% -10%;
    /*border: 0.2vmin solid rgba(190, 188, 255, 0.498);*/
    margin: 0.3vmin;
    border-radius: 0.5vmin;
    /*box-shadow: black inset 0px 0px 2.5vmin -1vmin; /* efekt przycisku - ciekawy*/ 
    box-shadow: 0.1vmin 0.1vmin 1vmin 0.2vmin black;
    transition: 0.1s ease-out;
    cursor: pointer;
    user-select: none;
    overflow: auto;
    /*border-radius: 20px;*/
}
.thisDay{
    border-radius: 5px;
    
    box-sizing: border-box;
    
    background-color: rgb(150, 102, 223)
}
.thisDay > .calendarCellHeader > .calendarCellHeaderDate{
    background-color: var(--active-superior);

}
.thisDay > .calendarCellHeader{
    background: linear-gradient(135deg, var(--calendar-theme-superior), var(--main-background));
}

.calendarCell:hover{
    background-color: var(--active-superior);
    background-position: 0%;
    border-bottom-color: var(--active-superior);
    box-sizing: border-box;
}
.calendarRow:last-of-type{
    margin-bottom: 0;
}
.calendarRow:last-of-type .calendarCell:last-child{
    border-bottom-right-radius: 1.5vmin;
    
}
.calendarRow:last-of-type .calendarCell:first-child{
    border-bottom-left-radius: 1.5vmin;
    
    
}

.disabledCell{
    background-color: var(--main-background-old);
    opacity: 0.5;
}
.disabledCell:hover{
    background-color: rgb(149, 148, 162);
}

.calendarCellHeader{
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1vw;
    text-shadow: 0.1vw 0.1vh 0.2vmin black;
    padding: 5%;
    box-sizing: border-box;
    border-bottom: 0.2vmin solid black;
    background-color: rgb(80, 12, 241, 56%);
    box-shadow: 0.2vmin 0 1vmin 0 black;
    
}
.calendarCellHeaderDate{
    background-color: rgb(130, 88, 170);
    padding: 3px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 1vmin 0vmin black;
    width: 25%;
    
}
.calendarCellHeaderInfo{
    background-color: rgba(255, 0, 0, 0.858);
    /*margin-right: 10%;*/
    padding: 3px;
    border-radius: 5px 5px 5px 5px;
    color: white;
    font-weight: 500;
    display: flex;
    /*justify-content: center;*/
    justify-content: space-evenly;
    box-shadow: 0 0 1vmin 0vmin black;
    width: 25%;
}
.calendarCellContex{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 1vh;
    padding-top: 1vh;
    padding-bottom: 0.5vh;
}

.calendarProposition{
    background-color: var(--active-superior);
    flex-shrink: 100;
}

.calendarCellBar{
    transition: color 0.2s ease-out, background-position 0.3s ease-out, filter 0.3s ease-out;
    position: relative;
    /*overflow: hidden;*/
    background-position: 250%;
    background-size: 150%;   
    margin: 0.2vmin;
    padding: .75vmin;
    border-radius: 1vmin;
    box-sizing: border-box;
    word-break: break-all;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0.2vmin 0.2vmin 0.7vmin 0.2vmin rgba(0, 0, 0, 0.5), inset 0 0 1vmin 0.1vmin rgba(0, 0, 0, 0.5), 0 0 0.5vmin 0.05vmin white;
    color: white;
    /*border: 2px solid rgba(255, 255, 255, 0.508);*/

    
    
}
.calendarCellBar:hover{
    text-shadow: 0.1vw 0.1vh 0.2vmin var(--active-superior);
    background-size: 200%;
    background-position: 0px;
    /*filter: contrast(1.5);*/
}

.nameOfDay{
    
    height: 3vmin;
    word-break: break-all;
    background-color: var(--calendar-theme-superior);
    cursor:alias;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    color: white;
    background-position: 10% 10%;
    overflow: hidden;
    

}
.nameOfDay:hover{
    background-color: var(--active-superior);
    font-size: calc(120%);
}

.MonthButton{
    padding: 5px;
    margin: 0px;
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--active-theme);
    transition: 0.2s ease-out;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
}

.MonthButton:hover{
    background-color: var(--active-superior);
}

.MonthRow{
    background-color: rgb(255, 255, 255);

    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    padding: 2vw;
    border-bottom: 1vh black solid;
    margin-bottom: 5vh;
    border-radius: 2vmin 2vmin 0 0;
    box-shadow: inset 0 0 0.5vmin;
    border: 1vh solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, var(--main-theme), var(--event-theme));
    border-top: 0;
    border-left:0;
    border-right:0;

}
#CurrentMonth{
    display: flex;
    align-items: center;
    font-size: 2vw;
    font-weight: 300;
}

/*CSSING Extended version of event (eventPage)*/
.EventWrapper{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    
}
.EventBackground{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d1e8198;
    z-index: 60;
}

#EventContainer{
    width: 80%;
    /*height: 80%;*/
    box-shadow: 0.1vw 0.1vh 1vmin 1vmin rgba(0, 0, 0, 0.5);
    background-color: rgb(44, 44, 69);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 69;
}
#EventHeader{
    font-weight: 100;
    font-size: 4vw;
    color: white;
    box-sizing: border-box;
    padding: 2vmin;
    width: 100%;
    
    background-color: rgb(47, 33, 194);
    border-bottom: 0.2vh solid white;
    box-shadow: 3px 0px 20px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#EventHeaderClose{
    
    display: flex;
    align-items: flex-start;
}
#EventContex{
    box-sizing: border-box;
    height:  100%;
    margin: 2vmin;
    padding: 0.5vmin;
    display: flex;
    flex-direction: row;
    gap: 4vmin;
    justify-content: stretch;
    
}
#EventList{
    
    box-shadow: 3px 3px 20px 5px rgba(0, 0, 0, 0.5);
    border-radius: 1vmin;
    width: 35%;
    display: flex;
    flex-direction: column;
    background-color: #6fbee6;
    height: 65vh;
    box-sizing: border-box;
    overflow: auto;
    
}


.EventItem{
    font-size: 2vmin;
    cursor: pointer;
    background-color: var(--event-theme);
    padding: 1vmin;
    margin: 1vmin;
    border-radius: 1vmin;
    box-shadow: 3px 3px 10px 2px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    transition: 0.1s ease-in-out;
}
.EventItem:hover{
    background-color: var(--calendar-theme-superior);
}
.EventItem:active{
    transform: scale(1) translateY(0.5vh);
    filter:hue-rotate(-20deg) contrast(2);
}
#EventDescription{
    box-shadow: 3px 3px 20px 5px rgba(0, 0, 0, 0.5);
    border-radius: 1vmin;
    font-size: 3vmin;
    overflow: auto;
    width: 100%;
    background-color: rgb(8, 38, 53);
    box-sizing: border-box;
    color: white;
    justify-content: space-between;
    height: 65vh;

}

.EventPlaceholder{
    box-sizing: border-box;
    text-align: center;
    animation-name: eventDescriptionFloat;
    animation-timing-function: cubic-bezier(.67,-0.01,.38,.99);
    animation-iteration-count: infinite;
    animation-duration: 4s;
    animation-delay: 0.5s;
    
}
.EventAddButton{
    background-color: var(--active-superior);
    font-weight: 500;
    margin-top: 2vh;
    border-top: 5px solid black;
    border-bottom: 5px solid black;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
    padding: 5px;
}
.EventAddButton:hover{
    background-color: var(--active-theme);

}

#EventDescriptionText{
    padding: 2vmin;
    overflow-y: auto;
}
#EventDescriptionContex{
    height: 90%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}
#EventDescriptionHeaderSubject{
    
    display: flex;
    align-items: center;
    /*wkurwe za dlugie*/
    animation-name: fireFlicker;
    animation-iteration-count: infinite;
    animation-duration: 2s;
}
#EventDescriptionHeaderSubject > .CCB-Category{
    transition: text-shadow 0.5s ease;
    font-size: 90%;
}
#EventDescriptionHeaderSubject > .CCB-Category::first-letter{
    font-size: 120%;
}
#EventDescriptionFooter{
    border-top: 0.2vmin solid white;
    display: flex;
    justify-content: space-between;
    padding: 1vmin 2vmin 1vmin 2vmin;
    font-size: 1.5vmin;
}
#EventDescriptionHeader, #EventListHeader, #EventStatusHeader{
    text-align: center;
    font-size: 2vmin;
    transition: text-shadow 0.5s ease;
    display: flex;
    align-items: center;
    height: 10%;
    box-sizing: border-box;
    justify-content: space-evenly;
    background-color: var(--active-theme);
    border-bottom: 0.2vmin solid white;
    font-weight: 500;
    text-shadow: 0px 0px 2px black,0px 0px 2px black, 0px 0px 2px black;
    color: white;
}
#EventStatusHeader{
    height: 6.5vh;
    border-radius:1vmin 1vmin 0 0 ;
}

.EDF_Side{
    font-size: 75%;
}
.Button{
    font-size: 2vmin;
    
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 1vmin;
    cursor: pointer;
    padding: 1vmin;
    transition: background-color 0.2s ease-in, transform 0.1s ;
}

.Close{
    background-color: rgb(243, 59, 46);
}

.Close:hover{
    background-color: red;
}
.Close:active, .Submit:active{
    transform: scale(1) translateY(5px);
    filter:hue-rotate(-20deg) contrast(2);
}
.Submit{
    background-color: var(--main-theme);
}
.Submit:hover{
    background-color: var(--active-superior);
}
/*CCSING context of the page*/

#fullPage{
    margin: 0px;
    border: 0px;
    padding: 0px;
    
    background-color: rgb(31, 108, 82);
    background-color: rgb(54, 158, 219);
    background-color: var(--main-background);
}

#mainPage{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20vh;
}
#context{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.legendFragment{
    margin-bottom: 2vh;
    border: 5px solid var(--main-theme);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    background-color:rgba(190, 188, 255, 0.498);
    padding: 15px;
    box-shadow: 9px -3px 20px 6px #00000080;
    border-radius: 15px;
    max-width: 80%;
}
.legendHeader{
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 30px;
    padding-bottom: 2vmin;
}
.legendElement{
    box-shadow: 0px 0px 4px 5px var(--active-theme);
    background-color: var(--active-theme);
    gap: 10px;
    transition: 0.2s ease-in;
    color: white;
}
.legendElement:hover{
    box-shadow: 0px 0px 4px 5px var(--active-superior);
    background-color: var(--active-superior);
    
}
.legendElement>div.CCB-Category:hover{
    transform: scale(1.5) rotate(15deg);
}
.legendContex{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    flex-wrap: wrap;
    gap: 20px
}
.legendElement, .legendContex{
    margin: 5px;
    align-items: center;
    display: flex;
    flex-direction: row;
}
.loginNotification{
    
    display: flex;
    box-sizing: border-box;
    padding: 10px;
    padding-top: 50px;
    padding-bottom: 30px;
    height: 140px;
    width: 200px;
    font-weight: 200;
    background-image: url("../media/dymek.svg");
    background-size: 200px ;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}



/*Funny slider*/
.PageButton{
    display: flex;
    align-items: center;
    background-color: #6fbee6;
    padding: 20px;
    border-radius: 20px;
}
.ButtonText{
    font-size:20px;
    padding-left: 20px;
    
}
.switch {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 34px;
    border: 2px solid black;
    
    border-radius: 26px;
  }
  
  .switch input { 
    width: 0;
    height: 100;
    opacity: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: #ccc;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  
  input:checked + .slider:before {
    transform: translateX(50px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 26px;
  }

.zastepstwa{
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    background-color: rgba(190, 188, 255, 0.498);
    border: 5px solid var(--main-theme);
    padding: 1vmin;
    border-radius: 15px;
    margin: 20px;
    margin-top: 15vh;
    
}
.zastepstwa > iframe{
    box-sizing: border-box;
    margin: 20px;
    height: 75vh;
    width: 95%;
    text-align: center;
    background-color: rgb(205, 205, 205);
    filter: invert();
    border-radius: 2vmin;
    box-shadow: 1vmin 1vmin 5vmin 1vmin rgb(255, 255, 255);
    border: 1px solid black;
}


span.labelText{
    width: 20%;
    display: block;
}
div.EventCreateInput{
    margin-bottom: 1%;
    overflow-y: unset;
}
div.EventCreateInput > label{
    display: flex;
    flex-direction: column;
    gap: 5%;
}
div.EventCreateInput > label > input{
    padding: 1vmin;
    border-radius: 1.2vmin;
    border: none;
    margin-bottom: 2vh;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 0px 10px 2px black;
    font-size: 3vmin;
    
}
div.EventCreateInput > label > div.labelText{
    font-size: 80%;
    margin-left: 2%;
    margin-bottom: 1%;
    
    
}
div.EventCreateInput > label > input:focus{
    border: none;
    outline: none;

    background-color: rgb(181, 250, 78);
    box-shadow: 0px 0px 10px 2px black, 0 0  1.5vmin 0vmin rgb(190, 239, 115);
    
    
}

div.EventCreateRight, div.EventCreateCategory{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: center;
    
    justify-content: center;
    box-sizing: border-box;

}

div.EventCreateCategory{
    background-color: var(--main-theme);
    padding: 0.5%;
    border-radius: 2vmin;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding-right: 2%;
    transition: ease-in 0.2s;
    margin: 1vmin;
    
}
div.EventCreateCategory > div.legendText{
    font-size: 80%;
}

div.SelectedCategory{
    background-color: var(--active-superior);
}

div.EventCreateFlex {
    display: flex;
    gap: 5%;

}
div.EventCreateBot{
    padding-top: 2vmin;
}
div.EventCreateLeft{
    width: 75%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: space-around;
}
div.EventCreateRight{
    background-color: var(--main-background);
    border-radius: 2vmin;
    box-shadow: 0 0 2vmin 0.2vmin black;
}

div.EventStatus{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 65%;
    box-shadow: 3px 3px 20px 5px rgba(0, 0, 0, 0.5);
    border-radius: 1vmin;
}

div.EventStatusContext{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5vmin;
    width: 100%;
    background-color: rgb(8, 38, 53);
    padding: 5vmin;
    color: white;
    border-radius: 0 0 1vmin 1vmin;
    
    
    font-size: 3vmin;
    box-sizing: border-box;
    
}
div.EventStatusBar {
    box-sizing: border-box;
    border: 2vmin solid var(--main-background);
    width: 80%;
    height: 10%;

}
div.EventStatusBar > div {
    height: 100%;
    width: 0%;
    background-color: var(--active-superior);
    transition: 0.5s ease;
}

div.BotLabel{
    margin-bottom: 1vmin;
    display: flex;
    align-items: center;
    justify-content: space-around;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

div.DisabledLink{
    text-decoration: line-through;
    background-color: gray;
    font-style: italic;
}

div.ChangeLogElement{
    padding: 1vmin;
    margin: 5vmin;
    margin-bottom: -2vmin;
    border-radius: 1vmin;
    background-color: var(--main-theme);
    max-width: 90vh;
    font-size: 2vmin;
    

}

div.ChangeLogContex{
    padding: 2vmin;
    margin: 2vmin;
    border-radius: 1vmin;
    background-color: var(--active-theme);
    width: 60vw;
    font-size: 125%

}
li{
    padding: 1vmin;
}
/*Animations!*/



@keyframes eventDescriptionFloat {
    0%{margin-top: 0%;transform:  rotateX(0deg); }
    50%{margin-top: 40%; transform:  rotateX(20deg);}
}

@keyframes fireFlicker {
0%, 100% { 
        text-shadow: 
            0 -1px 3px #fff,  
            0 -2px 6px #FF3,  
            0 -6px 12px #F90,  
            0 -10px 20px #C33; 
    }

    50% { 
        text-shadow: 
            0 -2px 6px #fff,
            0 -4px 12px #FF3, 
            0 -8px 16px #F90, 
            0 -12px 24px #C33; 
    }
}
@keyframes ripple {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }

  @media only screen and (max-width: 1000px) 
  {
    #calendar{width: 100%;}
    #EventContainer{width: 100%;}
  }