@font-face {
    font-family: 'Readex Pro';
    src: url('../font/Readex_Pro/static/ReadexPro-Regular.ttf') format('truetype');
}

body {
    overflow: hidden;
}

* {
    font-family: 'Readex Pro', sans-serif;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.background {
    display: flex;
    align-content: center;
    width: 100vw;
    height: 100%;
    overflow: clip;
    background-image: url("../images/7-excavator.jpg");
    background-size: cover;

    /* BG Settings for xwatch-screen
    background-size: 1800px;
    background-position-y: 1200px;
    background-position-x: 320px;*/
}

.logo {
    width: 20%;
    border-radius: 15px;
    margin-bottom: 20px;
}
.login-box {
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #38343b;
    padding: 5px;
    padding-top: 15%;
    color: #cecece;
    background-color: #38343b;
    box-shadow: 0 0 9px 0 #00000096;
    margin-left: 15%;
    width: 20%;
    height: 100vh;
}

.login-form {
    width: 80%
}

.loading {
    align-items: center;
    display: none;
    flex-direction: row;
    gap: 5px;
    margin-top: -20px;
    margin-bottom: 10px;
}

#loading-text {
    margin: 0;
}

#email-text-box {
    background-color: #262428;
    color: #cecece;
    width: 100%;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#password-text-box {
    background-color: #262428;
    color: #cecece;
    width: 100%;
    border-radius: 5px;
    margin-top: 5px;
}

#password-toggle {
    margin-top: 7px;
    margin-left: -30px;
    position: absolute;
}

#forgotten-password {
    font-size: 85%;
}

#login-button {
    background-color: #262428;
    color: #cecece;
    float: right;
    border-radius: 5px;
    margin-top: 5px;
}

#login-button:hover, #forgotten-password:hover {
    cursor: pointer;
}

#expandable {
    z-index: 1;
    display: flex;
    flex-direction: row;
    background-color: #38343b;
    color: #cecece;
    border-top: 1px solid #ff0000;
    border-right: 1px solid #ff0000;
    border-bottom: 1px solid #ff0000;
    writing-mode: vertical-rl;
    width: 30px;
    height: 150px;
    border-radius: 5px;
    padding-left: 55px;
    padding-top: 10px;
    margin-left: -10px;
    margin-top: 20%;
}

#expandable:hover {
    cursor: pointer;
}

#whats-new {
    z-index: 2;
    border-radius: 5px;
    border-top: 1px solid #ff0000;
    border-right: 1px solid #ff0000;
    border-bottom: 1px solid #ff0000;
    padding: 10px 10px 10px 8px;
    display: list-item;
    align-items: center;
    background-color: #38343b;
    color: #cecece;
    height: fit-content;
    min-height: 200px;
    font-size: 95%;
    max-width: 15%;
    margin-top: 18%;
    margin-left: -19%;
    transition: max-width, margin-left 1s ease;
}

#xw-open {
    padding-top: 12px;
    margin-right: 18px;
    width: 15px;
    display: unset;
}

#xw-close {
    padding-top: 12px;
    margin-right: 15px;
    width: 22px;
}


.fa-chevron-right, .fa-chevron-left {
    padding-top: 12px;
    margin-right: 18px;
}

#error-message {
    display: none;
    background-color: #ff000095;
    border: 1px solid #ff0000;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 5px;
    text-align: center;
}

.close {
    position: absolute;
    margin-left: 88%;
}

.close:hover {
    cursor: pointer;
}

.modal {
    background-color: #262428;
    border-radius: 5px;
    box-shadow: 0 0 20px 20px #00000096;
    color: #fefefe;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: fit-content;
    margin-left: 30%;
    margin-top: 10%;
    padding: 30px;
    position: absolute;
    visibility: hidden;
    width: 700px;
    z-index: 1000;
}

.modal-background {
    background-color: #00000075;
    display: none;
    height: 100%;
    position: absolute;
    width: 100%;
    z-index: 999;
}

input {
    background-color: #38343b;
    color: #cecece;
    width: 100%;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#reset-email {
    margin-top: -20px;
}

#reset-email-button,
#check-otp-button,
#submit-new-password-button {
    background-color: #38343b;
    color: #cecece;
    border-radius: 5px;
    margin-top: 5px;
}

#otp-form, #otp-error, #reset-pw-form, #pw-success {
    display: none;
}

@media only screen and (max-width: 1024px) {
    .login-box {
        align-items: center;
        background-color: #38343b;
        border: 1px solid #38343b;
        box-shadow: 0 0 9px 0 #00000096;
        color: #cecece;
        display: flex;
        flex-direction: column;
        height: 100vh;
        margin-left: 6%;
        padding: 5px;
        padding-top: 15%;
        width: 40%;
        z-index: 6;
    }

    #whats-new {
        z-index: 2;
        border-radius: 5px;
        border: 1px solid #ff0000;
        box-shadow: 0 0 9px 0 #00000096;
        padding: 10px 10px 10px 8px;
        display: list-item;
        align-items: center;
        background-color: #38343b;
        color: #cecece;
        height: fit-content;
        min-height: 200px;
        font-size: 95%;
        max-width: 70%;
        margin-top: 19%;
        margin-left: -19%;
        transition: max-width, margin-left 1s ease;
    }

    .close {
        position: absolute;
        margin-left: 88%;
    }

    .modal {
        background-color: #262428;
        border-radius: 5px;
        box-shadow: 0 0 20px 20px #00000096;
        color: #fefefe;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        height: fit-content;
        margin-left: 10%;
        margin-top: 10%;
        padding: 35px;
        position: absolute;
        visibility: hidden;
        width: 80%;
        z-index: 1000;
    }

}

@media only screen and (max-width: 768px) {
    .login-box {
        align-items: center;
        background-color: #38343b;
        border: 1px solid #38343b;
        box-shadow: 0 0 9px 0 #00000096;
        color: #cecece;
        display: flex;
        flex-direction: column;
        height: 100vh;
        margin-left: 6%;
        padding: 5px;
        padding-top: 15%;
        width: 75%;
        z-index: 6;
    }

    #whats-new {
        z-index: 2;
        border-radius: 5px;
        border: 1px solid #ff0000;
        padding: 10px 10px 10px 8px;
        display: list-item;
        align-items: center;
        background-color: #38343b;
        color: #cecece;
        height: fit-content;
        min-height: 200px;
        font-size: 95%;
        max-width: 70%;
        margin-top: 19%;
        margin-left: -70%;
        transition: max-width, margin-left 1s ease;
    }

    .close {
        position: absolute;
        margin-left: 75%;
    }
}