/* Responsive layout - makes a one column layout instead of a two-column layout */

@media (max-width: 720px) {
    /*#islsw #wheel-wrapper,*/
    /*#islsw #controls-wrapper{*/
    /*    flex : 100% !important;*/
    /*    !*width: 100vw;*!*/
    /*    !*height: 100vw;*!*/
    /*}*/
    #islsw #controls-wrapper {
        margin: 20px auto !important;
    }

    #islsw .islsw-modal-content {
        width: 100% !important;
    }

    #islsw textarea {
        width: 100% !important;
    }

    #islsw #wheel-wrapper {
        width: 80vw !important;
        height: 80vw !important;
    }


    #islsw #canvas {
        background-size: 7vw !important;
    }
}

/* put wheel and control side by side*/
#islsw {
    max-width: 1100px;
    position: relative; /*to keep the confetti boxes within islsw */
}

/* put wheel and control side by side*/
#islsw .flex-container {
    display: flex;
    /*flex-wrap: wrap;*/
    /*position: relative;*/
    /*flex-direction: row;*/
}

#islsw #wheel-wrapper {
    text-align: center;
    /*flex: 65%;*/
    display: flex;
    width: 43vw;
    height: 43vw;
    margin: auto;
}

#islsw #controls-wrapper {
    /*height: 30vw;*/
    margin: auto;
}

/* the pointer of wheel to be exactly above the wheel */
#islsw .pointer {
    text-align: center;
    margin: auto auto auto -10px;
    padding-bottom: 0px;
    filter: drop-shadow(-5px 5px 3px #222222);
    /*height: 40vw;*/
}

#islsw .pointer img {
    max-width: unset;
}

#islsw #canvas {
    filter: drop-shadow(0px 0px 10px #222222);
    background: url('../images/sping-text-st-w.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 3vw;
}

#islsw #settings_modal .islsw-modal-body {
    font-size: 1em;
}

/* Style the tab */
#islsw .tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    min-width: 300px;
}

/* Style the buttons inside the tab */
#islsw .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

/**
dashicons
 */
#islsw span.dashicons {
    height: 15px;
    width: 15px;
    font-size: 15px;
}

/* Change background color of buttons on hover */
#islsw .tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
#islsw .tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
#islsw .tabcontent {
    display: none;
    padding: 10px 0px;
    -webkit-animation: islw_fadeEffect 1s;
    animation: islw_fadeEffect 1s;
}

/* Fade in tabs */
@-webkit-keyframes islw_fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes islw_fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#islsw textarea {
    font-size: 15px;
    height: 20vw;
    padding: 5px;
}

/**modal css */

/* The Modal (background) */
#islsw .islsw-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    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.8); /* Black w/ opacity */
}

/* Modal Content */
#islsw .islsw-modal-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    padding: 20px;
    width: max-content;
}


#islsw .islsw-wheel-title {
    font-size: 3em;
    /*margin: -0.5em 0em 0em 0em;*/
    text-align: center;
}

/* Modal text */
#islsw .islsw-modal-text {
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#islsw #modal .islsw-modal-text {
    padding: 50px;
}

#islsw .islsw-modal-controls {
    margin-top: 20px;
}

#islsw .islsw-modal-button-container {
    margin-top: 5px;
    text-align: center;
}

#islsw .islsw-modal-button {
    font-size: 22px !important;
    min-width: 200px;
    font-weight: bold;
    min-height: 45px;
}

#islsw .islsw-modal-header {
    padding: 2px 16px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.5em;
}

#islsw .islsw-modal-body {
    font-weight: bold;
    overflow-wrap: anywhere;

    max-width: 600px;
    min-width: 300px;

}

#islsw .islsw-wheel-title
#islsw #settings_modal .islsw-modal-body {
    /*min-height: 300px;*/
}

#islsw #winner {
    margin: 0;
    text-align: center;
    font-size: 2em;
    display: block;
    vertical-align: bottom;
}

#islsw .islsw-modal-footer {
    padding: 10px 0px;
    text-align: right;
}


#islsw .button {
    background-color: white;
    border-color: #dbdbdb;
    border-width: 1px;
    color: #363636;
    cursor: pointer;
    justify-content: center;
    padding-bottom: calc(0.375em - 1px);
    padding-left: 0.75em;
    padding-right: 0.75em;
    padding-top: calc(0.375em - 1px);
    text-align: center;
    white-space: nowrap;
    font-size: 15px;
    border-radius: 4px;
    margin: 0px 0px 5px 0px;
}

#islsw .button:hover {
    border-color: #b5b5b5;
    color: #363636;
}

#islsw .button.button-primary {
    background-color: #167df0;
    border-color: transparent;
    color: #fff;
}

#islsw .button.button-primary:disabled {
    background: lightgray;
    pointer-events: none;

}

#islsw .button.button-primary:hover {
    background-color: #0f77ea;
    border-color: transparent;
    color: #fff;
}

#islsw #topInstruction {
    font-size: 30px;
    padding-right: 25px;
    color: black;
    width: fit-content;
    margin: auto;
}

/*#islsw #menu-controls {*/
/*    text-align: right;*/
/*    margin : auto;*/
/*}*/


div#wheel-container:-webkit-full-screen #wheel-wrapper {
    width: 45vw !important;
    height: 45vw !important;

}

div#wheel-container:-webkit-full-screen {
    padding: 5vw;

}

div#wheel-container:-ms-fullscreen #wheel-wrapper {
    width: 45vw !important;
    height: 45vw !important;

}

div#wheel-container:-ms-fullscreen {
    padding: 5vw;

}

div#wheel-container:fullscreen #wheel-wrapper {
    width: 45vw !important;
    height: 45vw !important;

}

div#wheel-container:fullscreen {
    padding: 5vw;
}

div#wheel-container #exit-full-screen {
    visibility: hidden;
}

div#wheel-container:-webkit-full-screen #exit-full-screen {
    visibility: visible;
}

div#wheel-container:-ms-fullscreen #exit-full-screen {
    visibility: visible;
}

div#wheel-container:fullscreen #exit-full-screen {
    visibility: visible;
}

#islsw .text-shadow, div#wheel-container .text-shadow {
    text-shadow: 0 0 2px #585858, 0 0 2px #000;
}


#islsw .top-bar-icons:hover:after, div#wheel-container .top-bar-icons:hover:after {
    width: 100%;
}

#islsw .top-bar-icons:after, div#wheel-container .top-bar-icons:after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    bottom: -10px;
    left: 0;
    transition: width .2s ease-out;
    height: 1px;
    background-color: #fff;
}

#islsw .top-bar-icons, div#wheel-container .top-bar-icons {
    cursor: pointer;
    position: relative;
    font-size: 15px;
}

#islsw .top-bar {
    text-align: right;
}

#islsw .top-bar > * {
    margin-right: 20px;
}


#islsw .islsw-answer-modal-body {
    max-width: 90vw !important;
    max-height: 800px !important;
    overflow: auto;
}