:root{
    --header-height: 80px;

    --blue: #27357b;
    --blue2: #c9cfeea4;
    --orange: #ef7a0b;
}

html, body{
    width: 100%;
    margin: 0px;
    overflow-x: hidden;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.8)
        ),
        url("/links/bg/bg-texture.png");
    background-size: cover;
    background-position: center;
    font-family: "komet", sans-serif;
    font-size: 14px;
}

p, h1, h2, h3, h4, h5, h6{
    white-space: nowrap;
}

.page{
    width: calc( 100vw - ( 2 * 40px ) );
    height: calc( 100vh - ( 2 * 40px ) );
    margin: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

header{
    height: var(--header-height);
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
}

header img{
    height: var(--header-height);
}

main{
    width: 100%;
    height: calc( 100vh - ( 2 * 40px ) - var(--header-height) - 40px );
    display: flex;
    flex-direction: row;
    gap: 40px;
    position: relative;
}

main .today{
    max-width: calc( ( ( 100% - 300px ) / 2 ) - 80px );
    height: calc( 100vh - ( 2 * 40px ) - var(--header-height) - 40px - ( 2 * 40px ) );
    background-color: var(--blue2);
    position: relative;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

main .today .timeline{
    display: flex;
    position: relative;
    height: calc( 100vh - ( 2 * 40px ) - var(--header-height) - 40px - ( 2 * 40px ) );
    margin-right: auto;
    width: fit-content;
    margin-bottom: auto;
}

main .today .timeline .hour{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

main .today .timeline .hour p{
    margin: 0px;
    color: var(--blue);
    text-align: right;
}

main .today .timeline .line{
    width: 30px;
    flex: 1;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 8px;
    border: solid 3px var(--blue);
    border-left: none;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
}

main .today .timeline .line .subline{
    width: 15px;
    height: 2px;
    background-color: var(--blue);
    margin-left: auto;
}

main .today .timeline .line .nowline{
    width: 30px;
    height: 4px;
    background-color: var(--orange);
    position: absolute;
    left: 0px;
}

main .today .timeline .line .nowline .circle{
    position: absolute;
    background-color: var(--orange);
    width: 15px;
    height: 15px;
    border-radius: 15px;
    top: 50%;
    transform: translateY(-50%);
}

main .today .events{
    margin-top: 10px;
    margin-bottom: 8px;
    width: 60px;
    position: relative;
}

main .today .events .event{
    width: 30px;
    height: 4px;
    background-color: var(--blue);
    position: absolute;
}

main .today .events .event .box{
    width: 100%;
    position: relative;
    height: 30px;
    background-color: var(--blue);
    top: 50%;
    right: 0px;
    transform: translate(100%, -50%);
    display: flex;
    border-radius: 4px;
}

main .today .events .event .box p{
    color: white;
    margin: auto;
    font-weight: 700;
}

main .today .description{
    flex: 1;
    margin-left: 40px;
    overflow: hidden;
}

main .today .description h2{
    color: var(--blue);
    margin: 0px;
    text-align: center;
}

main .today .description .event{
    padding: 10px;
    background-color: white;
    margin-top: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    /*flex-wrap: nowrap;*/
    flex-wrap: wrap;
    gap: 20px;
}

main .today .description .event.old{
    filter: grayscale(1);
    opacity: 0.5;
}

main .today .description .event.allDay{
    background-color: #ffead7ff;
}

main .today .description .event .col:nth-of-type(1){
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main .today .description .event .col:nth-of-type(1) h3{
    margin: 0px;
    color: var(--orange);
}

main .today .description .event.allDay .col:nth-of-type(1) h3{
    margin-left: 10px;
}

main .today .description .event .col:nth-of-type(1) h3 .nr{
    background-color: var(--blue);
    padding: 4px 10px;
    display: inline-table;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    margin-right: 10px;
}

main .today .description .event .col:nth-of-type(1) p{
    margin: 0px;
    text-indent: 44px;
    color: var(--blue);
}

main .today .description .event.old .col:nth-of-type(1) p{
    display: none;
}

main .today .description .event.allDay .col:nth-of-type(1) p{
    text-indent: 0px;
    margin-left: 10px;
}

main .today .description .event .col:nth-of-type(2){
    width: fit-content;
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: 50%;
}

main .today .description .event.old .col:nth-of-type(2){
    display: none;
}

main .today .description .event .col:nth-of-type(2) .company{
    height: 50px;
    aspect-ratio: 1 / 1;
    background-color: grey;
    border-radius: 80px;
}

main .today .description .event .col:nth-of-type(2) .employee{
    height: 50px;
    background-color: var(--blue2);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border: solid 1px var(--blue);
}

main .today .description .event .col:nth-of-type(2) .employee img{
    height: 50px;
    aspect-ratio: 1 / 1;
    background-color: grey;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

main .today .description .event .col:nth-of-type(2) .employee .name{
    padding: 10px;
    display: flex;
}

main .today .description .event .col:nth-of-type(2) .employee .name p{
    margin: auto;
    color: var(--blue);
    font-weight: 700;
}  

main .thisWeek{
    flex: 1;
    background-color: var(--blue2);
    border-radius: 10px;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: hidden;
    max-width: calc( ( ( 100% - 300px ) / 2 ) - 80px );
}

main .thisWeek h2{
    margin: 0px;
    color: var(--blue);
    text-align: center;
}

main .thisWeek .eventsBox{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

main .thisWeek .eventsBox .event{
    background-color: white;
    min-height: 20px;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

main .thisWeek .eventsBox .event .col:nth-of-type(1){
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main .thisWeek .eventsBox .event .col:nth-of-type(1) h3{
    margin: 0px;
    color: var(--orange);
    font-weight: 700;
}

main .thisWeek .eventsBox .event .col:nth-of-type(1) p{
    margin: 0px;
    color: var(--blue);
    font-weight: 400;
}

main .thisWeek .eventsBox .event .col:nth-of-type(2){
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

main .thisWeek .eventsBox .event .col:nth-of-type(2) .company{
    height: 60px;
    aspect-ratio: 1 / 1;
    background-color: grey;
    border-radius: 80px;
}

main .thisWeek .eventsBox .event .col:nth-of-type(2) .employee{
    height: 60px;
    background-color: var(--blue2);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border: solid 1px var(--blue);
}

main .thisWeek .eventsBox .event .col:nth-of-type(2) .employee img{
    height: 60px;
    aspect-ratio: 1 / 1;
    background-color: grey;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

main .thisWeek .eventsBox .event .col:nth-of-type(2) .employee .name{
    padding: 10px;
    display: flex;
}

main .thisWeek .eventsBox .event .col:nth-of-type(2) .employee .name p{
    margin: auto;
    color: var(--blue);
    font-weight: 700;
} 

main .hourArea{
    width: 300px;
    right: 0px;
    background-color: var(--blue2);
    margin-bottom: auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

main .hourArea p{
    font-family: "new-astro", sans-serif;
    text-align: center;
    margin: 0px;
    font-size: 5em;
    color: var(--blue);
}

main .hourArea p:nth-of-type(2){
    text-align: center;
    margin: 0px;
    font-size: 3em;
}

/*footer{
    width: 100%;
    height: 20px;
    background-color: black;
}*/