/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

html, body {
    height: 100%;
    font-family: 'Noto Serif', serif;
}

#intro {
    background: purple url("img/twitterbackgroundmobile.jpg") no-repeat;
    background-size: cover;
    background-position: right top;
    color: aliceblue;
    background-color: black;
    padding: 10px;
    height: 100%;
}

/* desktop sized images */
@media screen and (min-width: 768px){
    #intro {
        background-image: url("img/twitterbackground.jpg");
    }
}

#intro h1, #intro p {
    position: absolute;
}

h1 {
    font-size: 5vmax;
    font-weight: bold;
    text-align: center;
    top: 10%;
    left: 5%
}

#prompt {
    bottom: 10%;
    right: 5%;
    width: 40%;
}

a:link, a:visited {
    color: lightgoldenrodyellow;
}

a:active, a:hover {
    color: azure;
}


h2 {
    font-size: 1.5em;
    font-weight: bold;
}


h3 {
    text-align: center;
    font-size: 6vw;
    padding: 10px;
    color: white;
}

#textcontainer {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    height: 100%;
}

#textcontainer div {
    width: 50%;
    height: 50%;
    display: flex;
}

#textcontainer div p {
    padding: 20px;
    margin: auto;
}

.text {
    background-color: rgb(63, 69, 79);
    color: white;
    font-size: 0.8em;
}

p {
    line-height: 120%;
}

#device1 {
    background: rgb(63, 69, 79) url("img/device1mobile.jpg") no-repeat;
    background-size: cover;
    background-position: top left;
}

#device2 {
    background: rgb(63, 69, 79) url("img/device2mobile.jpg") no-repeat;
    background-size: cover;
    background-position: center bottom;
}

/* desktop sized images */
@media screen and (min-width: 1080px) {
    #device1 {
        background-image: url("img/device1.jpg");
    }
    
    #device2 {
        background-image: url("img/device2.jpg");
    }
}

.twittercontainer {
    display: flex;
    flex-flow: column;
    height: 200%;
    width: 100%;
}

.feedcontainer {
    box-sizing: border-box;
    height: 50%;
    padding-top: 5%;
}

.feed {
    width: 90%;
    max-width: 500px;
    height: 90%;
    overflow-y: scroll;
    margin: 0 auto;
}

#conservative {
    background-color: crimson;
}

#liberal {
    background-color: dodgerblue;
}

#footer {
    padding: 20px;
    color: white;
    background-color: black
}

#footer * {
    padding: 10px;
}

#footer a {
    padding: 0;
}

@media only screen and (min-width: 1000px){
    #prompt {
        bottom: 30%;
        right: 5%;
        width: 30%;
        font-size: 1.2em;
    }

    #explantation {
        bottom: 20%;
        right: 5%;
        width: 30%;
    }
    
    .text {
        font-size: 1.1em;
    }
    
    .twittercontainer {
        flex-flow: row-reverse wrap;
        height: 100%;
    }

    .feedcontainer {
        display: inline-block;
        width: 50%;
        height: 100%;
    }

    h3 {
        font-size: 3em;
    }
}