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

:root{
    --main-background-old: rgb(113, 114, 148);
    --main-background: rgb(54, 158, 219);
    --main-theme: rgb(255, 251, 184);
    --active-theme: rgb(247, 204, 49);
    --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: 20px;
}

.bigger{
    font-size: 40px;
    
}
.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;
}
.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(255, 219, 194, 0.7);
    color: white;
}
.Side{
    display: flex;
    width: 35%;
    justify-content: space-evenly;
    align-items: center;
}
#MainTab{
    font-weight: 600;
    align-self: center;
    transition: font-shadow 10s, background-color 10s;
}
#MainTab:hover{
    background-color: var(--active-superior);
    transition: 0.3s;
}

/*CCSING the calendar...*/

#calendar{
    width: 90%;
    display: flex;
    flex-direction: column;
    background-color: aliceblue;
    box-shadow: 9px -3px 20px 6px #59e86b9e;
    margin-top: 10vh;
    margin-bottom: 5vh;
    

}

.calendarRow{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
    /*border: 2px solid black;*/
    width: 100%;
    margin: 1px;
}
.calendarCell{
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
    flex-direction: column;
    min-height: 5vh;
    box-sizing: border-box;
    background-color: var(--calendar-theme);
    border: 2px solid rgb(255, 255, 255);
    margin: 1px;
    transition: 0.2s ease-out;
    cursor: pointer;
    user-select: none;
    
}
.thisDay{
    border-radius: 5px;
    margin: 0px;
    box-sizing: border-box;
    border: 3px solid rgb(118, 132, 255);
    background-color: rgb(150, 102, 223)
}

.calendarCell:hover{
    background-color: var(--active-superior);
    border-radius: 1vh 3vh 0 0;
}

.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;
    
}
.calendarCellHeaderDate{
    background-color: rgb(130, 88, 170);
    padding: 3px;
    border-radius: 5px 5px 5px 5px;
    color: white;
    font-weight: 500;
    display: flex;
    justify-content: center;
}
.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;
}
.calendarCellContex{
    
    box-sizing: border-box;
}

.calendarCellBar{
    transition: 0.1s ease-out;
    position: relative;
    overflow: hidden;
    font-size: auto;
    background-color: var(--active-theme);
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid white;
    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: 3px 3px 5px 2px rgba(0, 0, 0, 0.5);
    
}
.calendarCellBar:hover{
    color: black;
    background-color: var(--fresh-theme);
}

.nameOfDay{  
    height: 50%;
    word-break: break-all;
    background-color: var(--calendar-theme-superior);
    cursor:alias;
    display: flex;
    justify-content: center;
    align-items: center;
    

}
.nameOfDay:hover{
    background-color: var(--active-superior);
    border-radius: 0vh;
}

.MonthButton{
    padding: 5px;
    margin: 2px;
    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;
}

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

.MonthRow{
    justify-content: space-between;
    
}
#CurrentMonth{
    display: flex;
    align-items: center;
}

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

#EventContainer{
    width: 80%;
    height: 80%;
    box-shadow: 3px 3px 20px 5px rgba(0, 0, 0, 0.5);
    background-color: white;
    border-left: 2px solid black;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
#EventHeader{
    font-weight: 100;
    font-size: 5vmin;
    color: white;
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    height: 15%;
    background-color: rgb(47, 33, 194);
    border-bottom: 2px solid white;
    box-shadow: 3px 0px 20px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
#EventHeaderClose{
    
    display: flex;
    align-items: flex-start;
}
#EventContex{
    margin: 20px;
    padding: 5px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: stretch;
    box-sizing: border-box;
}
#EventList{
    
    box-shadow: 3px 3px 20px 5px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    width: 35%;
    display: flex;
    flex-direction: column;
    background-color: #6fbee6;
    height: calc(70vh - 60px);
    box-sizing: border-box;
    overflow: auto;
    border-left: 2px solid black;
}


.EventItem{
    cursor: pointer;
    background-color: var(--event-theme);
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    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(5px);
    filter:hue-rotate(-20deg) contrast(2);
}
#EventDescription{
    box-shadow: 3px 3px 20px 5px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    
    overflow: auto;
    width: 100%;
    background-color: rgb(8, 38, 53);
    box-sizing: border-box;
    color: white;
    justify-content: space-between;
}

.EventPlaceholder{
    width: 100%;
    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;
}

#EventDescriptionText{
    padding: 10px;
    
}
#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;
}
#EventDescriptionFooter{
    border-top: 1px solid white;
    display: flex;
    justify-content: space-between;
    padding: 10px;
}
#EventDescriptionHeader, #EventListHeader{
    transition: 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: 2px solid white;
    font-weight: 500;
    text-shadow: 0px 0px 2px black,0px 0px 2px black, 0px 0px 2px black;
    color: white;
}

.EDF_Side{
    font-size: 75%;
}
.ButtonClose{
    background-color: rgb(243, 59, 46);
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.2s ease-in, transform 0.1s ;
}
.ButtonClose:hover{
    background-color: red;
}
.ButtonClose:active{
    transform: scale(1) translateY(-5px);
    filter:hue-rotate(-20deg) contrast(2);
}

/*CCSING context of the page*/

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

#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, .zastepstwa{
    border: 5px solid var(--main-theme);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    background-color: blanchedalmond;
    padding: 15px;
    box-shadow: 9px -3px 20px 6px #e5e2bb9e;
    border-radius: 15px;
    max-width: 80%;
}
.legendElement{
    box-shadow: 0px 0px 4px 5px var(--active-theme);
    background-color: var(--active-theme);
    gap: 10px;
    transition: 0.2s ease-in;
}
.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{
    flex-wrap: wrap;
    gap: 20px
}
.legendElement, .legendContex{
    margin: 5px;
    align-items: center;
    display: flex;
    flex-direction: row;
}

/*CCSING footer*/

footer{
    padding: 10px;
    background-color: var(--main-background-old);
    color: var(--fresh-theme); 
    display: flex;
    justify-content: space-between;
    gap: 10%;
}

span.email > a{
    text-decoration: none;
    color: white; 
    transition: 0.2s ease-in-out;
}

span.email > a:hover{
    color: var(--active-superior);
    text-shadow: 0px 0px 10px var(--active-theme), 
                 1px 1px 1px white,
                 -1px -1px 1px white;
}
span.KomorSite{
    color: rgb(212, 255, 20);text-shadow: 0px 0px 8px rgb(222, 252, 87);
    animation-name: komorSiteAnimation;
    animation-iteration-count: infinite;
    animation-duration: 5s;
}
.footerRight{
    font-weight: 700;
    word-break: keep-all;
    white-space:nowrap;

    display: flex;
    justify-content: right;
    flex-wrap: nowrap;
    flex-direction: column;
    text-align: right;
}
.footerRightDown{
    border-top: 1px solid white;
    color: black;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.5;
}
.footerLeft{
    display: flex;
    flex-wrap: wrap;
}
.footerElement{
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-left: 1px solid rgb(255, 255, 255);
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
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);
    

}

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

}
li{
    padding: 1vmin;
}

/**/
.PageButton{
    display: flex;
    font-size: 20px;
}

.zastepstwa{
    width: 90%;
    padding: 10px;
    margin: 20px;
    
}

.zastepstwa > iframe{
    width: 100%;
    height: 60vh;
    box-sizing: border-box;
    padding: 15px;
}
/*Animations!*/

@keyframes komorSiteAnimation {
    0% {color: rgb(212, 255, 20);text-shadow: 0px 0px 8px rgb(222, 252, 87);}
    20% {color: rgb(0, 255, 225);text-shadow: 0px 0px 8px rgb(104, 227, 243); }
    40% {color: rgb(153, 0, 255);text-shadow: 0px 0px 8px rgb(163, 75, 222); }
    60% {color: hotpink; text-shadow: 0px 0px 8px rgb(238, 31, 148); }
    80% {color: rgb(255, 136, 0);text-shadow: 0px 0px 8px rgb(225, 40, 12); }   
}

@keyframes eventDescriptionFloat {
    0%{margin-top: 0%;transform: scale(1) rotateX('0deg'); }
    50%{margin-top: 50%; transform: scale(1.5) 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;
    }
  }