/** {
    border: 1px solid red;
}*/

html, body {
    /* Prevent the webpage from scrolling horizontally, */
    max-width: 100%;
    overflow-x: hidden;
    /* Remove white border around edges of body. */
    height: 100%;
    margin: 0;
    /* Allow all text to wrap when display is small enough. */
    word-wrap: break-word;
}

main {
    /* Prevent the main body from overlapping with the header. */
    margin-top: 60px;
    font-family: sans-serif;
    color: #EEE;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #414253;
    opacity: 0.95;
    /* Add the shadow to the header. */
	-webkit-box-shadow: 0 8px 9px -6px black;
	   -moz-box-shadow: 0 8px 9px -6px black;
	        box-shadow: 0 8px 9px -6px black;
}

header a {
    /* So that the ENcode text is not underlined on pages where it links back to the home page. */
    text-decoration: none;
}

#encode {
    font-family: 'courier-prime', monospace;
    text-shadow: 1px 1px 3px black;
    color: #EEE;
    /* 10px from the top and bottom, 20px from the sides; */
    margin: 10px 20px;
    /* So that things can sit next to the ENcode text in the header. */
    display: inline-block;
    /* Below is for the grow effect. */
    position: relative;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#encode::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#encode:hover {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
}

#encode:hover::after {
    opacity: 1;
}
/* Above code until the next comment above is for the grow effect. */

#budget {
    font-size:32px;
}

h2 {
    font-family: 'Arial Black';
}

p {
    font-family: sans-serif;
}

h2, p {
    padding: 30% 10% 10px 10%;
    color: #EEEEEE;
    vertical-align: middle;
    font-size: 24px;
}

#firstp {
    padding: 20px 10% 10px 10%;
}

.green {
    background-color: #259184;
}

.white p {
    color: #259184;
}

.col {
    width: 50%;
    height: 950px;
    float: left;
    text-align: center;
}

div img {
    margin: 20px;
    max-height: 900px;
    max-width: 80%;
}

.mobile {
    display: none;
}

#badge {
    height: 70px;
    float: right;
    margin-top: -5px;
    /* Below is for the grow effect. */
    position: relative;
    display: inline-block;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#badge::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#badge:hover {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
}

#badge:hover::after {
    opacity: 1;
}
/* Above code until the next comment above is for the grow effect. */

#legal {
    font-size:12px;
}

footer {
    text-align: center;
}

/* Tablet
@media (max-width:768px){
}*/

/* Mobile */
@media (max-width: 880px){
    .col {
        width: 100%;
        height: auto;
    }

    .mobile {
        display: initial;
    }

    .desktop {
        display: none;
    }

    h2, p {
        padding: 20px 10% 10px 10%;
        font-size: 1em;
    }

    #budget {
        font-size: 1.5em;
    }
}
