@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight:100;
    font-style: normal;
}

:root {
    --height-header: 120px;
    --main-colors: #161311;
    --container-color: #161311e0;
}

* {
    max-width: 100vw;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: black;
}

p, a, h1, h2, h3, h4, th, td {
    font-family: 'Quicksand', sans-serif;
    /* text-decoration-thickness: 1px; */
    text-decoration-color: rgba(255, 255, 255, 0.5);
    color: white;
    /* font-weight: normal; */
}

p, a, th, td {
    font-size: 20px;
}

.landingPage {
    background-image: url("../images/BG3.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 90vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



#flag img {
    width: 42px;
    height: 42px;
    /* margin-top: 20px; */
}

#flag img:hover {
    opacity: 0.7;
}

.cards {
    display: flex;
    justify-content: space-evenly;
    margin: 37px auto 0;
  }
  
  .card {
    cursor: pointer;
    background-color: #161311;
    height: 300px;
    width: 243px;
  }

  .card:hover {
    box-shadow: 0 0 10px 5px  #3f3f3f;
  }

  .card-body {
    text-align: center;
  }
  
  .card h2 {
    font-size: 20px;
    font-weight: bold;
  }

  .card img {
    width: 243px;
    height: 130px;
  }
  
/* .Title h1{
    font-size: 30px;
    text-align: center;
} */

.FooterItem {
    min-width: 350px; 
}

header {
    display: flex;
    height: var(--height-header);
    width: 100%;
    top: 0px;
    left: 0px;
    /* flex-direction: column; */
    z-index: 99999;
    position: sticky;
    color: white;
    background-color: #161311;
}

.Logo {
    height: 100px;
    width: 300px;
    margin-right: auto;
    margin-left: auto;
    background-image: url('../images/rafikilogo.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

nav {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    z-index: 5;
}

nav a {
    padding-right: 10px;
    padding-left: 10px;
    text-decoration: none;
    font-size: 25px;
}

nav a:hover {
    color: #cfcfcfe0;
}


footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 80px;
    bottom: 0px;
    z-index: 100001;
    font-size: 30px;
    background-color: #161311;
}

footer #Socials {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

footer #Socials div {
    display: flex;
    max-width: 50%;
    flex-direction: row;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
}

/* Used for adding a dropshadow to elements */
.BoxShadow {
    box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.7);
    -webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.7);
    -moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.7);
}

/* First and last element of main should have a margin to not be covered from the header and footer */
main > :first-child {
    margin-top: 100px;
}

main > :last-child {
    margin-bottom: 250px;
}

.Container {
    width: 700px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    background-color: #161311e0;
    z-index: 3;
    justify-content: center;
    align-items: center;
    /* 
        Set the scroll margin top on all containers, also added 2.5em for som room over the element
        Source: https://stackoverflow.com/questions/38069213/add-padding-top-to-scroll-when-using-href-id
    */
    scroll-margin-top: calc(var(--height-header) + 2.5em);
}

.ContainerPer {
    width: 700px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    background-color: #161311e0;
    z-index: 3;
    justify-content: center;
    align-items: center;
    text-align: right;
    /* 
        Set the scroll margin top on all containers, also added 2.5em for som room over the element
        Source: https://stackoverflow.com/questions/38069213/add-padding-top-to-scroll-when-using-href-id
    */
    scroll-margin-top: calc(var(--height-header) + 2.5em);
}

.Icon {
    height: 50px;
    width: 50px;
    margin: 15px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.TwitterIcon {
    background-image: url('../images/twitter-fill.svg');
    background-repeat: no-repeat;
}

.TwitterIcon:hover {
    opacity: 0.7;
}

.FacebookIcon {
    background-image: url('../images/facebook-circle-fill.svg');
    background-repeat: no-repeat;
}

.FacebookIcon:hover {
    opacity: 0.7;
}

.InstagramIcon {
    background-image: url('../images/instagram-fill.svg');
    background-repeat: no-repeat;
}

.InstagramIcon:hover {
    opacity: 0.7;
}

.FooterLeft {
    display: flex;
    width: 31%; 
    margin-left: 50px;
}

.FooterLeft p {
    color: white;
    font-size: 12pt;
    text-decoration-color: white;

}

.FooterLeft a {
    color: white;
    font-size: 12pt;
    text-decoration-color: white;

}

/* Changes on small screens */
@media (max-width: 800px) {
    .landingPage {
        height: fit-content;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        margin: 20px;
    }

    .Container {
        max-width: 75vw;
    }

    .ContainerPer {
        max-width: 75vw;
    }
    /* Change layout of the footer to columns instead of row */
    footer {
        flex-direction: column;
        position: relative;
        bottom: 0px;
        max-height: fit-content;
        height: 100%;
    }

    .FooterLeft {
        justify-content: center;
        margin-left: 0px;
        flex-wrap: nowrap;
        min-width: 220px;
    }

    .FooterLeft p {
        margin: 5px;
    }

    footer #Socials {
        margin: 5px;
    }
}

@media (max-width: 660px){
    header {
        flex-direction: column;
    }

    nav {
        margin-bottom: 5px;
    }

    .Logo {
        width: 250px;
        height: 200px;
    }
    
}

@media (max-width: 370px){
    nav a {
        font-size: 20px;
    }
}