@import url('./main.css');

main {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    background-image: url(../img/index/home.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

main h1 {
    position: absolute;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    font-size: 48px;
    font-family: 'Cinzel', serif;
    font-style: italic;
    text-transform: uppercase;
}

.title {
    position: absolute;
    width: 40%;
    right: 20%;
    top: 45%;
}

.nicolas {
    top: 41%;
    left: 60%;
}

.ostheimer {
    top: 50%;
    left: 65%;
}

main a {
    color: black;
    height: fit-content;
    width: fit-content;
    border-color: black;
    border-style: solid;
    border-radius: 5px;
    text-transform: uppercase;
    background-image: url(../img/icons/arrowDownB.svg);
    /* Icon by KDE from SVG Repo: https://www.svgrepo.com/svg/500141/arrow-down, licensed under GPL License */
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: bottom;
    padding: 15px;
    padding-bottom: 30px;
    margin-bottom: 15vh;
    transition: all 0.5s;
}

main a:hover {
    color: white;
    background-color: black;
    background-image: url(../img/icons/arrowDown.svg);
    /* Icon by KDE from SVG Repo: https://www.svgrepo.com/svg/500141/arrow-down, licensed under GPL License */
    padding: 17px;
    padding-bottom: 35px;
    margin-bottom: calc(15vh - 5px);
}

.content {
    position: relative;
    top: calc(100vh - 80px);
}

.quote {
    position: relative;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    font-size: 44px;
    font-family: 'Cinzel', serif;
    font-style: italic;
}

.more-button {
    color: var(--site-color-04);
    background-color: rgba(0, 0, 0, 0.575);
    height: fit-content;
    width: fit-content;
    border-color: var(--site-color-04);
    border-style: solid;
    border-radius: 5px;
    text-transform: uppercase;
    background-image: url(../img/icons/arrowRight.svg);
    /* Icon by KDE from SVG Repo: https://www.svgrepo.com/svg/500141/arrow-down, licensed under GPL License */
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: right;
    align-self: flex-end;
    padding: 15px;
    padding-right: 50px;
    margin: 30px;
    margin-right: 9%;
    transition: all 0.5s;
}

.more-button:hover {
    padding: 17px;
    padding-right: 55px;
    margin-right: 7%;
}

.more-button2 {
    color: var(--site-color-04);
    background-color: rgba(0, 0, 0, 0.575);
    height: fit-content;
    width: fit-content;
    border-color: var(--site-color-04);
    border-style: solid;
    border-radius: 5px;
    text-transform: uppercase;
    background-image: url(../img/icons/arrowRight.svg);
    /* Icon by KDE from SVG Repo: https://www.svgrepo.com/svg/500141/arrow-down, licensed under GPL License */
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: right;
    align-self: flex-end;
    padding: 15px;
    padding-right: 50px;
    margin: 30px;
    margin-right: 9%;
    transition: all 0.5s;
}

.more-button2:hover {
    padding: 17px;
    padding-right: 55px;
    margin-right: 7%;
}

.about-btn {
    margin-top: 20px;
}

#wide {
    display: block;
}

#narrow {
    display: none;
}

.about {
    display: flex;
    flex-direction: column;
    background-image: url("../img/background/black.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding-left: 15%;
    padding-right: 15%;
    width: 100%;
    z-index: 5;
}

.about h2 {
    padding-left: 10%;
    align-self: flex-start;
}

.aboutC {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
}

.aboutC img {
  width: 50%;
  margin: 15px;
}

.aboutC ul {
    width: 100%;
}

.item {
  background-size: 25px;
  background-repeat: no-repeat;
  background-position: left;
  padding: 8px;
  padding-left: 30px;
}

#age {
  background-image: url(../img/icons/calendar.svg);
  /* Icon by Dazzle UI from SVG Repo: https://www.svgrepo.com/svg/533402/calendar-user, licensed under CC Attribution License */
}

#location {
  background-image: url(../img/icons/location.svg);
  /* Icon by Dazzle UI from SVG Repo: https://www.svgrepo.com/svg/532540/location-pin-alt-1, licensed under CC Attribution License */
}

#school {
  background-image: url(../img/icons/book.svg);
  /* Icon by Dazzle UI from SVG Repo: https://www.svgrepo.com/svg/533406/book, licensed under CC Attribution License */
}

#achievement {
  background-image: url(../img/icons/medal.svg);
  /* Icon by Dazzle UI from SVG Repo: https://www.svgrepo.com/svg/532916/medal, licensed under CC Attribution License */
}

.result {
  background-image: url(../img/icons/line.svg);
  /* Icon by Dazzle UI from SVG Repo: https://www.svgrepo.com/svg/532178/horizontal-rule, licensed under CC Attribution License */
  background-size: 25px;
  background-repeat: no-repeat;
  background-position: left;
  padding: 8px;
  padding-left: 30px;
  margin-left: 30px;
}

#slow1 {
    background-image: url(../img/index/spacer1.jpg);
}

#slow2 {
    background-image: url(../img/index/spacer2.jpg);
}

.spacer {
    height: 70vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    z-index: -100;
}

.spacer-img {
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    object-fit: cover;
}

.quote {
    top: 50%;
    left: 30%;
    width: fit-content;
    font-size: 34px;
}

.center {
    text-align: center;
}

.element {
    display: flex;
    flex-direction: column;
    background-image: url("../img/background/black.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding-left: 15%;
    padding-right: 15%;
    width: 100%;
    z-index: 5;
  }
  
  .elementC {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
  }
  
  .element-img {
    margin: 3%;
    width: 50%;
  }
  
  .element-text {
    text-align: center;
    margin: 3%;
    width: 50%;
    display: flex;
    flex-direction: column;
  }

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.logo-spacer {
    width: 100%;
    height: 0;
}

.logo-big {
    width: calc(60% - 15px);
    height: calc((60% - 15px) * 0.75);
    transition: width 0.5s ease, height 0.5s ease;
}

.logo-big:hover {
    width: calc(60% - 1px);
    height: calc((60% - 1px) * 0.75);
}

.logo-medium {
    width: calc(33% - 15px);
    height: calc((33% - 15px) * 0.75);
    transition: width 0.5s ease, height 0.5s ease;
}

.logo-medium:hover {
    width: calc(33% - 1px);
    height: calc((33% - 1px) * 0.75);
}

.logo-small {
    width: calc(20% - 15px);
    height: calc((20% - 15px) * 0.75);
    transition: width 0.5s ease, height 0.5s ease;
}

.logo-small:hover {
    width: calc(20% - 1px);
    height: calc((20% - 1px) * 0.75);
}

.partner-log {
    overflow: hidden;
    padding: 15px;
}

@media (max-width: 900px) {
    main {
        background-position: 30%;
    }

    main h1 {
        font-size: 36px;
    }

    main a {
        color: white;
        background-color: black;
        background-image: url(../img/icons/arrowDown.svg);
        /* Icon by KDE from SVG Repo: https://www.svgrepo.com/svg/500141/arrow-down, licensed under GPL License */
        padding: 17px;
        padding-bottom: 35px;
    }

    .aboutC {
        flex-direction: column;
    }

    .aboutC img {
        width: 70%;
        align-self: center;
    }
    
    .elementC {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #show div{
        flex-direction: column;
    }
    
    .element-img {
        margin: 3%;
        width: 80%;
        overflow: hidden;
    }

    .element-img img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }
    
    .element-text {
        text-align: center;
        margin: 3%;
        width: 80%;
    }
    

    #contact {
        padding-left: 5%;
        padding-right: 0;
        width: 100%;
    }

    .title {
        position: absolute;
        width: 58%;
        right: 3%;
        top: 42%;
    }

    .nicolas {
        top: 41%;
        left: 63%;
    }
    
    .ostheimer {
        top: 50%;
        left: 70%;
    }

    .home-img {
        left: 60%;
        transform: translateX(-40%);
        overflow: visible;
        width: 100vw;
    }

    .elementC {
        align-items: center;
    }

    #wide {
        display: none;
    }
    
    #narrow {
        display: block;
    }

    .quote {
        font-size: 24px;
        left: 40%;
    }

    .spacer {
        height: 30vh;
    }

    .logo-big {
        width: calc(80% - 5px);
        height: calc((80% - 5px) * 0.75);
        transition: width 0.5s ease, height 0.5s ease;
    }
    
    .logo-big:hover {
        width: calc(80% - 1px);
        height: calc((80% - 1px) * 0.75);
    }
    
    .logo-medium {
        width: calc(50% - 5px);
        height: calc((50% - 5px) * 0.75);
        transition: width 0.5s ease, height 0.5s ease;
    }
    
    .logo-medium:hover {
        width: calc(50% - 1px);
        height: calc((50% - 1px) * 0.75);
    }
    
    .logo-small {
        width: calc(33% - 5px);
        height: calc((33% - 5px) * 0.75);
        transition: width 0.5s ease, height 0.5s ease;
    }
    
    .logo-small:hover {
        width: calc(33% - 1px);
        height: calc((33% - 1px) * 0.75);
    }
}