.bento_box > div, nav > div {
    background-color: var(--green_darker);
}












/*                                                                     _                                                */
/*                                                                    | |    ___   __ _  ___                            */
/*                                                                    | |   / _ \ / _` |/ _ \                           */
/*                                                                    | |__| (_) | (_| | (_) |                          */
/*                                                                    |_____\___/ \__, |\___/                           */
/*                                                                                |___/                                 */

/* ----------------------------------------------------------------------- Logo section ------------------------------- */
#logo {
    grid-column: 1/7;
}

#logo > div {
    background: transparent;
}



/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    #logo {
        grid-column: 1/11;
        grid-row: 1/2;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #logo {
        grid-column: 1/11;
        grid-row: 1/2;
    }
}




/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #logo {
        grid-column: 1/11;
        grid-row: 1/2;
    }
}


















/*                                                                      ___        __                                */
/*                                                                     |_ _|_ __  / _| ___                           */
/*                                                                      | || '_ \| |_ / _ \                          */
/*                                                                      | || | | |  _| (_) |                         */
/*                                                                     |___|_| |_|_|  \___/                          */

/* ----------------------------------------------------------------------- Info section ---------------------------- */
#information {
    grid-row: 2/8;
    grid-column: 1/7;
}

#information > div {
    position: relative;

    overflow: hidden;
}

#information .foto {
    width: 140%;
    margin-left: -20%;
}

#information .gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    background-image: linear-gradient(to top, var(--green) 25%, transparent);
}

.info_about_school {
    position: absolute;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0 25px 30px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border-radius: 40px;

    /* border: 2px solid red; */
}

#information p {
    color: var(--white);
    font-size: var(--font_m);
    letter-spacing: 1px;
    line-height: 140%;
}

#information h2 {
    color: var(--white);
    margin-bottom: 20px;
}

#information .play {
    margin: 20px;

    animation-delay: 1s;
}

#information .play_more {
    animation-delay: 1s;
}



/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px) and (max-width: 1024px) and (orientation: portrait) {
    #information {
        grid-row: 2/3;
        grid-column: 1/11;
    }

    #information .gradient {
        background-image: linear-gradient(to top, var(--green) 55%, transparent);
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #information {
        grid-row: 2/7;
        grid-column: 1/7;
    }

    #information .gradient {
        background-image: linear-gradient(to top, var(--green) 55%, transparent);
    }
}




/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #information {
        grid-column: 1/11;
        grid-row: 2/3;
    }

    .info_about_school {
        padding: 0 25px 25px;
    }

    #information h2 {
        font-size: var(--font_m);
        font-weight: 600;
        margin-bottom: 10px;
    }

    #information p {
        font-size: var(--font_s);
    }

    #information .gradient {
        background-image: linear-gradient(to top, var(--green) 45%, transparent);
    }
}





















/*                                                                      _   _                                        */
/*                                                                     | \ | | _____      _____                      */
/*                                                                     |  \| |/ _ \ \ /\ / / __|                     */
/*                                                                     | |\  |  __/\ V  V /\__ \                     */
/*                                                                     |_| \_|\___| \_/\_/ |___/                     */

/* ----------------------------------------------------------------------- News section ---------------------------- */
#news {
    grid-row: 1/6;
    grid-column: 7/11;
}

#news > div {
    padding: 20px;

    overflow: auto;
    background-color: var(--green);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.385);
}

#news h2 {
    color: var(--white);
    letter-spacing: 8px;

    margin-bottom: max(1.5vh, 15px);
}

.news_box {
    position: relative;
    width: 100%;
    height: 85%;
    margin-bottom: calc(15% - 10px);

    overflow: hidden;

    border-radius: calc(40px - 20px);
}

.news_box .foto {
    border-radius: 20px;
    height: 60%;

    overflow: hidden;
}

.news_box .foto img {
    min-width: 100%;
    margin-left: 0%;
}

#news .blur {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;

    background-image: linear-gradient(to top, var(--green) 50%, transparent);
}
@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    #news .blur {
        background: none;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);

        background-image: linear-gradient(to top, var(--green) 50%, transparent);

        mask-image: linear-gradient(to top, black 40%, transparent);
        -webkit-mask-image: linear-gradient(to top, black 40%, transparent);
    }
}

.news_text {
    position: absolute;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0 15px 15px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border-radius: 20px;
}

.news_text h3 {
    color: var(--green_light);
    font-size: var(--font_l);

    margin-bottom: 5px;
}

.news_text p {
    color: var(--white);
    line-height: 120%;
}

#news .play, #news .play_more {
    animation-delay: 4s;

    background-color: var(--green_light);
    color: var(--green);
}

#news .play path {
    fill: var(--green) !important;
}



/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    #news {
        grid-row: 4/5;
        grid-column: 1/11;
    }

    #news h2 { 
        font-size: var(--font_l);
        letter-spacing: 4px;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #news {
        grid-row: 2/5;
        grid-column: 7/11;
    }

    #news h2 { 
        font-size: var(--font_l);
        letter-spacing: 4px;
    }
}




/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #news {
        grid-column: 1/11;
        grid-row: 4/5;
    }

    #news > div {
        overflow: hidden;
    }

    #news h2 {
        font-size: var(--font_l);
        color: var(--white);
        letter-spacing: 4px;

        margin-bottom: max(1.5vh, 15px);
    }
}





                          









/*                                                                   ____                      _                     */
/*                                                                  | __ )  ___   __ _ _ __ __| |                    */
/*                                                                  |  _ \ / _ \ / _` | '__/ _` |                    */
/*                                                                  | |_) | (_) | (_| | | | (_| |                    */
/*                                                                  |____/ \___/ \__,_|_|  \__,_|                    */

/* ----------------------------------------------------------------------- Board section --------------------------- */
#bulletin_board {
    grid-row: 6/8;
    grid-column: 7/11;
}

#bulletin_board > div {
    padding: 20px;

    overflow: auto;
    background-color: var(--green_light);
    box-shadow: inset 0 0 20px rgba(75, 75, 75, 0.406);
}

#bulletin_board h2 {
    color: var(--green_darker);
    letter-spacing: 6px;

    margin-bottom: max(1.5vh, 15px);
}

#bulletin_board .notifi {
    display: flex;
    align-items: center;
    padding: 15px;

    margin-bottom: 20px;

    background-color: var(--green);
    border-radius: 20px;
    cursor: pointer;
}

#bulletin_board .notifi div:first-child {
    width: 15%;
}

#bulletin_board .notifi div:last-child {
    width: 85%;
}


#bulletin_board .notifi h3 {
    line-height: 120%;
    color: var(--white);
}

#bulletin_board .play, #bulletin_board .play_more {
    animation-delay: 7s;
}





/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    #bulletin_board {
        grid-row: 3/4;
        grid-column: 1/11;
    }

    #bulletin_board a:not(:first-of-type) {
        display: none;
    }

    #bulletin_board h2 { 
        font-size: var(--font_l);
        letter-spacing: 4px;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #bulletin_board {
        grid-row: 5/7;
        grid-column: 7/11;
    }

    #bulletin_board h2 { 
        font-size: var(--font_l);
        letter-spacing: 4px;
    }

    #bulletin_board .notifi {
        padding: 10px;
    }

    #bulletin_board .notifi div:first-child {
        width: 20%;
    }

    #bulletin_board .notifi div:last-child {
        width: 80%;
    }
}




/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #bulletin_board {
        grid-column: 1/11;
        grid-row: 3/4;
    }

    #bulletin_board h2 {
        font-size: var(--font_l);
        letter-spacing: 4px;
    }

    #bulletin_board .notifi {
        padding: 10px;
    }

    #bulletin_board .notifi div:first-child {
        width: 20%;
    }

    #bulletin_board .notifi div:last-child {
        width: 80%;
    }

    #bulletin_board .notifi {
        font-size: var(--font_s);
    }
}

















/*                                                                   ____       _                                   */
/*                                                                  / ___| __ _| | ___ _ __ _   _                   */
/*                                                                 | |  _ / _` | |/ _ \ '__| | | |                  */
/*                                                                 | |_| | (_| | |  __/ |  | |_| |                  */
/*                                                                  \____|\__,_|_|\___|_|   \__, |                  */
/*                                                                                          |___/                   */

/* -------------------------------------------------------------------- Galery text section ----------------------- */
#galery_text {
    grid-row: 8/11;
    grid-column: 1/2;

    text-orientation: upright;
    writing-mode: vertical-lr;

    display: flex;
    justify-content: center;
    align-items: end;
}

#galery_text h2 {
    color: var(--green);
    font-size: min(3vh, var(--font_xl));
    font-weight: 500;
}



/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    #galery_text {
        grid-row: 5/6;
        grid-column: 1/11;

        writing-mode: horizontal-tb;
        text-orientation: mixed;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    #galery_text h2 {
        font-size: var(--font_xl);
        letter-spacing: 8px;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #galery_text {
        grid-row: 7/10;
        grid-column: 1/2;
    }
}



/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #galery_text {
        grid-column: 1/11;
        grid-row: 5/6;

        writing-mode: horizontal-tb;
        text-orientation: mixed;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    #galery_text h2 {
        font-size: var(--font_xl);
        letter-spacing: 8px;
    }
}










/* ----------------------------------------------------------------------- Galery section ------------------------- */
#galery {
    grid-row: 8/11;
    grid-column: 2/5;
}

#galery div {
    max-height: calc(10px + 10px +  7 * (3px + 7px + var(--font_s) + 8px)); /* counting elements of calendar to be same height */
    overflow: hidden;

    box-shadow: 0 0 25px rgba(0, 0, 0, 0.385);
}

#galery .gallery_img {
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-height: 100%;
    min-width: 100%;
}



/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    #galery {
        grid-row: 6/7;
        grid-column: 1/11;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #galery {
        grid-row: 7/10;
        grid-column: 2/4;
    }
}



/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #galery {
        grid-column: 1/11;
        grid-row: 6/7;
    }
}














/*                                                           ____      _                _                           */
/*                                                          / ___|__ _| | ___ _ __   __| | __ _ _ __                */
/*                                                         | |   / _` | |/ _ \ '_ \ / _` |/ _` | '__|               */
/*                                                         | |__| (_| | |  __/ | | | (_| | (_| | |                  */
/*                                                          \____\__,_|_|\___|_| |_|\__,_|\__,_|_|                  */

/* -------------------------------------------------------------------- Calendar section -------------------------- */
#calendar {
    grid-row: 8/11;
    grid-column: 5/11;

}

#calendar > div {
    padding: 10px 10px 10px 20px;

    display: flex;
}

.calendar_display {
    width: max(35%, 400px);
    height: 100%;

    padding: 5px;

    max-width: 400px;
}

.month {
    position: relative;

    padding: 3px 5px 7px;
    text-align: center;
}

.month ul {
    display: grid;
    grid-template-columns: auto auto auto;
}
  
.month ul li {
    color: var(--white);
    font-size: var(--font_s);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.month svg {
    height: 15px;
}

.weekdays,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekdays {
    background-color: var(--green_light);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.days {
    background: var(--white);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.weekdays li,
.days li {
    text-align: center;
    padding: 4px 0;
}

.days li .active, .days li .happening {
    border-radius: 4px;
    padding: 3px 4px;
}

.days li .active {
    background: var(--green);
    color: var(--white);
}

.days li .happening {
    background: var(--green_light);
    color: var(--green_darker);
}





.calendar_events {
    max-height: 212px;
    width: 75%;
    padding: 5px 20px;

    overflow: auto;

    border-radius: 30px;
}

#calendar h2 {
    color: var(--white);
    letter-spacing: 6px;

    margin-bottom: max(1.5vh, 15px);
}

.event_box {
    display: flex;

    width: 100%;
    margin-bottom: max(3vh, 30px);
}

.event {
    width: 80px;
    height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: var(--green_light);
    border-radius: 20px;
}

.event span {
    font-weight: 400;
    font-size: var(--font_m);
    color: var(--green_darker);
}

.event span:first-child {
    font-weight: 800;
    font-size: var(--font_l);

    margin-left: -4px;
}

.event_box .text {
    padding-left: 15px;
}

.event_box h3 {
    color: var(--green_light);
    font-size: var(--font_l);

    margin-bottom: 5px;
}

.event_box p {
    color: var(--white);
}

.event_box .text p:first-of-type {
    margin-bottom: 5px;
}

#calendar .play {
    animation: none;
    top: 0;
    right: -10px;
}

#calendar .play, #calendar .play_more {
    background-color: var(--green_light);
}

#calendar .play path {
    fill: var(--green) !important;
}



/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    #calendar {
        grid-column: 1/11;
        grid-row: 7/8;

        height: auto;
    }

    #calendar > div {
        height: auto;
        padding: 10px;

        display: block;
    }

    .calendar_display {
        width: 80%;
        margin: auto;
        height: auto;
        margin-bottom: 20px;

        display: block;
    }

    .calendar_events {
        width: 100%;
    }

    #calendar h2 { 
        font-size: var(--font_l);
        letter-spacing: 4px;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    #calendar {
        grid-row: 7/10;
        grid-column: 4/11;
    }

    #calendar h2 {
        width: 50%;
        line-height: 120%;
        font-size: var(--font_l);
    }

    .calendar_display {
        width: 45%;
    }

    .calendar_events {
        width: 55%;
    }

    .event {
        width: 60px;
        height: 70px;
    }

    .event span {
        font-size: var(--font_s);
    }

    .event span:first-child {
        font-size: var(--font_m);
    }

    .event_box .text {
        padding-left: 15px;
    }

    .event_box h3 {
        font-size: var(--font_m);
    }

    .event_box p {
        font-size: var(--font_s);
    }
}




/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px), screen and (max-width: 950px) and (orientation: landscape) {
    #calendar {
        grid-column: 1/11;
        grid-row: 7/8;

        height: auto;
    }

    #calendar > div {
        height: auto;
        padding: 10px;

        display: block;
    }

    .calendar_display {
        width: 80%;
        margin: auto;
        height: auto;
        margin-bottom: 20px;

        display: block;
    }

    .calendar_events {
        width: 100%;
    }
    
    #calendar h2 { 
        font-size: var(--font_l);
        letter-spacing: 4px;
        width: 50%;
        line-height: 120%;
    }
}