*{
    box-sizing: border-box;
    line-height: 1.4em;
}

body {
    margin: 0;
    padding: 0;
    color: #555;
    font-size: 16px;
}

body, 
input, 
textarea,
button {
    font-family: 'Roboto', sans-serif;
}

input[type=text],
input[type=email] {
    height: 2.7em;
}

input:disabled,
textarea:disabled{
    opacity: 0.5;
}

.masterWrap {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

h2 {
    width: 100%;
    float: left;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 400;
}

p {
    margin: 0 0 8px 0;
}

a {
    color: #4876bd;
}

.btn {
    box-shadow: 1px 4px 2px -2px rgba(0,0,0,0.2);
    background-color: #EEE;
    border: 0;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #222;
    min-height: 30px;
}

.btn:not(:disabled){
    cursor: pointer;
}

input[type=submit]{
    font-size: 1em;
    -webkit-appearance: none;
}


.btn > * {
    opacity: 0.8;
}

.btn:not(:disabled):hover {
    background-color: #FFF;
}

.btn:not(:disabled):hover > * {
    opacity: 1;
}

button:disabled{
    opacity: 0.4;
}



/* ----------- Head ------------- */

.header{
    margin: 0;
    background-color: #252525;
    color: white;
    float: left;
    width: 100%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    display: inline;
    font-size: 1.2em;
    margin: 0 0 0 5px;
    font-weight: 300;
}

.page{
    float: left;
    width: 100%;
    padding: 5px;
}

#btnAdd{
    height: 32px;
}

#btnAdd > *{
    display: inline-block;
    line-height: 20px;
    height: 20px;
}

#btnAdd > i {
    border: 0;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-image: url(/img/Pencil.svg);
    background-repeat: no-repeat;
}





/* ---------- Footer ------------ */

.footer{
    float: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px;
    margin-top: 15px;
}

.footer a {
    display: block;
    float: left;
    padding: 4px;
}

.footer .adminButtons {

}

.footer .externalPoetryPin{

}

.footer .partnerLinks {

}

.footer .partnerLinks a {
    display: block;
    float: left;
    padding: 0;
    margin: 0 2px;
}


/* ----------- Map -------------- */

#map-container{
    float: left;
    width: 100%; 
    height: 230px;
    margin-bottom: 5px;
}

#map_canvas{
    height: 100%;
    width: 100%;
    border: 1px solid #888;
}

.statusReport {
    float: left;
}

.statusReport i.gps {
    display: block;
    float: left;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-image: url(/img/GPS.svg);
}


/* --------- Poems ----------- */

.unlockedSubBar {
    float: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 0 5px 0;
}

.revealedReport{
    margin: 0;
}

.poems{
    width: 100%;
    float: left;
}

.poemsWrap {
    float: left;
    width: 100%;
    border: 1px solid #CCC;
    padding: 5px 5px 3px 5px;;
    margin-bottom: 10px;
}

.tip {
    color: #999;
    margin: 0 0 2px 0;
}

.sortOptions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sortLabel {
    color: #999;
    font-size: 0.8em;
    margin: 24px 0 4px 0;
}

#btnSortOrderUnlocked {
    margin-right: 5px;
}

#btnSortAlpha {
    
}

#unlockedPoems {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow: auto;
}

.poem {
    float: left;
    border-radius: 2px;
    margin-bottom: 2px;
    display: block;
}

.poem.locked {
    display: none;
    width: 24px;
    height: 24px;
    overflow: hidden;
    background-color: #9C9C9C;
    background-image: url(/img/White_lock.svg);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 2px 2px;
    text-indent: -9999px;
}

.poem.unlocked {
    clear: left;
    width: 100%;
    background-color: #384675;
    color: white;
    padding: 4px;
    cursor: pointer;
}

#unlockedPoems .poem.unlocked {
    -webkit-animation: newlyAddedThrob 4s;
       -moz-animation: newlyAddedThrob 4s;
         -o-animation: newlyAddedThrob 4s;
            animation: newlyAddedThrob 4s;

    -webkit-animation-iteration-count: 1;
       -moz-animation-iteration-count: 1;
         -o-animation-iteration-count: 1;
            animation-iteration-count: 1;
}

.poem.unlocked:hover{
    background-color: #4E4E4E;
}

.poemTitle{
    font-weight: 300;
    text-align: center;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.poemBody{
    margin-bottom: 1em;
}

.authorName{
    text-align: right;
    display: block;
}

/* ---- Throb animation on update --- */

@-webkit-keyframes newlyAddedThrob{
     0% { background-color: #4da791; }
    10% { background-color: #387566; }
    70% { background-color: #387566; }
    80% { background-color: #469683; }
    100%{ background-color: #384675; }
}

@-moz-keyframes newlyAddedThrob{
     0% { background-color: #4da791; }
    10% { background-color: #387566; }
    70% { background-color: #387566; }
    80% { background-color: #469683; }
    100%{ background-color: #384675; }
}

@-o-keyframes newlyAddedThrob{
     0% { background-color: #4da791; }
    10% { background-color: #387566; }
    70% { background-color: #387566; }
    80% { background-color: #469683; }
    100%{ background-color: #384675; }
}

@keyframes newlyAddedThrob{
     0% { background-color: #4da791; }
    10% { background-color: #387566; }
    70% { background-color: #387566; }
    80% { background-color: #469683; }
    100%{ background-color: #384675; }
}


/* -------------------- */

.instructions {
    float: left;
    width: 100%;
}

/* Mask (behind modals) */

.mask.down{
    display: none;
    width: 0;
    height: 0;
}

.mask.up{
    background-color: rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


/* Modals */

.modal.down{
    display: none;
    width: 0;
    height: 0;
}

.modal.up {
    background-color: #F8F8F8;
    position: absolute;
    padding: 1em;
    top: 20px;
    left: 20px;
    right: 20px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
}

.modal h2{
    margin-top: 0;
}

.modal .btnClose{
    float: right;
    background: #888 url(/img/Cross.svg) no-repeat center center;
    color: white;
    border: 0;
    border-radius: 50%;
    height: 42px;
    width: 42px;
    margin-top: -20px;
    margin-right: -20px;
    box-shadow: 1px 4px 2px -2px rgba(0,0,0,0.2);
}

.modal .btnClose:hover{
    background-color: #999;
    cursor: pointer;
}

#submissionFeedback{
    position: absolute;
    margin-top: 250px;
    margin-left: 50%;
    z-index: 1000;
}

#submissionFeedback .seater{
    display: block;
    width: 100px;
    margin-left: -40px;
    background-color: white;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 0 8px;
}

#submissionFeedback i.spinner,
#submissionFeedback i.tick{
    display: block;
    width: 55px;
    height: 55px;
    margin: 5px auto 5px auto;
}

#submissionFeedback i.spinner{
    background-image: url('/img/largeSpinner.gif');
}

#submissionFeedback i.tick{
    background-image: url('/img/tick.png');
}

.modal label{
    width: 100%;
    float: left;
}

.modal .formRow{
    margin-bottom: 10px;
}

.modal input,
.modal textarea{
    width: 100%;
    border: 1px solid #888;
    border-radius: 3px;
    padding: 5px;
}

.modal textarea{
    height: 300px;
}

/* General class for blurring background */

.blur{
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    -o-filter: blur(3px);
    -ms-filter: blur(3px);
    filter: blur(3px);
}

.preloadHack{
    width: 1px;
    height: 1px;
    opacity: 0.1;
}
