
body {
    font-family: Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0 auto;
}

#title-container {
    text-align: center;
    margin-top: 16px;
}

#product-icon {
    vertical-align: middle;
    width: 40px;
    height: 40px;
}

h1 {
    display: inline-block;
    margin-left: 16px;
    vertical-align: middle;
}

h2 {
    text-align: center;
}

.list-container {
    width: 60%;
    margin: 0 auto 200px auto;
    padding: 0;
}

ul li {
    position: relative;
    list-style-type: none;
    background-color: #EEEEEE;
    padding: 16px;
    border-radius: 4px;
    min-height: 120px;
    margin-bottom: 24px;
}

.votes-container {
    position: relative;
    background-color: white;
    border-radius: 4px;
    text-align: center;
    width: 104px;
    height: 136px;
    box-sizing: border-box;
    padding: 16px 16px 0px 16px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.votes-number {
    font-size: 2.3em;
    font-weight: 300;
    display: block;
}

.votes-label {
    text-transform: uppercase;
    position: relative;
    font-weight: 300;
}

.voted {
    color: #8BC34A;
    font-weight: bold;
}

.action-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    text-decoration: none;
    border-radius: 0px 0px 4px 4px;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.vote-button {
    background-color: #8BC34A;
    color: white;
    font-weight: bold;
}

.cancel-vote-button {
    background-color: transparent;
    color: grey;
    font-weight: normal;
}

.idea-title-container {
    position: absolute;
    top: 16px;
    margin-left: 128px;
    margin-right: 16px;
    height: 136px;
    line-height: 136px;
    overflow: auto;
}

.idea-title {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    font-size: 1.5em;
}

#button-wrapper {
    display: block;
    width: 100%;
    position: fixed;
    bottom: 0;
    margin-bottom: 48px;
    text-align: center;
}

#button-wrapper-no-idea {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 48px;
}

.material-button {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    font-size: 1.1em;
    padding: 16px;
    margin: 8px 16px;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.active-button {
    background-color: #8BC34A;
    min-width: 88px;
}

.cancel-button {
    background-color: transparent;
    color: black;
}

#propose-button {
    padding: 24px;
    font-size: 1.4em;
}

/* The Modal (background) */
.modal-background {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.dialog-content {
    background-color: #fefefe;
    border-radius: 4px;
    padding: 20px;
    border: 1px solid #888;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    width: 40%; /* Could be more or less, depending on screen size */
    text-align: center;
    position: fixed;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#idea-textarea {
    width: 100%;
    font-size: 1em;
    border-color: #9E9E9E;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

input[type=email] {
    display: block;
    padding: 12px;
    width: 80%;
    box-sizing: border-box;
    margin: 16px auto;
    font-size: 1em;
}

.propulsed-by {
    font-style: italic;
    width: 30%;
    margin: 16px auto 20px;
    text-align: center;
}

.status-ribbon {
    position: absolute;
    top: 8px;
    right: -4px;
    text-align: right;
    display: inline-block;
    background-color: #2196F3;
    padding: 4px 16px;
    border-radius: 6px 2px 2px 6px;
    color: white;
    box-shadow: 0px 2px 2px grey;
    z-index: 1;
}

/*********************
* For mobile devices *
**********************/

@media only screen and (max-width: 480px), (max-height: 480px) and (orientation:landscape) {
    h1 {
        margin-top: 8px;
        margin-bottom: 8px;
        font-size: 1em;
    }

    h2 {
        font-size: 0.8em;
    }

    .list-container {
        max-width: none;
        width: 95%;
        margin: 0 auto 112px auto;
        padding: 0;
    }

    ul li {
        padding: 16px;
        min-height: 104px;
        margin-bottom: 16px;
    }

    .votes-container {
        text-align: center;
        width: 72px;
        height: 104px;
        padding: 8px;
    }

    .votes-number {
        font-size: 1.8em;
    }

    .vote-button {
        padding: 8px;
        font-size: 0.8em;
    }

    .votes-label {
        font-size: 0.8em;
    }

    .cancel-vote-button {
        padding: 8px 0px 8px 0px;
        font-size: 0.8em;
    }

    .idea-title-container {
        height: 104px;
        margin-left: 92px;
        line-height: 104px;
    }

    .idea-title {
        font-size: 1em;
    }

    #button-wrapper {
        margin-bottom: 0;
    }

    .material-button {
        font-size: 1em;
        margin: 8px;
    }

    #propose-button {
        display: block;
        padding: 16px;
        margin: 16px;
        font-size: 1em;
    }

    .dialog-content {
        padding: 16px;
        width: 80%;
        top: 25%;
        -ms-transform: translate(-50%, -25%);
        transform: translate(-50%, -25%);
    }

    #idea-textarea {
        width: 100%;
        font-size: 1em;
        border-color: #9E9E9E;
        border-radius: 4px;
        padding: 8px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }

    .propulsed-by {
        font-size: 0.7em;
        width: 100%;
    }

    .status-ribbon {
        font-size: 0.8em;
    }

}