#backgroundPopup {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: rgba(120, 120, 120, 0.5);
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupDiv {
    position: absolute;
    top: 30%;
    /* width: 50%; */
    background: #f1efef;
    background-image: -webkit-linear-gradient(top, #f1efef, #afafaf);
    background-image: -moz-linear-gradient(top, #f1efef, #afafaf);
    background-image: -ms-linear-gradient(top, #f1efef, #afafaf);
    background-image: -o-linear-gradient(top, #f1efef, #afafaf);
    background-image: linear-gradient(to bottom, #f1efef, #afafaf);
    padding-bottom: 3em;
    border-radius: 10px;
    text-align: center;
    font-family: Helvetica, Tahoma, Arial, Verdana, sans-serif;
    box-shadow: 3px 3px 8px black;
    color: #484848;
    min-width: 25%;
    /* max-width: 50%; */
    max-width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#titlePopupDiv {
    width: 100%;
    padding: 1em;
    padding-bottom: 0px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 1.5vw;
}

#messagePopupDiv {
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    box-sizing: border-box;
    color: #484848;
    font-size: 1vw;
}

#buttonsPopupDiv {
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 2vh;
    box-sizing: border-box;
}

#swedenButtonComponent {
    position: absolute;
    width: 30%;
    height: calc(3vh + 1vw);
    top: 0;
    left: 36%;
}

#selfPause {
    background-image: url(assets/Sweden/spelpaus.png);
    background-repeat: no-repeat;
    background-size: 87%, auto;
    background-position-x: center;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    margin: 2px;
}

#selfTest {
    background-image: url(assets/Sweden/sjalvtest.png);
    background-repeat: no-repeat;
    background-size: 87%, auto;
    background-position-x: center;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    margin: 2px;
}

#setLimits {
    background-image: url(assets/Sweden/spelgranser.png);
    background-repeat: no-repeat;
    background-size: 100%, auto;
    background-position-x: center;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    margin: 2px;
}

.messageButton {
    padding: 0.6vw;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2vw;
    cursor: pointer;
    color: white;
    background-color: #3C3C3C;
    float: left
}

.messageButton:hover {
    background-color: #262626;
    cursor: pointer;
    color: #FFFFFF;
}

.buttonWide {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-right: 1vw;
    margin-top: 1em;
}

#buttonsPopupDiv messageButton:last-of-type {
    margin-right: 0px;
}

#buttonsNotificationDiv messageButton {
    margin-top: 0px;
}

.buttonNarrow {
    padding-left: 1vw;
    padding-right: 1vw;
    margin-left: 1vw;
    margin-right: 1vw;
}

#dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1em;
    margin-top: 1em;
}

.dropdown-select {
    width: 17%;
    float: right;
    margin-right: 9em;
    height: 2em;
    font-size: 1em;
}

.dropdown-select-portrain {
    width: 20%;
    height: 3em;
}

.dropdown-select-portrain .dropdown-value {
    font-size: 1.8em;
}

.label-time-period {
    float: left;
    width: 35%;
    margin-left: 3em;
}

#notificationDiv {
    background: linear-gradient(#fefdfd, #cfd0cf);
    position: absolute;
    width: 100%;
    font-family: Arial, Verdana, sans-serif;
    left: 0px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-out all;
}

#messageNotificationDiv {
    max-width: calc(92% - 2vw);
    height: auto;
    color: #242424;
    font-size: 1.4vw;
    text-align: left;
    padding-top: 1vh;
    padding-left: 2vw;
    padding-bottom: 2vh;
}

#buttonsNotificationDiv {
    display: flex;
    flex-direction: row;
}

#buttonsNotificationDiv .messageButton {
    margin: 0;
    padding: 0;
    padding: 0.5vw;
    text-align: center;
    font-size: 1.2vw;
    color: #242424;
    background: linear-gradient(#fefdfd, #cfd0cf);
    flex-grow: 1;
    border: none;
    border-left: 1px solid #cfd0cf;
    border-top: 1px solid #cfd0cf;
    border-radius: 0;
}

#buttonsNotificationDiv .messageButton:hover {
    background: #fefdfd;
    cursor: pointer;
    color: #242424;
}

#notificationTitle {
    padding-right: 1vw;
    font-weight: bold;
}

#see-all {
    position: absolute;
    width: 2vw;
    height: auto;
    cursor: pointer;
    padding-left: 0.5vw;
    content: url(assets/see_more_button.png);
}

.notification-x-button {
    width: 3vw;
    height: auto;
    position: absolute;
    right: 1vw;
    top: 0;
    cursor: pointer;
    border: none;
    content: url(assets/close_button.png);
}

p#messageParagraph {
    display: block;
    -webkit-margin-before: 0.5em;
    -webkit-margin-after: 0px;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}

@media only screen and (max-width: 1024px) and (orientation: portrait) {
    #popupDiv {
        padding-bottom: 1em;
        min-width: 50%;
        max-width: 50%;
    }
    #titlePopupDiv {
        font-size: 10px;
    }
    #messagePopupDiv {
        font-size: 8px;
    }
    #buttonsPopupDiv {
        bottom: 20px;
        padding-left: 0.2vw;
        padding-right: 0.2vw;
    }
    .buttonWide {
        padding-left: 1vw;
        padding-right: 1vw;
        padding-top: 0.5vh;
        padding-bottom: 0.5vh;
        margin-left: 0.2vw;
        margin-right: 0.2vw;
    }
    .buttonNarrow {
        padding-left: 1vw;
        padding-right: 1vw;
        padding-top: 0.5vh;
        padding-bottom: 0.5vh;
        margin-left: 0.2vw;
        margin-right: 0.2vw;
    }
    .messageButton {
        font-size: 8px;
    }
    .messageButton:hover {
        color: white;
        background-color: #3C3C3C;
    }
    .messageButton:active {
        background-color: #262626;
        cursor: pointer;
        color: #FFFFFF;
    }
    #buttonsNotificationDiv .messageButton:hover {
        cursor: pointer;
        color: #242424;
        background: linear-gradient(#fefdfd, #cfd0cf);
    }
    #buttonsNotificationDiv .messageButton:active {
        background: #fefdfd;
        cursor: pointer;
        color: #242424;
    }
    .notification-x-button {
        width: 6vw;
    }
    #see-all {
        width: 5vw;
        padding: 0.8em;
        margin: -0.8em;
    }
    #messageNotificationDiv {
        font-size: 4vw;
        height: auto;
        padding-bottom: 1vw;
        max-width: calc(92% - 4vw);
    }
    #buttonsNotificationDiv .messageButton {
        font-size: 2vh;
    }
    #swedenButtonComponent {
        width: 65%;
        height: calc(3vh + 1.5vw);
        left: 18%;
    }
    #selfPause {
        background-size: 100%, auto;
    }
    #selfTest {
        background-size: 100%, auto;
    }
    #setLimits {
        width: 33%;
    }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    #titlePopupDiv {
        font-size: 3vw;
    }
    #messagePopupDiv {
        font-size: 2.5vw;
    }
    #popupDiv {
        padding-bottom: 1em
    }
    .messageButton {
        font-size: 2vw;
    }
    .messageButton:hover {
        color: white;
        background-color: #3C3C3C;
    }
    .messageButton:active {
        background-color: #262626;
        cursor: pointer;
        color: #FFFFFF;
    }
    #buttonsNotificationDiv .messageButton:hover {
        cursor: pointer;
        color: #242424;
        background: linear-gradient(#fefdfd, #cfd0cf);
    }
    #buttonsNotificationDiv .messageButton:active {
        background: #fefdfd;
        cursor: pointer;
        color: #242424;
    }
    #buttonsNotificationDiv .messageButton {
        font-size: 11px;
    }
    #see-all {
        padding: 0.8em;
        margin: -0.8em;
    }
    #swedenButtonComponent {
        width: 40%;
        height: calc(4vh + 1vw);
        left: 32%;
    }
    #selfPause {
        background-size: 97%, auto;
    }
    #selfTest {
        background-size: 97%, auto;
    }
    #setLimits {
        width: 33%;
    }
}

@media (min-width: 481px) and (max-width: 767px) and (orientation: landscape) {
    #swedenButtonComponent {
        width: 40%;
        height: calc(4vh + 2vw);
        left: 32%;
    }
    #selfPause {
        background-size: 97%, auto;
    }
    #selfTest {
        background-size: 97%, auto;
    }
    #setLimits {
        width: 33%;
    }
}

@media only screen and (max-width: 450px) and (orientation: landscape) {
    #messageNotificationDiv {
        font-size: 3vw;
        height: auto;
    }
    #buttonsNotificationDiv .messageButton {
        font-size: 15px;
    }
    #buttonsPopupDiv .messageButton {
        font-size: 12px;
    }
    #popupDiv {
        max-width: 75%;
    }
    .notification-x-button {
        width: 5vw;
    }
    #see-all {
        width: 4vw;
    }
}