* {
    border: 0;
    margin: 0;
    padding: 0
}

body {
    background-color: black;
    font-family: 'Lato', sans-serif;
}

:root {
    --primary-color: var(#A5122A);
}

.rowflex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.colflex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}


/* ---Unity things--- */

#unity-container {
    /* position: absolute; */
    /* left: 10%; */
    aspect-ratio: 16 / 9;
    height: 100% !important;
    width: auto !important;
    max-width: 100%;
    max-height: 100%;
    /* display: block; */
    margin: auto;
}

#unity-canvas {
    width: 100%;
    height: 100%;
}

#unity-logo,
#unity-progress-bar-empty,
#unity-progress-bar-full {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#unity-logo {
    background: url('progressLogo.Light.png') no-repeat center / contain;
    width: 154px;
    height: 130px;
}

#unity-progress-bar-empty,
#unity-progress-bar-full {
    height: 18px;
    width: 141px;
    margin-top: 90px;
}

#unity-progress-bar-empty {
    background: url('progressEmpty.Light.png') no-repeat right / cover;
    float: right;
    width: 100%;
    height: 100%;
    display: inline-block;
}

#unity-progress-bar-full {
    background: url('progressFull.Light.png') no-repeat left / cover;
    float: left;
    width: 0%;
    height: 100%;
    display: inline-block;
}

#unity-container .logo.Dark {
    background-image: url('progressLogo.Dark.png');
}

#unity-container .progress.Dark .empty {
    background-image: url('progressEmpty.Dark.png');
}

#unity-container .progress.Dark .full {
    background-image: url('progressFull.Dark.png');
}

@media screen and (min-aspect-ratio: 16/9) {
    #unity-container {
        height: 100% !important;
        width: auto !important;
    }
}

@media screen and (max-aspect-ratio: 16/9) {
    #unity-container {
        width: 100% !important;
        height: auto !important;
    }
}

#menu,
#rotate {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #A5122A;
}

.book {
    padding: 5vh 0;
}

#menu h1 {
    padding: 0 5vw;
    color: white;
    font-size: 4vh;
    font-weight: 300;
}

#menu span {
    font-weight: 700;
}

#menu #start-btn {
    position: absolute;
    top: 80%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 3vh;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: 0.8em 2em;
    transition: 0.5s;
    border-radius: 10em;
    /* box-shadow: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3); */
    box-shadow: 5px 5px 4px -3px rgba(0, 0, 0, 0.25), -5px -5px 4px -3px rgba(145, 145, 145, 0.25);
}

#menu #start-btn:active {
    box-shadow: inset 4px 4px 4px rgba(0, 0, 0, 0.25), inset -4px -4px 4px -3px rgba(145, 145, 145, 0.25);
}


/* ---FOOTER--- */

.footer {
    background-color: #ffffff;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    height: 6vh;
    width: 100%;
}

.footer img {
    height: 90%;
}

.check {
    position: fixed;
    bottom: 8%;
}

.check label {
    margin-left: 3vw;
    color: white;
    font-weight: 400;
    font-size: 2vh;
}

.check input {
    accent-color: black;
    width: 5vw;
    height: 5vh;
}

#rotate {
    display: none;
}

.rotate-content {
    height: 100%;
}

.rotate-content img {
    width: 30vw;
}

.rotate-content h1 {
    color: white;
    padding-top: 5vh;
    font-size: 2.5vh;
    font-weight: 700;
}

#toggle {
    position: fixed;
    top: 2%;
    right: 5%;
    background-image: url('go-fullscreen.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 2em;
    height: 2em;
}

.left {
    position: fixed;
    left: 5%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.right {
    position: fixed;
    right: 5%;
    top: 50%;
    -webkit-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
}

@media (orientation: landscape) {
    #menu h1 {
        font-size: 9.5vh;
    }
    #menu #start-btn {
        /* margin-top: 10vh; */
        font-size: 6vh;
        top: 70%;
    }
    .check input {
        width: 10vw;
        height: 10vh;
    }
    .check label {
        font-size: 5vh;
        margin-left: 0;
    }
    #rotate {
        display: none;
    }
    #unity-container {
        display: none;
    }
    #unity-container.isActive {
        display: block;
    }
}

@media (orientation: portrait) {
    #rotate {
        display: none;
    }
    #rotate.isActive {
        display: flex;
    }
    #unity-container {
        display: none;
    }
}


/* ---MODAL WINDOW---*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal img {
    object-fit: contain;
    padding: 2vh 0;
    align-self: center;
    height: 8vh;
    width: 100%;
}

.modal-content {
    align-items: flex-start;
    background-color: #ffffff;
    margin: auto;
    padding: 1.5em;
    width: 80%;
    border-radius: 0.8em;
    box-shadow: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
}

.smaller-text {
    align-self: center;
    font-size: 0.7em;
    padding: 0 0 3vh;
}

.close {
    align-self: flex-end;
    color: #aaaaaa;
    font-size: 2em;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
