@font-face {
    src: url(../fonts/din.ttf);
    font-family: 'DIN';
    font-weight: normal;
}

* {
    outline: none;
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Likely future */      
}

.ui-loader {
    display: none;
}

.ui-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    margin: 0;
    padding: 0;
    background: url(../img/background.jpg) no-repeat top / 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'DIN';
}

.init {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

canvas {
    width: 100vw;
    height: 100vh;
}

#save {
    position: fixed;
    right: 4vw;
    top: 10vw;
}

textarea {
    resize: none;
}

.logo {
    max-width: 20vw;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40vw;
}

.intro p {
    color: white;
    font-size: 1.2vw;
    text-align: justify;
}

.intro label {
    font-size: 1.4vw;
    color: white;
    margin: 0;
}

.intro input {
    height: 3vw;
    width: 40vw;
    border: none;
    border-radius: 30px;
    text-align: center;
    font-size: 1.1vw;
}

.intro input::placeholder {
    color: #d0d0d0;
}

.intro textarea {
    height: 6vw !important;
    width: 40vw;
    border-radius: 30px;
    text-align: center;
    font-size: 1.1vw;
    padding: 2%;
}

.intro textarea::placeholder {
    color: #d0d0d0;
}

.intro input, .intro textarea {
    margin: 1vw;
}

.intro .handle {
    color: white;
    background: #c2272d;
    border: none;
    border-radius: 30px;
    width: 40vw;
    height: 3vw;
    font-size: 1.3vw;
    cursor: pointer;
}

.intro .handle:hover {
    background: #da353b;
}

.rotate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url(../img/background.jpg) no-repeat top / cover;
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 5vw;
}

.rotate img {
    max-width: 60%;
}

a#save img {
    width: 100%;
    max-width: 25vw;
}

.tip {
    width: 40vw;
    position: fixed;
    bottom: 44vh;
    left: calc(50vw - 20vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.tip h2 {
    font-size: 1.6vw;
    animation: dragTip 1s infinite;
}

.tip img {
    max-width: 3vw;
    width: 100%;
    animation: drag 1s infinite;
}

@keyframes drag {
    0% {
        transform: translate(0, -5%);
    }
    50% {
        transform: translate(0, 5%);
    }
    100% {
        transform: translate(0, -5%);
    }
}

@keyframes dragTip {
    0% {
        transform: translate(0, -2%) scale(0.98, 0.98);
    }
    50% {
        transform: translate(0, 2%) scale(1.02, 1.02);
    }
    100% {
        transform: translate(0, -2%) scale(0.98, 0.98);
    }
}

@media screen and (orientation: portrait) {
    .rotate {
        display: flex;
    }
}