﻿/* =========================================================
   LUCKY WHEEL - HOME PAGE
   Asset based landing page
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.home-page {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 102px);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #02030a;
}


/* =========================================================
   LARGE BACKGROUND
   ========================================================= */

.home-background {
    position: fixed;
    top: 102px;
    left: 0;
    width: 100%;
    height: calc(100vh - 102px);
    background-image: url("/images/home/background.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-color: #02030a;
    pointer-events: none;
    z-index: 0;
}


/* =========================================================
   HOME SCENE
   ========================================================= */



.home-scene {
    position: relative;
    width: min(100%, 1536px);
    aspect-ratio: 1536 / 1000;
    margin: 0 auto;
    z-index: 1;
    overflow: hidden;
}


    /* =========================================================
   COMMON IMAGE
   ========================================================= */

    .home-scene img {
        display: block;
        max-width: none;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
    }
/* =========================================================
   LOGO
   ========================================================= */
.home-logo {
    position: absolute;
    left: 8.5%;
    top: 6.5%;
    width: 45%;
    height: auto;
    z-index: 10;
}
/* =========================================================
   MODEL
   ========================================================= */
.home-model {
    position: absolute;    
    left: 70%;
    top: 0;
    width: 45%;
    height: auto;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}
/* =========================================================
   FEATURE CARDS
   ========================================================= */
.home-feature {
    position: absolute;
    width: 13%;
    height: auto;
    z-index: 30;
    transition: transform .25s ease, filter .25s ease;
}


/* Feature 1 */

.home-feature-1 {
    left: 4.5%;
    top: 36.5%;
}


/* Feature 2 */

.home-feature-2 {
    left: 19%;
    top: 36.5%;
}


/* Feature 3 */

.home-feature-3 {
    left: 33.5%;
    top: 36.5%;
}


/* =========================================================
   FEATURE HOVER
   ========================================================= */

.home-feature:hover {
    transform: translateY(-3px);
    filter: brightness(1.08) drop-shadow( 0 0 10px rgba(40, 160, 255, .35) );
}


/* =========================================================
   WHEEL CARD
   ========================================================= */

.home-wheel-card {
    position: absolute;
    left: 11.5%;
    top: 47%;
    width: 29%;
    height: auto;
    z-index: 35;
}


/* =========================================================
   SPIN PLAY WIN
   ========================================================= */

.home-spin-play {
    position: absolute;
    left: 18.5%;
    top: 64%;
    width: 15%;
    height: auto;
    z-index: 40;
}


/* =========================================================
   JOIN BUTTON
   ========================================================= */

.home-join {
    position: absolute;
    left: 65%;
    top: 59.5%;
    width: 42%;
    height: auto;
    display: block;
    transform: translateX(-50%);
    z-index: 50;
    cursor: pointer;
    text-decoration: none;
}


    /* Join image */

    .home-join img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .22s ease, filter .22s ease;
    }


    /* Join hover */

    .home-join:hover img {
        transform: scale(1.035);
        filter: brightness(1.12) drop-shadow( 0 0 18px rgba(255, 50, 255, .8) );
    }


    /* Join click */

    .home-join:active img {
        transform: scale(.985);
    }


/* =========================================================
   BOTTOM BANNER
   ========================================================= */

.home-bottom {
    position: absolute;
    left: 4.5%;
    top: 71.8%;
    width: 80%;
    height: 18%;
    z-index: 30;
}
/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.home-login {
    position: absolute;
    right: 1%;
    top: 72.5%;
    width: 13%;
    height: auto;
    display: block;
    z-index: 60;
    cursor: pointer;
}
    .home-login img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .2s ease, filter .2s ease;
    }
    .home-login:hover img {
        transform: scale(1.04);
        filter: brightness(1.12) drop-shadow( 0 0 14px rgba(0, 150, 255, .8) );
    }
.home-login,
.home-register {
    padding: 0;
    border: 0;
    background: transparent;
}
/* =========================================================
   REGISTER BUTTON
   ========================================================= */
.home-register {
    position: absolute;
    right: 1%;
    top: 78.5%;
    width: 13%;
    height: auto;
    display: block;
    z-index: 60;
    cursor: pointer;
}
    .home-register img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .2s ease, filter .2s ease;
    }
    .home-register:hover img {
        transform: scale(1.04);
        filter: brightness(1.12) drop-shadow( 0 0 16px rgba(255, 0, 255, .85) );
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
    .home-page {
        min-height: calc(100vh - 98px);
    }
    .home-background {
        top: 98px;
        height: calc(100vh - 98px);
        background-size: 100% auto;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .home-page {
        min-height: calc(100vh - 98px);
        overflow-x: hidden;
    }
    .home-background {
        position: fixed;
        top: 98px;
        left: 0;
        width: 100%;
        height: calc(100vh - 98px);
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }
    .home-scene {
        width: 100%;
        max-width: 1536px;
        margin: 0 auto;
        aspect-ratio: 1536 / 1000;
        transform: none;
    }
}
