
@font-face {
    font-family: 'ntnu-font';
    src: url("fonts/ntnu.ttf");
}

@font-face {
    font-family: 'ntnu-title';
    src: url("fonts/ntnu-title.ttf");
}

body {
    padding: 0;
    margin: 0;
    font-size: 17px;
    font-family: 'ntnu-font', sans-serif;
}

h4, h5 {
    font-family: 'ntnu-title', sans-serif;
    text-transform: uppercase;
}

#city-selection-wrapper {
    display: flex;
    justify-content: center;
}
.city {
    max-width: 400px;
    min-width: 200px;
    margin: 10px;
    text-align: center;
    flex: 1 1 auto;
    border: 2px solid rgba(0,0,0,0.07);
    -webkit-box-shadow: -2px -1px 15px 2px rgba(0,0,0,0.05);
    -moz-box-shadow: -2px -1px 15px 2px rgba(0,0,0,0.05);
    box-shadow: -2px -1px 15px 2px rgba(0,0,0,0.05);
    color: rgb(50, 50, 50);
    position: relative;
}
.btn {
    background-color: rgb(240, 240, 240);
}

.bg_img {
    width: 100%;
    position: relative;
}
.after {
    position: absolute;
    top:0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    transition: all .4s ease-in-out;
}
.city:hover > .after {
    background-color: rgba(0,0,0,0.6);
}


.img_front {
    position: absolute;
    bottom: 20px;
    text-align: center;
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.img_front h5 {
    margin-bottom: 0px;
}
.city p {
    font-size: 0.9em;
    margin-bottom: 20px;
}
.valgbutton {
    display: block;
    width: 150px;
    margin: auto;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    background-color: #00519d;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
}

.valgbutton-left {
    background-color: #0097d0;
    width: 90px;
    margin: 0;
    padding: 8px;

}
.valgbutton-center {
    margin-top: 20px;
    background-color: #0097d0;
}
.valgbutton:hover {
    text-decoration: none;
    color: white;
}
.info-text-wrapper {
    display: flex;
    justify-content: center;
}
.info-text {
    width: 300px;
    margin: 20px;
    color: rgb(70, 70, 70);
}
.info-text p {
    font-size: 0.9em;
    margin-bottom: 10px;
}
#quiz {
    display: none;
}
.nav-bar {
    display: flex;
    width: 100%;
    padding: 10px 10px 10px 10px;
    background-color: #363636;
    margin-bottom: 20px;
}
.nav-bar div {
    font-size: 15px;
    color: white;
    position: relative;
}
.nav-left {
    flex: 2;
}
.nav-right {
    flex: 1;
    text-align: right;
}
#result {
    display: none;
}
#result-container {
    display: flex;
    flex-direction: column;
}
#topCandidates {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 15px;
}
.candidate {
    text-align: center;
}
.candidate-image {
    display: inline-block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    margin: 5px;
    border: 3px solid white;
    -webkit-box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.5);
}
.candidate-image-width {
    height: auto;
    width: 100%;
}
.candidate-image-height {
    width: auto;
    height: 100%;
}
#currentQuestion {
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: 1em;
    text-align: center;
}
.slice-line {
    width: 60px;
    height: 5px;
    background-color: #363636;
    margin: 0 auto;
    margin-bottom: 15px;
}
#questionTitle {
    text-align: center;
    margin-bottom: 5px;
}
.btn-next {
    position: absolute;
    bottom: 15px;
    right: 15px;
}
.btn-next img {
    width: 80px;
    transition: all .3s ease-in-out;
}
.btn-next img:hover {
    width: 85px;
}
.btn-previous {
    position: absolute;
    bottom: 15px;
    left: 15px;
}
.btn-previous img {
    width: 80px;
    transform: scaleX(-1);
    transition: all .3s ease-in-out;
}
.btn-previous img:hover {
    width: 85px;
}
#questionNavigation {
    display: flex;
    justify-content: center;
    width: 530px;
    margin: 0 auto;
    font-size: 0.85em;
}
.result-div-wrapper {
    width: 80%;
    margin: auto;
}
.result-div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 70px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.result-image-holder {
    display: inline-block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    margin: 5px;
    margin-right: 30px;
    border: 3px solid white;
    -webkit-box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.5);
}
.progress-80 {
    width: 80%;
}
.hidden {
    display: none;
}
.read-more-button img {
    width: 25px;
}
div > p {
    margin: 0;
}
label {
    text-align: center;
}
label > input {
    visibility: hidden;
    position: absolute;
}
label > input + img {
    width: 75px;
    height: 75px;
    cursor: pointer;
    border: 2px solid transparent;
}
label > input:checked + img {
    border: 3px solid cornflowerblue;
    border-radius: 50%;
}

.flex-1 {
    flex: 1;
}
.flex-2 {
    flex: 2;
}
.flex-3 {
    flex: 3;
}
.flex-4 {
    flex: 4;
}


.center-styrevalg {
    margin: auto;
}

.heart-untoggled, .heart-toggled {
    display: block;
    width: 60px;
    height: 60px;
    background-size: 60px 60px;
    margin-left:auto;
    margin-right: auto;
    transition: all .1s ease-in-out;
}


.heart-untoggled {
    background-image: url('img/heart_untoggled.png');
}
.heart-toggled {
    background-image: url('img/heart_toggled.png');
}

.creaditering {
    text-align: center;
    color: lightblue;
    font-size: 0.4em !important;
    margin: 0 !important;
    padding: 0;
}

/* TODO: responsive design
 */

@media screen and (max-width: 320px){
    .top-five {
        display: none;
    }
}

@media screen and (max-width: 635px){
    body {
        font-size: 16px;
    }
    .info-text-wrapper {
        flex-direction: column;
    }
    .info-text {
        margin: auto;
        margin-bottom: 20px;
    }
    #city-selection-wrapper {
        flex-direction: column;
        margin: auto;
    }
    #city-selection h4 {
        margin-bottom: 20px;
    }
    .city {
        width: 300px;
        margin: auto;
        margin-bottom: 20px;
    }
    .candidate-image {
        width: 50px;
        height: 50px;
    }
    label > input + img {
        width: 50px;
        height: 50px;
    }
    label > p {
        font-size: 1.5em;
    }
    .heart-untoggled, .heart-toggled {
        width: 45px;
        height: 45px;
        background-size: 45px 45px;
    }
    #questionNavigation {
        width: 100%;
        font-size: 0.6em;
    }
    #currentQuestion {
        font-size: 1.1em;
    }
    .nav-bar p {
        font-size: 0.66em;
    }
    .hide-small {
        display: none;
    }
    .show-small {
        display: block;
    }
    .result-name {
        font-size: 0.7em;
    }
    .result-div-wrapper {
        width: 95%;
    }
    .btn-next img {
        width: 60px;
    }

    .btn-previous img {
        width: 60px;
    }

    .btn-next img:hover {
        width: 65px;
    }

    .btn-previous img:hover {
        width: 65px;
    }
}
@media screen and (min-width: 1300px) {
    body {
        font-size: 22px;
    }
    .candidate-image {
        width: 150px;
        height: 150px;
    }

    .btn-next img {
        width: 120px;
    }

    .btn-previous img {
        width: 120px;
    }

    .btn-next img:hover {
        width: 130px;
    }

    .btn-previous img:hover {
        width: 130px;
    }

    label > input + img {
        width: 105px;
        height: 105px;
    }
    .heart-untoggled, .heart-toggled {
        width: 90px;
        height: 90px;
        background-size: 90px 90px;
    }
    #currentQuestion {
        max-width: 700px;
    }

    #questionNavigation {
        width: 700px;
        font-size: 0.9em;
    }
    label > p {
        font-size: 1em;
    }
}
#no-city-text, #no-election, #city-image {
    display: none;
}

#modal-button-div {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#nav-img-container {
    cursor: pointer;
    position: relative;
    height: 21px;
}

#nav-img {
    position: absolute;
    bottom: 5px;
    left: 0;
}

#nav-text {
    position: absolute;
    bottom: 5px;
    left: 15px;
    line-height: 1;
}

.no-election-button {
    width: 200px;
}

.next-question-disabled {
    content: url('img/pek_disabled.png');
    cursor: default;
}

.next-question-enabled {
    content: url('img/pek.png');
}