:root {
    --main-dimension-on-active: 0.82;
    --overlay-dimension-on-active: calc(1 - var(--main-dimension-on-active));
    --percentage-width: 1vw;
    --percentage-height: 1vh;
    --overlay-percentage-width: calc(var(--percentage-width) * var(--overlay-dimension-on-active));
    --overlay-percentage-height: calc(var(--percentage-height) * var(--overlay-dimension-on-active));

    --announcement-overlay-color: #fbfbfb;
    --announcement-close-overlay-color: #d6d6d6;
}

#announcement-container {
    display: flex;
    width: 100%;
    height: 100%;
    /* transition: height 5s; */
}

#announcement-container.active {
    --percentage-width: calc(var(--main-dimension-on-active) * 1vw);
    --percentage-height: calc(var(--main-dimension-on-active) * 1vh);
}

#announcement-container.close .side,
#announcement-container.close .main .bottom {
    background: var(--announcement-close-overlay-color);
}

#announcement-container.close .main .bottom .controls .button {
    background-color: #1f1f1f;
}

#announcement-container .side {
    display: none;
    flex-direction: column;
    width: 18%;
    background: var(--announcement-overlay-color);
    height: 82vh;
    /* transition: .5s; */
}

#announcement-container .side .announcement-clock {
    padding: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Roboto";
    position: relative;
    /* transition: 0.5s; */
    color: var(--illi-black);
    max-height: 50vh;
    overflow: hidden;
}

#announcement-container .side .announcement-clock.night {
    color: #fff;
}

#announcement-container .side .announcement-clock.night ~ .inner .announcement-data .announcement-bubble{
    color: #fff;
}

#announcement-container .side .announcement-clock:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#announcement-container .side .announcement-clock .dayOfWeek {
    font-size: 2vw;
    font-weight: 600;
    color: inherit;
    margin-bottom: 2.5vh;
}

#announcement-container .side .announcement-clock .clocky {
    width: calc(var(--overlay-percentage-width) * 60);
    height: calc(var(--overlay-percentage-width) * 60);
}

#announcement-container .side .announcement-clock .digitalClock {
    font-size: 3.5vw;
    font-weight: bold;
    color: inherit;
    margin-top: 2vh;
}

#announcement-container .side .announcement-clock .birthdays {
    font-size: 1.5vw;
    margin-top: 4vh;
}

#announcement-container .side .announcement-clock .birthday {
    display: flex;
    flex-direction: row;
    margin-bottom: 1vh;
    font-size: 3vh;
}

#announcement-container .side .announcement-clock .birthday i {
    margin-right: 0.5vw;
}

#announcement-container .side .inner {
    flex: 1;
    position: relative;
}


#announcement-container .side .inner .bubbleColumn {
    display: flex;
    flex-direction: column;
}

#announcement-container .side .inner .announcement-data {
    opacity: 0;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: .8vw;
    box-sizing: border-box;
}

#announcement-container .side .inner .announcement-data.active {
    opacity: 1;
    transition: 1.2s ease;
}

#announcement-container .side .inner .announcement-data .announcement-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1vh;
    border-radius: 1vh;
    /* background-color: #00000014; */
    margin-bottom: 2vh;
}

#announcement-container .side .announcement-clock.night ~ .inner .announcement-data .announcement-bubble.red, 
.inner .announcement-data .announcement-bubble.red {
    background-color: #EFE2E2;
    color: var(--illi-red) ;
    border: solid 0.2vw;
}

/* #announcement-container .side .inner .announcement-data .announcement-bubble.blue {
    background-color: var(--illi-blue);
    color: #6088ab;
    border: solid 0.2vw;
} */

#announcement-container .side .inner .announcement-data .announcement-bubble i {
    font-size: 4vh;
    margin-bottom: 1vh;
}

#announcement-container .side .inner .announcement-data .announcement-bubble .title,
#announcement-container .side .inner .announcement-data .announcement-bubble .subtitle {
    font-size: 2.5vh;
    text-align: center;
}

#announcement-container .side .inner .announcement-data .announcement-bubble .title.strong {
    font-weight: 600;
}

#announcement-container .main {
    display: flex;
    flex-direction: column;
    width: calc(var(--percentage-width) * 100);
}

#announcement-container .main .top {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
    overflow: hidden;
    height: calc(var(--percentage-height) * 100);
    width: calc(var(--percentage-width) * 100);
    border-color: #00000024;
    border-left-style: solid;
    border-bottom-style: solid;
    border-width: 0;
    /* voor animatie */
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

#announcement-container .main .bottom {
    display: none;
    flex-grow: 1;
    background: var(--announcement-overlay-color);
    transition: .5s;
    /* voor animatie */
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 18vh;
    box-shadow: 0vw 0vh 3vh 0vh #0000004d;
    z-index: 2;
}

#announcement-container .main .bottom .inner {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    position: relative;
}

#announcement-container .main .bottom .inner .announcement-data {
    opacity: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#announcement-container .main .bottom .inner .announcement-data.active {
    opacity: 1;
    transition: 1.2s ease;
}

.announcement-icon {
    font-size: 5.5vh;
    width: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 3vw;
}

.announcement-date-time {
    width: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 2vw;
    margin-right: 2vw;
}

.announcement-time {
    font-size: 5vh;
}

.announcement-date {
    font-size: 2.5vh;
}

.announcement-description {
    width: 55vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}

#announcement-container .main .bottom .inner .announcement-data .title {
    font-size: 5vh;
    /* font-weight: 600; */
}

#announcement-container .main .bottom .inner .announcement-data .description {
    /* font-size: 2vh; */
    font-size: 2.5vh;
    /* text-align: center; */
    width: 95%;
}

#announcement-container .main .bottom .controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2vw;
}

#announcement-container .main .bottom .controls .indicators {
    opacity: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: .5s ease;
    padding: 1.5vh;
}

#announcement-container .main .bottom .controls .indicators.active {
    opacity: 1;
}

#announcement-container .main .bottom .controls .indicators .announcement-data {
    background-color: #c5c5c5;
    border-radius: 100%;
    height: 1.5vh;
    width: 1.5vh;
    transition: .5s ease;
    margin-left: 0.2vw;
    margin-right: 0.2vw;
}


#announcement-container .main .bottom .controls .indicators .announcement-data.active {
    background-color: var(--illi-red);
    height: 1.9vh;
    width: 1.9vh;
}

#announcement-container .main .bottom .controls .buttonContainer {
    display: flex;
    flex-direction: column;
}

#announcement-container .main .bottom .controls .buttonContainer .button {
    background-color: #3B3D3C;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 1vh;
    margin: 0;
    margin-bottom: 1vh;
    font-size: 2vh;
    transition: .5s;
}

#announcement-container .main .bottom .controls .buttonContainer .button span {
    margin-left: 0.5vw;
    margin-right: 0.5vw;
}

#announcement-container .main .bottom .controls .buttonContainer .button .ok {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    font-weight: 600;
    font-size: 50%;
    width: 3vw;
    height: auto;
    margin-right: 0.5vw;
}

#announcement-container .main .bottom .controls .buttonContainer .button .ok .circle {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
}

#announcement-container .main .bottom .controls .buttonContainer .button .ok .circle.animate {
    animation: draw 1.4s linear forwards;
}

#announcement-container .main .bottom .controls .buttonContainer .button .ok svg {
    transform: rotate(-90deg);
    display: block;
    width: 100%;
    height: auto;
}

#close-icon {
    position: absolute;
    transform: rotate(-90deg);
    font-size: 1vw;
}

#close-icon i{
    margin: 0.1vw;
}

#announcement-container .main .bottom .controls .buttonContainer .hint {
    font-size: 1.6vh;
    font-style: italic;
    /* margin-top: 1vh; */
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

#announcement-container.active .side,
#announcement-container.active .main .bottom {
    display: flex;
}

#announcement-container.active .main .top {
    border-width: 2px;
}