/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,600;0,700;1,600;1,700&display=swap');
@import url("./animations.css");

body, html {
    margin: 0;
    padding: 0;
    
}
.content {
    position: relative;
    background: -o-radial-gradient(top,  ellipse,  rgb(31, 51, 56),  rgb(20,21,57));
    background: radial-gradient(ellipse at top,  rgb(31, 51, 56),  rgb(20,21,57));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;

    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1366px;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: start;
}

.header {
    width: 683px;
    border-radius: 10px;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 3px solid #606E85;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -ms-flex-item-align: center;
        align-self: center;
}

.score {
    min-width: 140px;
    height: 100px;
    background-color: #dfdfdf;
    border-radius: 10px;
    text-align: center;
}

.score-title, .score-text, .page-text {
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.score-title {
    color: #2A46C0;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.score-text {
    color: #3B4363;
    font-size: 35pt;
    font-weight: 700;
}

.logo {
    width: 300px;
    height: 100px;
    background: url("../images/logo.svg") no-repeat;
}

.game {
    margin: auto;
}

.decision {
    position: relative;
    width: 270px; height: 270px;
    -webkit-transition: width 0.6s ease-in-out;
    -o-transition: width 0.6s ease-in-out;
    transition: width 0.6s ease-in-out;
}
.decision-bg {
    width: 100%; height: 100%;
    position: absolute;
    background-image: url("../images/bg-triangle.svg");
}

.decision-result {
    left: 50%;
    bottom: 50%;
    text-align: center;
    position: absolute;
    -webkit-transform: translate(-50%, 50%);
        -ms-transform: translate(-50%, 50%);
            transform: translate(-50%, 50%);
}
.decision-result-text {
    font-size: 40pt !important;
}
.decision-result-user {
    position: absolute;
    -webkit-transform: translate(-25%, -200%);
        -ms-transform: translate(-25%, -200%);
            transform: translate(-25%, -200%);
    right: 100%;
}
.decision-result-home {
    position: absolute;
    -webkit-transform: translate(15%, -200%);
        -ms-transform: translate(15%, -200%);
            transform: translate(15%, -200%);
    left: 100%;
}

.decision-result-user {
    opacity: 0;
}

.item, .item-border-top ,.item-content-bottom ,.item-content-top {
    border-radius: 100%;
}

.item-content-top, .item-border-top {
    width: 100%; height: 100%;
}

.item {
    cursor: pointer;
    width: 200px;
    height: 200px;
    z-index: 3;
}

.item:hover .item-content-top {
    background-color: #b7bfd6;
}

.item-border-top {
    -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
            transform: translateY(-10px);
}
.item-content-bottom {
    width: 80%;
    height: 80%;
    background-color: #b7bfd6;
    overflow: hidden;
}
.item-content-top {
    -webkit-transform: translateY(8px);
        -ms-transform: translateY(8px);
            transform: translateY(8px);
    background-color: #dfdfdf;
    -webkit-transition: background-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
}

.item-icon {
    width: 80px;
    height: 80px;
}

.scissors-inner {
    background-color: #c86b1b;
}
.scissors-outer {
    background-color: #eca319;
}
.scissors-icon {
    background-image: url("../images/icon-scissors.svg");
}

.rock-inner {
    background-color: #9d1732;
}
.rock-outer {
    background-color: #df405e;
}
.rock-icon {
    background-image: url("../images/icon-rock.svg");
}

.paper-inner {
    background-color: #2945c2;
}
.paper-outer {
    background-color: #5571f6;
}
.paper-icon {
    background-image: url("../images/icon-paper.svg");
}

.absolute-top-left, .absolute-top-right, .absolute-bottom-center {
    position: absolute;
}

.absolute-top-left {
    top: 0%; left: 0%; bottom: auto; right: 0%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

.absolute-top-right {
    top: 0%; left: auto; bottom: auto; right: 0%;
    -webkit-transform: translate(50%, -50%);
        -ms-transform: translate(50%, -50%);
            transform: translate(50%, -50%);
}

.absolute-bottom-center {
    top: auto; left: auto; bottom: 0%; right: 50%;
    -webkit-transform: translate(50%, 30%);
        -ms-transform: translate(50%, 30%);
            transform: translate(50%, 30%); /* 50% on Y didnt seem to be right */
}

.home-selection {
    opacity: 0;
    pointer-events: none;
    bottom: 0;
    right: 0;
    position: absolute;
    -webkit-transform: translateX(100%) scale(1.4);
        -ms-transform: translateX(100%) scale(1.4);
            transform: translateX(100%) scale(1.4);
}

.home-selection-bg {
    opacity: 0.9;
    background-color: #172240;
}

.page-text {
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 20pt;
    white-space: nowrap;
}

#home-selection-inner, #home-selection-outer, #home-selection-icon,
#home-selection-content-outer, #home-selection-content-inner {
    -webkit-transition: background-color 0.8s ease-in-out;
    -o-transition: background-color 0.8s ease-in-out;
    transition: background-color 0.8s ease-in-out;
}

.primary-button {
    -webkit-transition: background-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    background-color: white;
    color: #434261;
    padding: 10px 3rem;
    font-size: 10pt;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}
.primary-button-flat {
    width: 100px;
    color: white;
    font-size: 11pt;
    padding: 10px 1rem;
    border: 2px solid white;
    background-color: transparent;
}
.btn-rules {
    right: 0;
    bottom: 0;
    margin: 1rem;
    position: fixed;
    letter-spacing: 3px;
    font-weight: 400;
}
.primary-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}
/* HELPERS */

.absolute-center {
    top: 50%; right: 50%;
    position: absolute;
    -webkit-transform: translate(50%, -50%);
        -ms-transform: translate(50%, -50%);
            transform: translate(50%, -50%);
}

.bg-class {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.relative {
    position: relative;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

.no-bg {
    background-color: unset;
}

/* END HELPERS */

.expanded-container {
    width: 400px !important;
}

.paper-container-bug-fix {
    left: -50% !important;
}

.modal {
    z-index: 100;
    position: absolute;
    top: 0%; left: 0%;
    opacity: 0; pointer-events: none;
}

.modal-card, .modal-overlay {
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay {
    width: 100vw;
    height: 100vh;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-card {
    min-width: 500px;
    min-height: 200px;
    height: fit-content;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%, -50%);
    padding: 0 1rem;
}

.modal-title, .modal-close {
    position: absolute;
    margin-top: 2rem;
}

.modal-title {
    font-weight: 700;
    top: 0; left: 0;
    font-size: 26pt;
    color: #3b425f;
    margin-left: 2rem;
}

.modal-image {
    width: 100%; height: 100%;
    object-fit: contain;    
}

.modal-image-wrapper {
    padding: 7rem 30px 30px 30px;
}

.modal-close {
    cursor: pointer;
    top: 0; right: 0;
    margin-top: 2.5rem;
    margin-right: 2rem;
    background-size: contain;
    width: 25px; height: 25px;
    background-repeat: no-repeat;
    background-image: url("../images/icon-close.svg");
}

.wrapper {
    width: 100%; height: 100%;
}

@media (max-width: 1000px) {
    .header {
        width: 80%;
    }

    .score {
        min-width: 100px;
    }

    .item {
        cursor: pointer;
        width: 130px; height: 130px;
    }

    .decision {
        width: 200px; height: 200px;
    }

    .item-icon {
        width: 60px; height: 60px;
    }

    .home-selection {
        bottom: 100%;
        left: 100%;
        -webkit-transform: scale(1) translateX(-25%);
            -ms-transform: scale(1) translateX(-25%);
                transform: scale(1) translateX(-25%);
    }
    .decision-result-user {
        -webkit-transform: translate(-25%, 100%);
            -ms-transform: translate(-25%, 100%);
                transform: translate(-25%, 100%);
        right: 50%;
    }
    .decision-result-home {
        -webkit-transform: translate(15%, 100%);
            -ms-transform: translate(15%, 100%);
                transform: translate(15%, 100%);
        left: 70%;
    }

    .decision-result {
        transform: translate(-50%, 150%);
    }

    .expanded-container {
        width: 130px !important;
    }

    .decision-result-user {
        right: 55%;
    }

    .decision {
        width: 150px;
    }

    .page-text {
        font-size: 13pt;
    }

    .modal-card {
        min-width: 100vw;
        width: 100vw;
        height: 100vh;
    }

    .modal-close {
        position: fixed;
        top: unset;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(-250%);
    }

    .modal-title {
        left: 50%;
        margin-top: 5rem;
        margin-left: 0;
        font-size: 30pt;
        transform: translateX(-50%);
    }

    .modal-image-wrapper {
        padding-top: 15rem;
    }
}

/* BG 31,51,86 TO  20,21,57*/