* { margin: 0; padding: 0; border: 0;box-sizing: border-box;
}

:root {
    font-size: 62.5%;
}

#container {
    width: 90vw;
    margin: auto; 
}

header {
    height: 190px;
    background-image: url(/images/fm7.jpg);
    background-size: cover;
    background-position: center;
    font-size: 2rem;
    border: 1px solid #000;
}

#logo {
    background-image: url(/images/bfm-logo.webp);
    background-size: cover;
    background-position: center;
    background-color: white;
    height: 170px;
    width: 210px;
    padding: 5px;
    border: 5px solid white;
    margin: 5px;
    display: flex;
}

#logo > a {
    flex: 1 0 100%;
}

#announments {
    background-color: rgb(225, 166, 36);
    font-size: 2rem;
    text-align: center;
    padding: 10px;
}

#main {
    height: 74%;
    font-size: 2rem;
    display: flex; 
    flex-flow: row wrap;
}

nav {
    flex:1 0 100%;
    background-color: darkgray; 
    display:flex;
    flex-flow: row wrap;
}

#linkbox {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row wrap;
}

#linkbox > a {
    border: 2px solid red;
    flex: 1 0 auto;
    height: 40px;
    margin: 5px;
    text-decoration: none;
    color:black;
    font-size: 2.5rem;
    padding: 5px;  
}

.blocks {
    background-color: #009bb0;
    min-width: 80%;
    flex: 1 0 100%;
    display: flex;
    flex-flow: row wrap;   
}

.blocks > *{
    display: block;
    width: 250px;
    height: 200px;
    margin: 5px;
    flex: 1 0 auto;
}

.b1 {
    background-image: url(/images/fm2.jpg);
    background-position: center;
    background-size: cover;
}

.b2 {
    background-color: #fd6d3c;
    display: flex;
    flex-flow: row wrap;
}

.b2 > p {
    flex: 1 0 auto;
    height: 20%;
    background-color: #d7ac9e;
    padding: 10px;
    text-align: center;
}

.b2 > video {
    flex: 1 0 auto;
    width: 90%;
    height: 80%;
    border: 10px solid #fd6d3c;
}

.b3 {
    background-image: url(/images/dfm-map.png);
    background-position: center;
    background-size: cover;
    display: flex;

}

.b3 > a {
    flex: 1 0 auto;
    height: 100%; width: 100%;
}

.b4 {
    background-image: url(/images/fm4.jpg);
    background-position: center;
    background-size: cover;
}

.b5 {
    background-image: url(/images/fm5.jpg);
    background-position: center;
    background-position-y: -60px;
    background-size: 100%; 
}

.b6 {
    background-color: white;
    background-image: url(/images/snap-logo.jpg);
    background-position:center;
    background-size:contain;
    background-repeat: no-repeat;
    display: flex;
}

.b6 > a{
    flex: 1 0 auto;
    height: 100%;
    width: 100%;
}


footer {
    height: 80px;
    background-color: rgb(225, 166, 36);
    font-size: 2rem;
    padding: 5px;
}

@media screen and (min-width: 500px) {

    .blocks > *{
        flex: 1 0 35%;
        height: 180px;

    }

}

@media screen and (min-width: 800px) {
   
   
    nav {
        flex: 1 0 100%;  
    }
    
    .b6{
        border-bottom: 10px solid white;
        border-top: 10px solid white;
        
    }

    .blocks > *{
        flex: 1 0 30%;
        height: 260px;
    }
    
}

@media screen and (min-width: 1200px) {
    
    nav {
        flex: 1 0 20%;
        height: 960px;
        background-color: #ffe845;      
    }

    #linkbox {
        height: 40%;
        margin-top: 5px;

    }

    #linkbox > a{
        width: 80%;
        margin-left: 10px;
        margin-right: 10px;     
    }

    #linkbox > a:hover {
        background-color: rgb(225, 166, 36);
        border-color: black;
    }
    
    .blocks {
        flex: 1 0 80%; 
    }

    .blocks > *{
        flex: 1 0 35%;
        height: 300px;
        margin: 10px;   
    }  
}



