* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    height: 100%;
}

body {
    position: relative;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    &.ipad {

    }

    &.display_screen {

    }
}

.target_image {
    max-height: 550px;
    opacity: 0.4;
}

.selected {
    opacity: 1;
}

.images {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.swapped_image {
    max-height: 450px;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200;
    display: none;
    &.shown {
        display: block;
    }
}

.wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.upload {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,1);
    padding: 30px;
    color: #1499d5;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.header img {
    height: 80px;
}

.next {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    padding: 20px;
    color: #1499d5;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
    font-size: 30px;
}

.savebtn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    padding: 20px;
    color: #1499d5;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.form-cont {
    padding: 150px 10px 10px 10px;
}

.form-group {
    margin: 20px 0;
}

.form-input {
    width: 100%;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.6);
}

button {
    border: none;
    font-size: 30px;
    background: rgba(255,255,255,1);
    padding: 10px 20px;
    color: #1499d5;
}

.iframe_cont {
    position: absolute;
    top: -1000px;
}

.modal-cover {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10;
}

.modal {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    &.fullscreen {
        /*height: 90%;*/
    }
}

.modal_buttons {
    position: absolute;
    bottom: 20px;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    left: 20px;
    right: 20px;
}

.flex {
    display: flex;
    gap: 10px;
}

.flex-justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.email-send {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.email-send input {
    flex: 1;
}

.error {
    display: none;
    color: #ff0000;
    width: 100%;
    text-align: center;
}

.success {
    display: none;
    color: #08c308;
    width: 100%;
    text-align: center;
}

.toplist {
    max-width: 900px;
    top: 45%;
    background: white;
}

.toplist_item {
    display: flex;
    width: 100%;
    font-size: 20px;
    justify-content: start;
    gap: 10px;
    border-bottom: 1px solid #000000;
    padding: 10px 0;
    color: #000000
}

.toplist_item:last-child {
    border-bottom: none;
}

.toplist_item .place {
    width: 30px;
}

.toplist_item .name {
    flex-grow: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toplist_item .points {

}

.makephoto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10;
}

.webcam_container, .canvas_container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
}