/*
CSS stylesheet for the homepage of the Find my fit website.
Find my fit was made by Vendula Procházková and Dominik Beran
*/

body {
    background-image: url(../img/background-HQ.png); /*the sponge-like background image*/
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    height: 100%;
}

.top-bar {
    /* div container for the bar at the top*/
    margin: 0;
    width: 100%;
    height: 8vh;
    /*background-color: red;*/
    /*for debug purpouses*/
    align-items: center;
    display: flex;
}

.top-bar-image {
    /*div for the image of the bar at the top*/
    width: 100%;
    height: 60%;
    background-color: #e63da5;
    /*debug; also serves as the background colour, were the image not to load.*/
    background-image: url(../img/strip-top.png);
    background-position: center;
    border: white 2px solid;
    filter:saturate(0);
    border-left: none;
    border-right: none;
    /* remove the white line at the left and right. there's probably a better way to do this.*/
}

.main-content {
    width: 100%;
    margin: 0;
}

.name-socials {
    width: 100%;
    height: 20vh;
    background-color: rgba(255, 0, 0, 0);
}

.name {
    background-color: rgba(0, 128, 0, 0);
    height: 70%;
    width: 100%;
}

@font-face {
    /*custom downloaded font for the name of the website*/
    font-family: headerFont;
    src: url(../horizon.otf);
}


.name-text {
    margin: 0;
    height: 4vh;
    font-size: 5vh;
    font-family: headerFont;
    color:rgba(255, 255, 255, 0);
}

#name1{
    animation: fadeText 700ms 0s 1 forwards;
}
#name2{
    animation: fadeText 700ms 200ms 1 forwards;
}
#name3{
    animation: fadeText 700ms 400ms 1 forwards;
}

@keyframes fadeText {
    from {color:rgba(255, 255, 255, 0);}
    to {color:rgb(255, 255, 255);}
}

.socials {
    height: 30%;
    width: 40vh;
    display:flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: rgba(255, 255, 0, 0);
}

.social-logo{
    height:3.5vh;

}

.about-us{
    width:120vh;
    height:65vh;
}

.about-title{
    color:white;
    font-family: headerFont;
    font-size: 4vh;
    text-align: left;
    margin-top:-4vh;
}

.about-grid-container{
    display: grid;
    grid-template-columns: 75% 25%;
    grid-template-rows: 50% 50%;
    height:55vh;
    grid-template-areas: 'long-text our-minds' 'long-text about-image';
}

#long-text{
    grid-area:long-text;
    background-color: black;
    background-image: url("/img/swirly-bg-dark.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-width: 1vh;
    border-style:solid;
    border-color:#151213;
    font-family:"DM Sans";
    font-size: 2vh;
    text-align: left;
    color:white;
    padding-left:2vh;
    padding-right:2vh;
}

#our-minds{
    grid-area:our-minds;
    background-color: black;
    background-image: url("/img/swirly-bg-dark.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-width: 1vh;
    border-style:solid;
    border-color:#151213;
    font-family:"DM Sans";
    font-size: 2vh;
    text-align: left;
    color:white;
    margin-left:1vh;
    margin-bottom:0.5vh;
    padding-top:1vh;
    padding-left:2vh;
    padding-right:2vh;
}

.mind-header{
    font-family:headerFont;
    text-align: center;
    margin:0;
}

.mind-text{
    margin:0;
    padding:0;
    display: inline;
}

.seal{
    background: none;
    border:none;
    font-size: 2vh;
    font-family: "DM Sans";
    color:white;
}

.birdie{
    color:rgb(219, 89, 89);
}

#about-image{
    grid-area:about-image;
    background-color: black;
    background-image: url("./us.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-width: 1vh;
    border-style:solid;
    border-color:#151213;
    font-family:"DM Sans";
    font-size: 2vh;
    text-align: left;
    color:white;
    margin-left:1vh;
    margin-top:0.5vh;
    padding-left:2vh;
    padding-right:2vh;
}


.other-links{
    width:50vw;
   /* padding-left:10vw;
    padding-right:10vw;*/
    height:5vh;
    display:flex;
    justify-content: space-evenly;
}

.link-button{
    height:100%;
    width:15vw;
    background-color: white;
    font-family: headerFont;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:url(../img/bottom-buttons-bg.png);
}

.return-container{
    width:100%;
    display: flex;
    justify-content: right;
    margin-bottom: 4vh;
}

.return-container>a{
    text-decoration: none;
}

.return{
    width:13.75vw;
    height:5vh;
    background-color:gray;
    background-image: url(../img/swirly-bg-dark.jpg);
    background-position: center;
    margin-top:1vh;
    font-family: "DM Sans";
    color:white;
    border-width: 0.8vh;
    border-style:solid;
    border-color:#151213;
    font-size:3.7vh;
}

.bot-bar {
    /* div container for the bar at the top*/
    margin: 0;
    width: 100%;
    height: 8vh;
    /*background-color: red;*/
    /*for debug purpouses*/
    align-items: center;
    display: flex;
    bottom: 0%;
    position:absolute;
}

.bot-bar-image {
    /*div for the image of the bar at the top*/
    width: 100%;
    height: 60%;
    background-color: #e63da5;
    /*debug; also serves as the background colour, were the image not to load.*/
    background-image: url(/img/strip-top.png);
    background-position: center;
    border: white 2px solid;
    border-left: none;
    border-right: none;
    filter:saturate(0);
    /* remove the white line at the left and right. there's probably a better way to do this.*/
}


.sealing{
    background-image: url(../img/seal.gif);
}

@media (aspect-ratio < 1.23){
    .about-us{
        width:95vw;
    }
    .about-title{
        font-size: 3vw;
    }
    .about-grid-container{
        height:45vw;
    }
    #long-text{
        font-size: 1.61vw;
    }
    #our-minds{
        padding:1vw;
        line-height: 2vw;
    }
    .mind-text{
        font-size:1.7vw;
    }
    .return{
        width:20vw;
    }
}

@media (aspect-ratio < 1){
    .about-us{
        height: auto;
    }
    .about-title{
        margin:0;
        font-size: 5vw;
    }
    .about-grid-container{
        display:flex;
        flex-direction: column;
        height: fit-content;
    }  
    #long-text{
        height:fit-content;
        font-size: 3vw;
    }
    #our-minds{
        margin-left: 0;
        margin-top:2vw;
        height:fit-content;
        line-height: 4vw;
        padding:2vw;
    }
    .mind-header{
        font-size:4vw;
    }
    .mind-text{
        font-size: 3vw;
    }
    #about-image{
        margin:0;
        height:100vw;
    }
    .return-container{
        margin-bottom: 2vh;
    }
    .return{
        width:93.5vw;
    }
    .bot-bar {
        position: relative;
    }
}

@media (aspect-ratio < 0.7){
    /*body{
        background-image:none;
        background-color: rgb(44, 14, 14);
    }*/
    .top-bar{
        height:3vh;
    }
    .name-text{
        font-size:8vw;
    }
    #long-text{
        font-size:5vw;
    }
    #our-minds{
        line-height: 6vw;
    }
    .mind-text{
        font-size:5vw;
    }
    .bot-bar{
        height:3vh;
    }
}