/*
Theme Name: SWiSH
Theme URI: https://swish.ethz.ch
Author: swish
Author URI: https://swish.ethz.ch
Description: SWiSH
Text Domain: swish.ethz.ch
Version: 1.0.0
License: .
*/
@font-face {
    font-family: 'ArmandGrotesk-Regular';
    src: url('./assets/fonts/ArmandGrotesk-Regular.otf') format('otf'),
         url('./assets/fonts/ArmandGrotesk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Keroine-IntenseLegere';
    src: url('./assets/fonts/Keroine-IntenseLegere.otf') format('otf'),
         url('./assets/fonts/Keroine-IntenseLegere.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --activities-color: #13503e;
    --about-color: black;
    --events-color: #e95217;
    --resources-color: #ad9ac9;

    --base-distance: 3vw;
    --main-font-size: 3vw;
}

* {
    box-sizing: border-box;
}

p:first-child {
    margin-top: 0px;
}

p:last-child {
    margin-bottom: 0px;
}

a, a:visited, a:active {
    font-family: 'Keroine-IntenseLegere';
    color: white;
    text-decoration: none;
    cursor: none;
}

p a:hover {
    opacity: 0.6;
}

p em {
    font-family: 'ArmandGrotesk-Regular';
}

p {
    line-height: 1.2;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0px;

    color: white;
}

body {
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: 'ArmandGrotesk-Regular';
    font-size: 1.4vw;
    line-height: 1.2;
    cursor: none;
}


/*##################################################3 HEADER */
#cursor {
    width: 3vw;
    height: 3vw;
    border: 0.33vw solid white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
}

.header {
  font-family: 'ArmandGrotesk-Regular';
}

.header #menu-logo {
    height: var(--base-distance);
    position: fixed;
    top: var(--base-distance);
    left: 50%;
    transform: translate(-50%, 0);
}

.header #menu-logo img {
    width: auto;
    height: 4.7vw;
    margin-top: -1.4vw;
}

.header a, .header a:active, .header a:visited {
    color: white;
    font-size: var(--main-font-size);
    text-decoration: none;
    font-family: 'ArmandGrotesk-Regular';
    line-height: 0.6
}

.header a:hover, .header .current a {
  font-family: 'Keroine-IntenseLegere';
}

.header .menu-button {
    display: none;
}

.menu {
    letter-spacing: 1px;
}

.header #menu-activities {
   position: fixed;
   top: var(--base-distance);
   left: var(--base-distance);
}

.header #menu-about {
   position: fixed;
   top: var(--base-distance);
   right: var(--base-distance);

}


.header #menu-events {
   position: fixed;
   bottom: calc(var(--base-distance) - 0.5vw);
   left: var(--base-distance);

}

.header #menu-resources {
   position: fixed;
   bottom: calc(var(--base-distance) - 0.5vw);
   right: var(--base-distance);

}
/*##################################################3 HEADER */



/*##################################################3 MAIN PAGE */
.mainPage {
    width: 100%;
    height: 100%;
}

.mainPage-topRow {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: row;
}

.mainPage-bottomRow {
    width: 100%;
    height:40%;
    display: flex;
    flex-direction: row;
}

.mainPage-block {
    height: 100%;
    padding: var(--base-distance);
}

.mainPage-activities {
    background: var(--activities-color);
    width:30%;
}

.mainPage-activities .mainPage-content {
    display: none;
}

.mainPage-content p {
    line-height: 1.1;
}

.mainPage-activities .picto-gif {
    background-image: url(./assets/picto/Intro-1.gif);
}

.mainPage-about {
    background: var(--about-color);
    width: 70%;
}

.mainPage-about .picto-gif {
    background-image: url(./assets/picto/Intro-2.gif);
}

.mainPage-events {
    background: var(--events-color);
    width:75%;
}

.mainPage-events .picto-gif {
    display: none;
}

.mainPage-events p {
    margin: 0px;
    font-size: var(--main-font-size);
}

.mainPage-resources {
    background: var(--resources-color);
    width:25%;
}

.mainPage-resources .picto-gif {
    background-image: url(./assets/picto/Intro-3.gif);
}

.picto-gif {
    width: 100%;
    height: 100%;
    background-size: auto 17.5vw;
    background-repeat: no-repeat;
    background-position: center center;
}
/*##################################################3 MAIN PAGE */



/*##################################################3 PAGE */
body.activities {
    background-color: var(--activities-color);
}
body.events {
    background-color: var(--events-color);
}
body.resources {
    background-color: var(--resources-color);
}
body.about {
    background-color: var(--about-color);
}

body.activities .page-picto {
    background-image: url('./assets/picto/Activities.gif');
}
body.resources .page-picto {
    background-image: url('./assets/picto/Resources.gif');
}
body.about .page-picto {
    background-image: url('./assets/picto/About_Contact.gif');
}


.page-content {
    padding-top: calc(6*var(--base-distance));
    width: 100%;
    padding-right: var(--base-distance);
    padding-left: var(--base-distance);
}

.page-parent-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-bottom: calc(1*var(--base-distance))
}

.page-picto {
    width: 50%;
    min-height: 13vw;
    background-repeat: no-repeat;
    background-size: auto 13vw;
    background-position: bottom§ left;
}

.page-parent-content-text {
    width: 50%;
    padding-right: calc(2*var(--base-distance));
}

.page-children-content {
    width: 100%;
    padding-right: calc(2*var(--base-distance));
    padding-bottom: calc(6*var(--base-distance))
}

.page-child-content {
    border-bottom: 3px solid white;
}

.page-child-content:first-child {
    border-top: 3px solid white;
}

.page-child-content.open .page-post-title::after {
    transform: rotate(180deg);
    padding-left: 3px;
}

.page-child-content.open .page-post-title {
    font-family: 'Keroine-IntenseLegere';
}

.page-post-title {
    padding-top: 10px;
    padding-bottom: 10px;
}

.page-post-title:hover {
    font-family: 'Keroine-IntenseLegere';
}

.page-post-title::after, .page-post-title:hover::after {
    color: white;
    content: "V";
    padding-right: 3px;
    font-size: 2vw;
    font-family: 'ArmandGrotesk-Regular';
    display: inline-block;
    vertical-align: middle;
    margin-top: -0.4vw;
    float: right;
}

.page-post-content {
    height: 0px;
    display: flex;
    flex-direction: row;

    overflow: hidden;
    transition: height 0.2s;
}

.page-post-content.clone {
    height: auto;
}

.page-post-picto {
    display: none;
}

.page-post-image {
    width: 50%;
}

.page-post-image img {
    width: 100%;
}

.page-post-text {
    width: 50%;
    padding-left: var(--base-distance);
}

.page-post-text p:last-child {
    padding-bottom: var(--base-distance);
}

/*##################################################3 PAGE */




/*##################################################3 EVENTS */

.page-events-content {
    width: 100%;
    padding-right: calc(2*var(--base-distance));
    padding-bottom: calc(6*var(--base-distance));
}

.page-event-content {
    display: flex;
    flex-direction: row;
    border-bottom: 3px solid white;
    padding-bottom: 2vw;
    padding-top: 2vw;
}

.page-event-content:first-child {
    border-top: 3px solid white;
}

.page-event-date {
    width: 20%;
}

.page-event-title {
    width: 30%;
    padding-left: 3vw;
}

.page-event-text {
    width: 50%;
    padding-left: var(--base-distance);
}

/*##################################################3 EVENTS */




/*##################################################3 QUERIES */
@media (min-width: 1100px) {
    .page-content {
        padding-top: calc(4*var(--base-distance))
    }
} 

@media (max-width: 1300px) {
    body {
        font-size: 1.6vw;
    }
} 

@media (max-width: 950px) {
    body {
        font-size: 1.9vw;
    }
} 

@media (max-width: 600px) {
    
    body {
        cursor: unset;    
        line-height: 1.2;
        font-size: 1.2em;
    }
    
    #cursor {
        display: none;
    }
    
    /*#################################### HEADER */
    .header #menu-logo {
        height: auto;
    }
    
    .header #menu-logo img {
        height: 16vw;
    }
    
    .header .menu {
        display: none;
        
    }
    
    .menuOpen .header .menu {
        display: flex;
    }
    
    .header .menu-button {
        display: block;
        position: fixed;
        transform: translateX(-50%);
        left: 50%;
        bottom: 3.5vw;
        font-size: 10vw;
        cursor: pointer;
    }
    
    .header .menu-button .burger {
        display: block;
        letter-spacing: 2px;
    }
    
    .header .menu-button .close {
        width: 10vw;
        height: 10vw;
        background-image: url(./assets/close.png);
        background-size: contain;
        background-position: center center;
        display: none;
        margin-bottom: 1vw;
    }
    
    
    .menuOpen .header .menu-button .burger {
        display: none;
    }
    
    .menuOpen .header .menu-button .close {
        display: block;
    }
    
    .header .menu {
        position: absolute;
        width: 100%;
        font-size: 10vw;
        flex-direction: column;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header #menu-activities, .header #menu-about, .header #menu-events, .header #menu-resources {
        border-bottom: 3px solid white;
        position: relative;
        top: 0;
        left: 0;
        padding: 1vw 5vw 1vw 5vw;
    }
    
    .header .menu > div:first-child {
        border-top: 3px solid white;
    }
    
    .header a, .header a:active, .header a:visited {
        font-size: 10vw;
    }
    
    .menuOpen p {
        display: none;
    }
    
    .menuOpen .mainPage-about, .menuOpen .mainPage-resources, .menuOpen .mainPage-activities, .menuOpen .mainPage-events {
        background: black;
    }
    /*#################################### HEADER */
    
    
    /*#################################### MAIN PAGE */
    .mainPage-topRow {
        height: 65%;
    }
    
    .mainPage-bottomRow {
        height: 35%;
    }
    
    .mainPage-activities .picto-gif {
        display: none;
    }
    
    .mainPage-activities .mainPage-content {
        display: block;
        position: relative;
        height: 100%;
    }
    
    .mainPage-activities .mainPage-content p {
        position: absolute;
        bottom: 0px;
        font-size: 7vw;
        width: 90vw;
    }
    
    .mainPage-about .picto-gif {
        background-image: url(./assets/picto/Intro-1.gif);
        background-size: auto 40vw;
    }
    
    .mainPage-events {
        width: 60%;
    }
    
    .mainPage-events .picto-gif {
        display: block;
        background-image: url(./assets/picto/Intro-2.gif);
        background-size: auto 40vw;
    }
    
    .mainPage-events .mainPage-content {
        display: none;
    }
    
    .mainPage-resources {
        width: 40%;
    }
    
    .mainPage-resources .picto-gif {
        background-size: auto 40vw;
    }
    /*#################################### MAIN PAGE */
    
    
    
    /*#################################### PAGE */
    
    .page-content {
        padding-left: 5vw;
        padding-right: 5vw;
    }
    
    .page-parent-content {
        display: block;
    }
    
    .page-parent-content .page-picto {
        width: 100%;
        background-position: center top;
        background-size: auto 40vw;
        height: 40vw;
    }
    
    .page-parent-content .page-parent-content-text {
        width: 100%;
        padding: 0;
        padding-top: 2vw;
    }
    
    .page-children-content {
        padding-right: 0px;
        padding-bottom: 100px;
    }
    
    .menuOpen .page-children-content {
        display: none;
    }
    
    .page-post-content {
        display: flex;
        flex-direction: column;
    }
    
    .page-post-text {
        padding: 0px;
        width: 100%;
    }
    
    body.activities.menuOpen, body.events.menuOpen, body.resources.menuOpen, body.about.menuOpen {
        background-color: black;
    }
    
    .page-post-title::after, .page-post-title:hover::after {
        font-size: 1.3em;
        margin-top: -3px;
    }
    
    .page-post-picto {
        display: block;
        order: 0;
    }
    
    .page-post-picto img {
        width: auto;
        height: 40vw;
        transform: translateX(-50%);
        left: 50%;
        position: relative;
    }
    
    .page-post-image {
        width: 100%;
        order: 2;
    }
    
    .page-post-text {
        order: 1;
    }
    
    body.resources .page-parent-content .page-picto {
        background-image: url('./assets/picto/Resources.gif') !important;
    }
    body.activities .page-parent-content .page-picto {
        background-image: url('./assets/picto/Activities.gif') !important;
    }
    body.about .page-parent-content .page-picto {
        background-image: url('./assets/picto/About_Contact.gif') !important;
    }
    
    /*#################################### PAGE */
    
    
    
    /*#################################### EVENTS */
    
    .page-events-content {
        padding-right: 0;
        padding-bottom: 100px;
    }
    
    .menuOpen .page-events-content {
        display: none;
    }
    
    .page-event-content {
        flex-direction: column;
        padding-bottom: 5vw;
        padding-top: 5vw;        
    }
    
    .page-event-date {
        order: 2;
        width: 100%;
        font-size: 6vw;
    }
    
    .page-event-title {
        width: 100%;
        font-size: 6vw;
        order: 1;
        padding-left: 0;
    }
    
    .page-event-text {
        padding: 0;
        margin-top: 5vw;
        width: 100%;
        order: 3;
    }
    
    /*#################################### EVENTS */
}


/*##################################################3 QUERIES */
