@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

:root {
    --primary-color: #FFFFFF;
    --primary-color-dark: #5F7A14;
    --accent-color: #1C1C1B;
    --accent-color-dark: #000000;
    
    --background-color: rgb(243, 243, 243);
    --content-color: #95C11F;
    --content-color2: rgb(27, 27, 27);
    --error-color: #af1919;
    --field-border-color: rgb(207, 207, 207);

    --default-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.20),
              0 3px 1px -2px rgba(0, 0, 0, 0.14),
              0 1px 5px 0 rgba(0, 0, 0, 0.12);

    --default-shadow-notop: 0 2px 2px 0 rgba(0, 0, 0, 0.20),
              0 3px 0px -2px rgba(0, 0, 0, 0.14),
              0 1px 5px 0 rgba(0, 0, 0, 0.12);

    --default-shadow-big: 0 4px 4px 0 rgba(0, 0, 0, 0.20),
              0 6px 3px -2px rgba(0, 0, 0, 0.14),
              0 3px 10px 0 rgba(0, 0, 0, 0.12);
}

html, body{
    margin: 0;
    padding: 0;

    font-family: 'Roboto', sans-serif;
}

body{
    height: 100vh;
    background-color: var(--background-color);
}

a{
    text-decoration: none;
    color: var(--content-color);
}

header{
    height: 56px;

    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;

    background-color: var(--primary-color);
    color: var(--content-color);
    box-shadow: var(--default-shadow);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    z-index: 100;
}
header.sticky{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
}
header .title{
    font-size: 1.3em;
    margin: 0;
}
header a{
    height: 90%;
}
header .icon{
    height: 90%;
}
header i{
    color: var(--content-color);
}
header .tricon{
    margin-left: 12px;
    cursor: pointer;
}
content{
    display: block;

    flex-grow: 1;
}

.errorfield{
    color: var(--error-color);
    margin-top: -12px;
    margin-left: 0px;

    font-size: 0.8em;

    display: none;
}

.ltdialog-panel{
    width: 480px;
}

@media only screen and (max-width: 481px) {
    .ltdialog-panel{
        width: 80vw;
    }
}

input, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.info-text-center{
    margin: auto;
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 8vh;
}


.offer{
    display: flex;

    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
.offer .name{
    margin-top: 0;
    margin-bottom: 8px;

    font-size: 1.4rem;
    color: black;

    overflow: hidden;
    word-wrap: break-word;
}
.offer .offercontent{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;

    text-decoration: none;
}
.offer .offercontent .discount{
    background: var(--content-color);

    width: 100%;
}
.offer .offercontent .discount .value{
    margin: 0;

    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;

    line-height: 36px;

    color: white;
}
.offer .offercontent .image{
    width: 120px;

    min-width: 120px;
    min-height: 90px;

    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBmaWxsPSJ3aGl0ZSI+CiAgPHBhdGggZD0iTTAgNCBMMCAyOCBMMzIgMjggTDMyIDQgeiBNNCAyNCBMMTAgMTAgTDE1IDE4IEwxOCAxNCBMMjQgMjR6IE0yNSA3IEE0IDQgMCAwIDEgMjUgMTUgQTQgNCAwIDAgMSAyNSA3Ij48L3BhdGg+Cjwvc3ZnPg==") no-repeat center hsl(0, 0%, 80%);
    
    background-size:     contain;                      /* <------ */
    background-repeat:   no-repeat;
    background-position: center center;

    margin: 0;
}
.offer .offercontent .textcontent{
    width: 100%;
    margin-left: 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    overflow: hidden;
    word-break: break-all;
}
.offer .offercontent .textcontent p{
    margin: 0;
    text-decoration: none;
    color: black;
}
.offer .offercontent .textcontent .item{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    margin-top: 8px;
}
.offer .offercontent .textcontent .item.between{
    width: 100%;
    justify-content: space-between;
}
.offer .offercontent .textcontent .item.between a{
    display: none;
}
.offer .offercontent .textcontent .item.between .details-link{
    display: block;
}
.offer .offercontent .textcontent .item:first-child{
    margin-top: 0;
}
.offer .offercontent .textcontent .item p{
    font-size: 1rem;
    margin-left: 8px;

    word-break: keep-all;
}
@media only screen and (max-width: 481px) {
    .offer .offercontent .textcontent .item p{
        font-size: 4vw;
    }
}
.offer .offercontent .textcontent .item i{
    font-size: 0.9rem;
    color: var(--content-color);

    margin-top: 2px;
}

.offer .offercontent .textcontent .item .oldprice{
    text-decoration: line-through;
    font-weight: normal;
    font-size: 0.9rem;

    color: #000000;
}

.offer .offercontent .textcontent .item .newprice{
    font-weight: bold;
    font-size: 1.45rem;

    color: var(--content-color);
}

.offer .offercontent .textcontent .item .details-link{
    text-decoration: none;
    color: var(--content-color);
    padding-left: 2px;
}
.offer .offercontent .textcontent .item .details-link.red{
    color: var(--error-color);
    font-weight: bold;

    animation: pulse 1000ms;
    animation-iteration-count: infinite;
}

@keyframes pulse {
    0%{
        transform: scale(1.0);
    }
    50%{
        transform: scale(1.05);
    }
}

.offer .offercontent .textcontent .item.alert{
    background-color: var(--error-color);
    padding: 4px;
}
.offer .offercontent .textcontent .item.alert p,
.offer .offercontent .textcontent .item.alert i{
    color: white;
}

#loadingscreen{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    background-color: rgba(0,0,0,0.6);
}

#loadingscreen .window{
    background-color: white;
    box-shadow: var(--default-shadow);

    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#loadingscreen .window p{
    margin-top: 32px;
    margin-bottom: 0;
}

.loadingindicator{
    margin: auto;
    margin-top: 40px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    
}

.loader {
    border: 10px solid rgb(192, 192, 192); /* Light grey */
    border-top: 10px solid var(--primary-color); /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1.4s linear infinite;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-error{
    margin-top: 0;
    color: rgb(167, 21, 21);
}

#pdf-viewer{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    height: -moz-available;
    height: -webkit-fill-available;
    height: fill-available;
    background-color: rgba(0, 0, 0, 0.637);

    z-index: 1000;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    display: none;
}
#pdf-viewer .dialog{
    width: 92vw;
    max-width: 720px;

    height: 84vh;
    height: calc(-webkit-fill-available - 16vh);

    padding: 16px;
    box-sizing: border-box;

    background-color: #FFFFFF;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
#pdf-viewer .dialog .top-row{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}
#pdf-viewer .dialog .top-row .material-icons{
    cursor: pointer;
    color: var(--content-color);
}

#pdf-viewer .dialog .pdf-container{
    width: 100%;
    height: 100%;

    margin-top: 12px;
}

#pdf-viewer .dialog .pdf-container iframe{
    border: none;
    border-radius: 0;
}


#installationdialog-background, 
#infodialog-background{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    background-color: rgba(0,0,0,0.5)
}

#installationdialog, 
#infodialog{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    width: 720px;
    max-height: 80vh;
    overflow-y: scroll;

    z-index: 1000;
}

@media only screen and (max-width: 731px) {
    #installationdialog,
    #infodialog{
        width: 90%;
    }
}

#installationdialog .titlesection,
#infodialog .titlesection{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 56px;
    margin-bottom: 0px;
}

#installationdialog .titlesection .title,
#infodialog .titlesection .title{
    font-size: 1.4rem;
    font-weight: bold;

    width: 100%;
    text-align: center;
}

#installationdialog .content,
#infodialog .content{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

#installationdialog img,
#infodialog img{
    max-width: 100%;
}

#installationdialog .content .button,
#infodialog .content .button{
    border: 0;
    background-color: var(--content-color);
    color: var(--primary-color);

    font-size: 1em;

    padding: 8px;

    cursor: pointer;
    transition: all .2s ease-in-out;

    margin-bottom: 12px;
}
#installationdialog .content .button.done,
#infodialog .content .button.done{
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 12px;
}
#installationdialog .content .button.done:hover,
#infodialog .content .button.done:hover{
    background-color: var(--primary-color-dark);
}
#installationdialog .content .button.close,
#infodialog .content .button.close{
    margin-bottom: 0;
    margin-top: 12px;
    font-weight: normal;
    background-color: #ffffff;
    color: #000000;
}