/******************************************************************************/
/*  CASCADING STYLE SHEET ASSETS                                              */
/*----------------------------------------------------------------------------*/
/*  Copyright (C) 2020 MINEVERSAL                                             */
/*  Licensed material of MINEVERSAL                                           */
/*----------------------------------------------------------------------------*/
/*  Object              : CSSA (CASCADING STYLE SHEET ASSETS)                 */
/*  Outline             : CSSA (CASCADING STYLE SHEET ASSETS)                 */
/*  File ID             : Zulma-CSSA-4                                        */
/*----------------------------------------------------------------------------*/
/*  Author              : Joe                                                 */
/*  Revision Author     : -                                                   */
/*  Created Time        : 2023/07/27 09:48 (UTC+07:00)                        */
/*  Modification Time   : 2023/07/29 09:42 (UTC+07:00)                        */
/*  Version             : 1 (Number of Version)                               */
/*  Revision            : 0 (Number of Revision)                              */
/******************************************************************************/

/******************************************************************************/
/*        MODAL STYLE                                                         */
/******************************************************************************/
#modal-button {
    cursor: pointer;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 99;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Dialog — wrapper that anchors the close button to the content box */
.modal-dialog {
    position: relative;
    margin: 5% auto;
    width: 85%;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    border-radius: .5rem;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    box-sizing: border-box;
}

/* The Close Button — sits at top-right corner of the modal box */
.close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #444;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: background 0.15s ease, transform 0.15s ease;
}

.close:hover,
.close:focus {
    background: #111;
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
    outline: none;
}

#fodder-search {
    width: 100%;
}

.fodder-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom sama besar */
  gap: 10px; /* jarak antar slot */
}

.fodder-slots .gachaList {
  text-align: center;
}

.fodder-slots .gachaList .gacha_desc {
  margin: 0 8px;
  text-align: justify;
  line-height: 1.4;
  font-size: 0.9rem;
}

#fodder-list .gachaList .gacha_desc {
  margin: 0 8px;
  text-align: justify;
  line-height: 1.4;
  font-size: 0.9rem;
}

/******************************************************************************/
/*        MODAL ANIMATION                                                     */
/******************************************************************************/
.animation {
    transform: scaleY(.01) scaleX(0);
    animation: unfoldIn 1s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.animation-out {
    transform: scale(1);
    animation: unfoldOut 1s .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.animation-content {
    transform: scale(0);
    animation: zoomIn .5s .8s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.animation-content-out {
    animation: zoomOut .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

@keyframes unfoldIn {
    0% {
        transform: scaleY(.005) scaleX(0);
    }

    50% {
        transform: scaleY(.005) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes unfoldOut {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    50% {
        transform: scaleY(.005) scaleX(1);
    }

    100% {
        transform: scaleY(.005) scaleX(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

/******************************************************************************/
/*        RESPONSIVE LAYOUT                                                   */
/******************************************************************************/

/* Fodder slots: 3 columns on desktop, 1 column on mobile */
@media only screen and (max-width: 599px) {
    .modal-dialog {
        width: 92%;
        margin: 8% auto;
    }

    .fodder-slots {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 908px) {
    .modal-dialog {
        width: 90%;
    }
}

/******** END OF FILE *********************************************************/