﻿.modal {
    pointer-events: none;
}

.modal-dialog {
    margin-top: 80px !important;
}


/*Safari Only*/
@supports (background: -webkit-named-image(i)) {
    /* Styles for Safari only */
    .modal-body {
        max-height: 75vh;
        overflow-y: auto;
    }
}

.background-main {
    width: 100% !important;
    height: 100%;
    /*height: 100vh;*/
    min-height: 100vh;
    background-image: url('/Images/UI/Backgrounds/Background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    position: absolute;
    z-index: -1;
    right: 0px;
}

@media all and (orientation:portrait) and (max-width: 640px) {
    .background-main-width {
        width: 100%;
    }

    article {
        right: -20px;
    }
}

@media all and (orientation:portrait) and (min-width: 641px) {
    .background-main-width {
        width: calc(100% - 250px);
    }

    .background-main-width-unauth {
        width: 100%;
    }
}

@media all and (orientation:portrait) and (max-width: 800px) {
    .page-content-game {
        /*
        width: 100%;
        max-width: 800px;
        text-align: center;
        margin: -20px auto 40px auto;
        background-color: transparent;
        padding: 0px;
        border-radius: 15px;
        color: white;*/
        margin: 20px 0px 40px 0px;
        background-color: rgba(34, 43, 57, 0.85);
        color: white;
        text-align: center;
        border-radius: 15px;
        padding: 20px 0px 0px 0px;
        width: 100%;
        height: 100%;
    }

    .article-game {
        /*margin: 0px -25px 0px -35px;
        padding: 0px;*/
        margin: -25px -25px -25px -25px;
        padding: 0px 0px 0px 0px;
    }

    .game-info {
        display: none;
    }
}

@media all and (orientation:landscape) and (max-width: 1200px) {
    .game-info {
        display: none;
    }

    .article-game {
        /*margin: 0px -25px 0px -35px;
        padding: 0px;*/
        margin: -25px;
        padding: 0px;
    }
}

@media (min-width: 801px) {
    .page-content-game {
        /*position: absolute;*/
        width: 100%;
        max-width: 800px;
        text-align: center;
        margin: 20px auto 40px auto;
        /*background-color: #232c3a;*/
        background-color: rgba(34, 43, 57, 0.85);
        padding: 20px 10px 20px 10px;
        border-radius: 15px;
        color: white;
    }
}

.page-content-noback {
    /*position: absolute;*/
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: -100px auto 0px auto;
    padding: 20px 10px 20px 10px;
    border-radius: 10px;
}

.page-content {
    /*position: absolute;*/
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0px auto 40px auto;
    /*background-color: #232c3a;*/
    background-color: rgba(34, 43, 57, 0.85);
    padding: 20px 5px 20px 5px;
    border-radius: 15px;
    color: white;
}

.page-header {
    margin-left: auto;
    margin-right: auto;
    background-image: url("/Images/UI/HeaderBackground.png");
    background-size: 100% 100%;
    width: 90%;
    max-width: 300px;
    height: 50px;
    text-align: center;
    margin-bottom: 20px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.page-header-img {
    max-width: 400px;
    max-height: 400px;
    min-width: 200px;
    min-height: 200px;
    width: 90%;
    height: 90%;
    margin: 0px auto 0px auto;
}

.page-header-desc {
    max-width: 600px;
    width: 90%;
    margin: 10px auto 40px auto;
    text-align: center;
}

.btn-wood-background {
    background-image: url('/Images/UI/HeaderBackground.png');
    background-size: 100% 100%;
    margin: 0px auto 0px auto;
    text-align: center;
    color: white;
}

.btn-basic {
    transition: all linear 200ms;
}

    .btn-basic:hover {
        transform: scale(1.1);
        transition: all linear 200ms;
        z-index: 0;
        box-shadow: 1px 1px 10px rgba(0,0,0,.3);
        cursor: pointer;
    }

.btn-basic-noshadow {
    transition: all linear 200ms;
}

    .btn-basic-noshadow:hover {
        transform: scale(1.1);
        transition: all linear 200ms;
        z-index: 0;
        cursor: pointer;
    }

.modal-content {
    background-color: #e4bf9e;
    margin-top: 50px;
    color: black;
}

.modal-title {
    margin-left: auto;
    margin-right: auto;
    background-image: url('/Images/UI/HeaderBackground.png');
    background-size: 250px 50px;
    /*background-color: #d3a03e;*/
    width: 250px;
    height: 50px;
    margin-top: -40px;
    /*margin-top: 0px;*/
    text-align: center;
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

    .modal-title h4 {
        color: white;
        margin-top: 10px
    }

.modal-backdrop {
    z-index: 10;
}

.modal {
    z-index: 11;
}

.field-error {
    color: red;
}

.field-ok {
    color: black;
}

.field-success {
    color: forestgreen;
}

.btn-nav {
    height: 110px;
    width: 120px;
    color: white;
    display: inline-block;
    /*background-color: gray;*/
    padding: 0px;
    text-align: center;
    position: relative
}

.noti-count {
    position: absolute;
    top: 13px;
    right: 15px;
    background-color: #ff0000;
    color: #fff;
    padding: 5px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    width: 15px;
    height: 15px;
    text-align: center;
}

.noti-count-num {
    margin-top: 7px;
}

.itembox-container {
    position: relative;
    text-align: center;
    color: white;
    margin: 5px;
    /*width: 100px;
    height: 100px;*/
    padding: 5px;
}

.achievement-card {
    color: black;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 10px;
    margin: 0px auto 0px auto;
    border-radius: 5px;
    background-color: #e4bf9e;
    text-align: left;
    align-content: flex-start;
}

.bottom-center-text {
    /*position: absolute;*/
    margin-bottom: auto;
    align-self: flex-end;
    /*bottom: -5px;*/
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-selected {
    margin: 5px auto 5px auto;
    width: 125px;
    background-color: lightgray;
    color: black
}

    .btn-selected:focus {
        background-color: lightgray;
        color: black
    }

.btn-not-selected {
    margin: 5px auto 5px auto;
    width: 125px;
    background-color: gray;
    color: black;
}


.avatar-no-frame {
    display: block;
    width: 31%;
    height: 72.5%;
    margin-top: 7%;
    margin-left: 2.5%;
    /*z-index: 1;*/
    z-index: 0;
    overflow: hidden;
    position: relative;
    /*background-color: red;*/
    cursor: pointer;
}

.avatar-frame {
    display: block;
    width: 27%;
    height: 60%;
    margin-top: 10%;
    margin-left: 5%;
    /*z-index: 1;*/
    z-index: 0;
    overflow: hidden;
    position: relative;
    /*background-color: red;*/
    cursor: pointer;
}

.avatar-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    cursor: pointer;
}

.event-grid-item {
    font-size: 16px; /*reset font size*/
    display: inline-block;
    vertical-align: top;
    width: 20%;
    height: 20%;
    position: relative;
    overflow: auto; /*for scrollbar*/
    background-size: 100% 100%;
    cursor: pointer;
}

.event-grid-item-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0; /*stretch and fill*/
}

.equipment-container {
    margin: 0px auto;
    background-color: transparent;
    height: 230px;
    width: 220px;
    display: grid;
    grid-template-columns: 100px 100px;
    grid-row: auto auto;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.btn-danger {
    background-image: url("/Images/UI/Buttons/BtnDanger.png") !important;
    background-size: 100% 100% !important;
    background-color: black !important;
    border: none;
}

    .btn-danger:hover {
        color: black;
    }

.btn-primary {
    background-image: url("/Images/UI/Buttons/BtnPrimary.png") !important;
    background-size: 100% 100% !important;
    background-color: black !important;
    border: none;
}

    .btn-primary:hover {
        color: black;
    }

.btn-secondary {
    background-image: url("/Images/UI/Buttons/BtnSecondary.png") !important;
    background-size: 100% 100% !important;
    background-color: black !important;
    border: none;
    color: white;
}

    .btn-secondary:hover {
        color: black;
    }

.btn-success {
    background-image: url("/Images/UI/Buttons/BtnSuccess.png") !important;
    background-size: 101% 100% !important;
    background-color: black !important;
    color: GhostWhite;
    border: none;
    background-repeat: no-repeat;
    padding: 7px 20px 7px 20px;
}

    .btn-success:hover {
        color: gray;
    }

.btn-success-lg {
    background-image: url("/Images/UI/Buttons/BtnSuccessLg.png") !important;
    background-size: 100% 100% !important;
    background-color: black !important;
    color: DarkSlateGrey;
    border: none;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

    .btn-success-lg:hover {
        color: gray;
    }


.btn-cancel {
    background-image: url("/Images/UI/Buttons/BtnCancel.png") !important;
    background-size: 100% 100% !important;
    background-color: transparent !important;
    border: none;
    color: white;
    padding: 20px;
}

    .btn-cancel:hover {
        color: black;
    }

.btn-request {
    background-image: url("/Images/UI/Buttons/BtnRequest.png") !important;
    background-size: 100% 100% !important;
    background-color: transparent !important;
    border: none;
    color: white;
    padding: 20px;
}

    .btn-request:hover {
        color: black;
    }

.hdr-task {
    background-image: url("/Images/UI/Buttons/BtnTask.png") !important;
    background-size: 100% 100% !important;
    background-color: transparent !important;
    border: none;
    color: white;
    padding: 15px;
}
