﻿html {
    overflow-y: scroll;
}

body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-weight: 300;
    margin: 0;
    background-color: #f2f2f2;
    min-width: 550px;
}

/* ====== */
/* Header */
/* ====== */
#header {
    background-color: #d2423b;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    height: 70px;
    margin: 0 0 30px 0;
    color: #ffffff;
}

    /* Logo */
    #header .logo {
        height: 60px;
        width: 224.444px;
        margin: 5px 0 0 15px;
        display: inline-block;
        float: left;
        background-image: url(../img/logo.png);
        background-size: cover;
        text-indent: -9999px;
    }

    /* Sub Logo */
    #header #subheading {
        display: inline-block;
        margin-left: 30px;
        float: left;
        font-size: 18px;
        line-height: 80px;
    }

    /* Navigation */
    #header .navigation {
        float: right;
    }

        #header .navigation a {
            color: #ffffff;
            line-height: 70px;
            margin: 0 15px 0 15px;
            text-decoration: none;
            display: inline-block;
        }

    /* Transparent Header */
    #header.transparent {
        background-color: transparent;
        color: #4a4a4a;
        box-shadow: none;
    }

        #header.transparent .logo {
            background-position-y: -60px;
        }

        #header.transparent .navigation a {
            color: #4a4a4a;
        }


/* ======= */
/* Content */
/* ======= */
#content {
    max-width: 960px;
    min-width: 650px;
    margin: 0 auto;
}

    #content .title {
        font-size: 16px;
        margin: 0 0 5px 0;
    }

    #content .container {
        background: white;
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
        padding: 15px;
        box-sizing: border-box;
        margin: 0 auto;
        margin-bottom: 30px;
    }

        #content .container.child {
            margin: 0 0 8px 0;
        }

        #content .container.min-height {
            min-height: 120px;
        }

        #content .container .promotion img {
            width: 100%;
        }


/* ======== */
/* Elements */
/* ======== */
input[type=text] {
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 0 0 #00b367;
    display: block;
    padding: 5px;
    font-size: 14px;
    height: 35px;
    color: #555555;
    border-radius: 2px;
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    outline: none;
    width: 100%;
}

textarea {
    width: 100%;
    height: 150px;
}

a {
    color: #d2423b;
}

h1, h2, h3 {
    font-weight: 300;
    margin-top: 0;
}

.button {
    text-decoration: none;
    color: #fff;
    background-color: #d2423b;
    text-align: center;
    letter-spacing: .5px;
    transition: .2s ease-out;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    outline: 0;
    padding: 0 2rem;
    text-transform: uppercase;
}

    .button:hover {
        background-color: #e4473f;
        box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);
    }

    .button:active {
        box-shadow: inset 0 5px 11px 0 rgba(0,0,0,0.18),inset 0 4px 15px 0 rgba(0,0,0,0.15);
    }

#avcontainer .av {
    border: 1px solid #d9d9d9;
    text-align: center;
    margin: 0 auto;
}

#avcontainer span {
    color: #a6a6a6;
}


/* ===== */
/* Other */
/* ===== */
.hide {
    display: none;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.float-right {
    float: right;
}

.full-width {
    max-width: 98% !important;
}

.display-block {
    display: block;
}


/* ====================== */
/* Search Engine Selector */
/* ====================== */
#searchengines {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    #searchengines li {
        display: inline-block;
        width: 300px;
        height: 150px;
        background-image: url(../img/searchlogos.png);
        background-color: #fefefe;
        border: 1px solid silver;
        box-sizing: border-box;
        margin: 0 4px 14px 4px;
        border-radius: 3px;
        line-height: 150px;
        text-align: center;
        text-indent: -999999px;
    }

        #searchengines li:hover {
            background-color: #e5e5e5;
            cursor: pointer;
        }

        #searchengines li.current {
            background-color: #4f4f4f;
            cursor: default;
        }


[data-name="DuckDuckGo"] {
    background-position: -300px 0;
}

    [data-name="DuckDuckGo"].current {
        background-position: -300px -150px;
    }

[data-name="Bing"] {
    background-position: -600px 0;
}

[data-name="YouTube"] {
    background-position: -900px 0;
}

    [data-name="YouTube"].current {
        background-position: -900px -150px;
    }

[data-name="KidRex"] {
    background-position: -1200px 0;
}

[data-name="WikiPedia"] {
    background-position: -1500px 0;
}

    [data-name="WikiPedia"].current {
        background-position: -1500px -150px;
    }

[data-name="WolframAlpha"] {
    background-position: -1800px 0;
}

[data-name="Yahoo"] {
    background-position: -2100px 0;
}

[data-name="Baidu"] {
    background-position: -2400px 0;
}

[data-name="Ecosia"] {
    background-position: -2700px 0;
}

    [data-name="Ecosia"].current {
        background-position: -2700px -150px;
    }

[data-name="Custom"] {
    background-image: none !important;
    text-indent: 0 !important;
}

    [data-name="Custom"].current {
        color: #fff;
    }

@media screen and (max-width: 1000px) {
    body {
    }

    #content {
        max-width: 96%;
        min-width: 475px;
        margin: 0 auto;
        font-size: 125%;
    }

    .searchengines li {
        width: 300px;
    }

    .navigation a {
        font-size: 140%;
    }
}
