/* ***************************** global styles ***************************** */
html {
    font-size: 100%;
}
body {
    font-family: 'Montserrat', sans-serif;
    
}
div > hr {
    margin-top: 0;
    color: red;
    width: 2rem;
}
/* ***************************** header styles ***************************** */
.container-fluid {
    padding: 0.5rem 2rem 0.5rem;
}
.container-fluid > div > ul > li {
    padding-right: 5rem;
}
.navbar-brand {
    margin-left: 5.5rem;
}
/* ***************************** body styles ***************************** */

h2 {
    text-align: center;
    margin-top: 5%;
    font-weight: bold;
}

#left {
    margin-left: 10%;
    margin-top: 10%;
}

.line1 {
    width: 35%;
    height: 5%;
    border-bottom: 3px solid black;
    margin-top: 2%;
}

#rect1 {
    position:absolute;
    left:60%;
    margin-top: -10%;
    background-color: #54C9EE;
    width: 40%;
    height: 50%;
    border-radius: 10px 0px 0px 10px;
}

#rect2 {
    position:absolute;
    left:0%;
    margin-top: 20%;
    background-color: #54C9EE;
    width: 40%;
    height: 50%;
    border-radius: 0px 10px 10px 0px;
}

#right {
    margin-left: 70%;
    margin-top: 30%;
}

.line2 {
    width: 55%;
    height: 5%;
    border-bottom: 3px solid black;
    margin-top: 3%;
}

#source {
    position:absolute;
    left:20%;
    margin-top: 20%;
    width: 70%;
    height: 50%;
}

#rect3 {
    position:absolute;
    left:0%;
    margin-top: 5%;
    background-color: #54C9EE;
    width: 80%;
    height: 70%;
    border-radius: 10px 10px 10px 10px;
}

#rect3 a {
    margin-left: 5%;
}

#rect1 p, #rect2 p, #rect3 p {
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 5%;
}

/* ***************************** footer styles ***************************** */

 .footer {
    position: absolute;
    bottom: -300%;
    width: 100%;
    margin-top: auto;
    background-color:black;
    padding: 2rem 0;
    color:hsl(0, 0%, 100%);
 }

.more-links {
    display: flex;
    justify-content: center;

 }

 .footer  a {
    text-decoration: none;
    color: hsl(0, 0%, 100%);
    padding: 1rem;
    margin: 1rem; 
    
 }

/* media */

.media {
    display: flex;
    justify-content: center;
}

.fa-twitter, .fa-linkedin, .fa-youtube, .fa-instagram, .fa-skype, .fa-reddit {
    color: hsl(0, 0%, 100%);
    font-size: 1rem;
    text-align: center; 
    border-radius: 50%;
}

.fa-twitter {
  background: hsl(206, 82%, 63%);
 
}

.fa-linkedin {
  background: hsl(199, 100%, 35%);
 
}

.fa-youtube {
  background: hsl(0, 100%, 37%);
 
}

.fa-instagram {
  background: hsl(205, 77%, 30%);
  
}

.fa-skype {
  background: hsl(196, 100%, 47%);
  
}

.fa-reddit {
  background: hsl(20, 100%, 50%);
  
}

.fa:hover {
    opacity: 0.5;
}

.copyright {
    margin-top: 1rem;
    text-align: center;
}

/* ***************************** tablet-view styles ***************************** */
@media screen and (max-width: 990px) {
    #left {
        margin-top: 15%;
        margin-right: 50%;
    }

    #rect2 {
        margin-top: 40%;
        width: 55%;
        height: 60%;
    }

    #right {
        margin-top: 50%;
    }

    #source {
        margin-top: 60%;
    }

    #rect3 {
        width: 85%;
        height: 80%;
    }

    .footer {
        position: absolute;
        bottom: -350%;
    }
    
}

/* ***************************** mobile-view styles ***************************** */
@media screen and (max-width: 500px) {
    .logo {
        width:40%;
        height: auto;
    }
    
    #left {
        margin-left: 5%;
    }

    #rect1 {
        height: 60%;
        width: 50%;
        left: 50%;
    }

    #rect2 {
        margin-top: 100%;
        width: 50%;
        height: 110%;
    }

    #right {
        margin-top: 230%;
        margin-left: 65%;
    }

    #source {
        margin-top: 140%;
    }

    #rect3 {
        width: 100%;
        height: 120%;
    }

    .footer {
        position: absolute;
        bottom: -400%;
    }
}
