* {
    margin:0px;
    padding:0px;
    border:none;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #444;
    font-family: arial, verdana, non-serif;
    font-size: 14px;
    user-select: none;
}
header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    width: 90vw;
    height: 90px;
    text-align: center;
    margin: 0 auto;
}
header > div {
    position: relative;
}
header .settings {
    margin-bottom: 8px;
    gap: 20px;
}
.nav3 > div > div {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}
h6 {
    font-weight: normal;
    margin: 0;
    color: white;
    font-size: 16px;
}
header button {
    user-select: none;
}
.knob {
    width: 54px;
    height: 54px;
    border-radius: 50px;
    line-height: 51px;
    font-size: 32px;
    background: silver;
    text-align: center;
    user-select: none;
    cursor: pointer;
    margin: 10px;
    text-shadow: 0px -1px 0px rgba(000, 000, 000, 0.2), 0px 1px 0px rgba(255, 255, 255, 1);
    background-image: linear-gradient(0deg, #ffffff 0%, #ebebeb 50%, #dbdbdb 50%, #999);
    box-shadow: 4px 4px 8px #333;
    border: 3px outset #ddd;
}
.knob:active {
    line-height: 54px;
    padding-left: 2px;
    box-shadow:
         4px 4px 8px #333,
        inset 1px 2px 4px rgba(0,0,0,0.7);
    border: 3px inset #ddd;
}
#flowControl.play {
    color: #7fff69;
    text-shadow: 0px -1px 0px rgba(000, 000, 000, 0.2), 0px 1px 0px rgba(255, 255, 255, 1), 0px 0px 4px #edffb5, 0px 0px 8px #edffb5;

}

.flowMenu {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.flowControl {
    font-size: 32px;
    color: white;
}
span#flowStop {
    font-size: 32px;
    color: white;
}
.f-carousel {
    --f-carousel-slide-height: 60%;
    --f-carousel-spacing:  10px;
    height: 60px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #050505;
    min-width: 50px;
    text-shadow:
        0px -1px 0px rgba(000,000,000,0.2),
        0px 1px 0px rgba(255,255,255,1);
    border-radius: 10px;
    background-image: linear-gradient(
        180deg,
        #ffffff 0%,
        #ebebeb 50%,
        #dbdbdb 50%,
        #b5b5b5);
    box-shadow: inset 4px 4px 8px #444;
}
.f-carousel__slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    justify-content: center;
    border-bottom: 1px solid #999;
    border-radius: 10px;
}
.is-vertical.is-ltr .f-button.is-arrow.is-prev ,
.is-vertical.is-ltr .f-button.is-arrow.is-next {
    height: 30px;
    color: white;
    right: -70px;
    left: auto;
}
.attackpositions {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
}
.attackpositions > span {
    display: inline-block;
    margin: 3px;
    padding: 0px 5px 0px;
    height: 24px;
    line-height: 24px;
    min-width: 24px;
    border-radius: 12px;
    background-color: white;
    transition: .4s;
    text-shadow: 0px -1px 0px rgba(000, 000, 000, 0.2), 0px 1px 0px rgba(255, 255, 255, 1);
    background-image: linear-gradient(0deg, #ffffff 0%, #ebebeb 50%, #dbdbdb 50%, #999);
    box-shadow: 4px 4px 8px #333;
    border: 1px outset #ddd;
    cursor: pointer;
}
.attackpositions > span.active {
    color: #ef4900;
    text-shadow: 0px -1px 0px rgba(000, 000, 000, 0.2), 0px 1px 0px rgba(255, 255, 255, 1), 0px 0px 4px #edffb5, 0px 0px 8px #edffb5;
    line-height: 26px;
    box-shadow:
         4px 4px 8px #333,
        inset 1px 2px 4px rgba(0,0,0,0.7);
    border: 1px inset #ddd;
}

/* switch toggle */
.toggle {
    display: flex;
    color: white;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.switch b {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 34px;
    background-color: #d27902;
    transition: .4s;
    font-weight: normal;
    color: #050505;
    text-shadow:
        0px -1px 0px rgba(000,000,000,0.2),
        0px 1px 0px rgba(255,255,255,1);
    border-radius: 10px;
    background-image: linear-gradient(
        180deg,
        #ffffff 0%,
        #ebebeb 50%,
        #dbdbdb 50%,
        #b5b5b5);
    box-shadow: inset 4px 4px 8px #444;
}

.switch b:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    border-radius: 50%;
    background-color: white;
    transition: .4s;
    text-shadow: 0px -1px 0px rgba(000, 000, 000, 0.2), 0px 1px 0px rgba(255, 255, 255, 1);
    background-image: linear-gradient(0deg, #ffffff 0%, #ebebeb 50%, #dbdbdb 50%, #999);
    box-shadow: 4px 4px 8px #333;
    border: 1px outset #ddd;
}
/*
.switch input:checked + b {
  background-color: #900;
}
*/

.switch input:focus + b {
    border: 1px solid white;
}
.switch input:checked + b:before {
    left: calc(100% - 30px);
}
.switch .on, .switch .off {
    position: absolute;
    width: 100%;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    padding: 0 5px;
    transition: 0.4s;
}
.switch .on {
    text-align: left;
    opacity: 0;
}
.switch .off {
    text-align: right;
}
.switch input:checked + b .on {
    opacity: 1;
}
input:checked + b .off {
    opacity: 0;
}



section {
    background: #ddd;
    width: 100vw;
    height: calc(100vh - 90px);
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}
div.playground {
    background: #ffcc99;
    border-style: solid;
    border-color: white;
    border-width: calc(0.4vw + 0.2vh);
    position: relative;
    margin: 0vw auto;
    top: 50%; 
    transition-duration: 0.4s;
    transform: translateY(-50%);
    aspect-ratio: 0.5;
}
div.playground.swap {
    transform: rotate(180deg) translateY(50%);
}
div.halffield {
    width: 100%;
    height: 50%;
    position: relative;
    /*
    background-image: 
        repeating-linear-gradient(0deg, grey, transparent 2px, transparent 10%), 
        repeating-linear-gradient(90deg, grey, transparent 2px, transparent 10%);
        */
}
#a_field {
    transform: rotate(180deg);
}
div.attackzone {
    width: 100%;
    height: 33.333%;
    position: absolute;
    border-style: solid;
    border-color: white;
    border-width: calc(0.2vw + 0.1vh) 0 calc(0.4vw + 0.2vh) 0;
    top: 0;
}
.zone {
    position: absolute;
    width: 33%;
    font-family: serif;
    font-size: 1000%;
    color: rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
}
.zone1, .zone5, .zone6 {
    height: 66%;
}
.zone2, .zone3, .zone4 {
    height: 36%;
}
.zone1 {
    left: 66%; top: 33%;
}
.zone2 {
    left: 66%; top: 0;
}
.zone3 {
    left: 33%; top: 0;
}
.zone4 {
    left: 0; top: 0;
}
.zone5 {
    left: 0; top: 33%;
}
.zone6 {
    left: 33%; top: 33%;
}
div#ball {
    position: absolute;
    width: 4.25%;
    height: 2.125%;
    border: calc(0.15vw + 0.08vh) solid #33f;
    background: #fe3;
    border-radius: 1vmax;
    top: 49%;
    left: 49%;
}
div.player {
    text-align: center;
    position: absolute;
    width: 10%;
    height: 4%;
    left: 45%;
    top: 48%;
    opacity: 0;
}
div.player b {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-style: solid;
    border-width: calc(0.4vw + 0.2vh);
    border-top-width: 0;
    font-size: calc(1.2vw + 0.6vh);
    font-weight: bold;
    text-align: center;
    line-height: 50%;
}
.player em {
    font-style: normal;
    color: black;
    font-family: "Arial Narrow", sans-serif;
    font-weight: normal;
    font-size: calc(1.4vw + 0.7vh);
    top: calc(1.3vw + 0.6vh);
    opacity: 0.7;
    white-space: nowrap;
    text-align: center;
    position: absolute;
    left: -150%;
    width: 400%;
}
#b_field .player.edit{
    transform: rotate(0) !important;
}
#a_field .player.edit{
    transform: rotate(180deg) !important;
}
.player em[contenteditable=true] {
    background-color: rgba(255,255,255,0.8);
    border: 1px solid #666;
    min-width: 100%;
}
.player.frontplayer {
    border-color: green;
    color: green;
}
.player.backplayer {
    border-color: red;
    color: red;
}
.blockshadow {
    background-image: linear-gradient(transparent 25%, rgba(0, 0, 0, 0.5) 30%, transparent);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 40%;
    height: 100%;
    left: 72%;
    top: -21%;
    position: absolute;
    transform-origin: top center;
    display: none;
}
div.playground {
    max-width: 90vw;
}

.hints, .hints > div {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}
.hints span {
    position: absolute;
    display: block;
    border-style: dashed;
    border-color: blue;
    border-width: 1px 1px 0 0;
}
.hints span:after, .hints span:before {
    content: ' ';
    font-size: 1px;
    line-height: 1px;
    display: block;
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: blue;
}
.hints span:before {
    left: -5px;
    top: -5px;
}
.hints span:after {
    right: -5px;
    bottom: -5px;
}
.rece3.rotation5 span.p4-5 {
    left: 23%;
    top:  6%;
    width: 14%;
}
.rece3.rotation5 span.p5-6 {
    left: 43%;
    top: 16%;
    height: 44%;
}

/****  RESPONSIVE SECTION  ****/
@media (min-aspect-ratio: 47/100) {
    div.playground {
        max-width: none;
        max-height: calc(90vh - 90px);
    }
}
@media (min-aspect-ratio: 1/1) {
    div.playground {
        transform: rotate(90deg) translateX(-100%);
        top: 50%;
        max-height: 90vw;
        max-width: none;
    }
    div.playground.swap {
        transform: rotate(-90deg) translateX(100%);
    }
    #b_field .player.edit{
        transform: rotate(-90deg) !important;
    }
    #a_field .player.edit{
        transform: rotate(90deg) !important;
    }
}
@media (min-aspect-ratio: 33/20) {
    div.playground {
        max-width: calc(90vh - 90px);
        max-height: none;
    }
}
