@import "globals.css";

.main {
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: flex;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), url(../images/background.png);
    background-size: cover;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 7rem;
    padding-bottom: 2rem;
}


.scratch-panel {
    width: max-content;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 50px;
    padding: 3rem 2rem 2rem 2rem;
    position: relative;
    margin-top: -30px;
}

.scratch-panel .scratch-panel-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.scratch-panel .scratch-card {
    width: 110px;
    height: 154px;
    background-color: #bb8900;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    z-index: 2;
}

@media screen and (max-width: 410px) {
    .scratch-panel .scratch-card {
        width: 80px;
        height: 120px;
    }
}

.scratch-panel .scratch-card:active {
    cursor: grab;
}

.scratch-panel .scratch-card .scratch-card-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    z-index: 3;
}

.scratch-panel .scratch-card .reward-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.scratch-panel .scratch-card .reward-img.full {
    position: absolute;
    z-index: 1;
    left: 0;
    object-fit: cover;
    top: 0;

}

.scratch-card canvas {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    z-index: 9;
}

.title {
    width: 341px;
    height: 269px;
    z-index: 9;
    pointer-events: none;
    user-select: none;
}

@media screen and (max-width: 580px) {
    .scratch-panel {
        padding: 1.5rem;
        gap: 15px;
        margin-top: 0;
    }

    .title {
        width: 251px;
        height: 179px;
    }

    .main {
        background-position: center;
        justify-content: start;
    }
}

.balloons {
    position: absolute;
    left: -100px;
    display: flex;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.balloons img {
    width: 120px;
    user-select: none;
    pointer-events: none;
}

@media screen and (max-width: 580px) {
    .balloons {
        width: 100%;
        position: absolute;
        display: flex;
        top: -210px;
        left: 50%;
        transform: translatex(-50%);
        flex-direction: row;
        z-index: 1;
        justify-content: space-between;
    }
    .balloons img {
        top: 0;
        position: absolute;
    }

    .balloons img:nth-child(1) {
        left: -40px;
    }

    .balloons img:nth-child(2) {
        right: -40px;
    }
}

@media screen and (max-width: 500px) {
    .balloons img {
        width: 80px;
    }

    .balloons img:nth-child(1) {
        left: 0;
    }

    .balloons img:nth-child(2) {
        right: 0;
    }

}

.warn {
    width: 400px;
    margin-top: 50px;
    pointer-events: none;
    user-select: none;
}

@media screen and (max-width: 410px) {
    .title {
        width: 221px;
        height: 149px;
    }
    .warn {
        width: 90%;
    }
    .balloons {
        top: -180px;
    }
    .balloons img {
        width: 70px;
    }
}
