@import url('https://fonts.googleapis.com/css2?family=Protest+Guerrilla&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');

/* PUSH MENU */
#menu-switch{
  display: none;
}
#menu {
    position: fixed;

    height: 100%;
    padding: 50px 30px;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;

    -webkit-transition: all .3s ease-in;
       -moz-transition: all .3s ease-in;
         -o-transition: all .3s ease-in;
            transition: all .3s ease-in;

    font-family: 'Rubik', sans-serif;
    text-align: center;

    background-color: #343434;
    z-index: 2;
}
@media (orientation: landscape) {
    #menu {
        top: 0;
        right: -40vw;
    
        width: 40vw;
    }
    #menu-switch:checked ~ #menu {
        right: 0;
    }
}
@media (orientation: portrait) {
    #menu {
        top: 100vh;
        right:0;
    
        width: 100vw;
    }
    #menu-switch:checked ~ #menu {
        top: 0;
    }
      
}
.title {
    font-family: "Protest Guerrilla", sans-serif;
    font-weight: 400;
    font-size: 10vh;
    font-style: normal;
    
    color: #ddd;

    border-bottom: 1px solid #eee;
}
#menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
}


/* button adapted from https://codepen.io/t_afif/pen/XWEPxPv*/
.solver-setting-container {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 10vh;
    text-align: left;

    display: flex;
    gap: 0px;

    --b: 5px;   /* border thickness */
    --h: 8vh; /* height */
}
.solver-setting {
    min-width: 0;
    height: var(--h);
    font-size: calc(var(--h) /2);
    font-weight: bold;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    color: #ddd;
    border: var(--b) solid #ddd;
    
    box-sizing: border-box;
    
    -webkit-transition: box-shadow .1s ease-in;
    -moz-transition: box-shadow .1s ease-in;
        -o-transition: box-shadow .1s ease-in;
        transition: box-shadow .1s ease-in;
}
.beginner-solver {
    flex: calc(1 + var(--_s, 0));

    clip-path: polygon(0 0, 100% 0, calc(100% - 0.577*var(--h)) 100%, 0 100%);
    padding: 0 calc(0.288*var(--h)) 0 0;
    margin: 0 calc(-0.288*var(--h)) 0 0;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;

    background: conic-gradient(at calc(100% - 1.3*var(--b)) 0, #ddd 209deg) border-box;
}
.quick-solver {
    flex: calc(1 + var(--_s,0));

    clip-path: polygon(calc(0.577*var(--h)) 0, 100% 0, 100% 100%, 0 100%);
    margin: 0 0 0 calc(-0.288*var(--h));
    padding: 0 0 0 calc(0.288*var(--h));
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;

    background: conic-gradient(from -90deg at calc(1.3*var(--b)) 100%, #ddd 119deg, #0000 121deg) border-box;
}
.active-solver {
    box-shadow: inset 0 0 0 100vmax whitesmoke;
    color: black;
}

/* https://codepen.io/alvarotrigo/pen/RwjEZeJ?editors=1100 */
.beginner-settings p {
    font-size: calc(8vh / 3);
    letter-spacing: 1px;
}
.toggle-container {
    margin-top: 2%;
    display: flex;
    gap: 20px;
    align-items: center;

    border-bottom: 1px solid #eee;
}
.toggle {
    display: none;
    box-sizing: border-box;
}
.toggle-btn {
    margin-left: auto;
    outline: 0;
    display: block;
    width: 16em;
    height: 2em;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.toggle:checked + .toggle-btn:after {
    left: 50%;
}
.toggle + .toggle-btn {
    overflow: hidden;
    transform: skew(-10deg);
    backface-visibility: hidden;
    transition: all 0.2s ease;
    font-family: sans-serif;
    background: ivory;
}
.toggle + .toggle-btn:after, .toggle + .toggle-btn:before {
    transform: skew(10deg);
    display: inline-block;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    position: absolute;
    line-height: 2em;
    font-weight: bold;
    color: black;
    text-shadow: 0 1px 0 rgba(255, 255, 240, 0.4);
}
.toggle + .toggle-btn:after {
    left: 100%;
    content: attr(data-tg-on);
}
.toggle + .toggle-btn:before {
    left: 0;
    content: attr(data-tg-off);
}
.toggle + .toggle-btn:active {
    background: ivory;
}
.toggle + .toggle-btn:active:before {
    left: -10%;
}
.toggle:checked + .toggle-btn {
    background: mediumaquamarine;
}
.toggle:checked + .toggle-btn:before {
    left: -100%;
}
.toggle:checked + .toggle-btn:after {
    left: 0;
}
.toggle:checked + .toggle-btn:active:after {
    left: 10%;
}

/*https://codepen.io/madhan_s/pen/KKxZgZQ*/
.quick-settings {
    display: none;
    width: 100%;
}
.quick-settings p {
    float: left;
    font-size: calc(8vh / 3);
    letter-spacing: 1px;
}
.quick-steps {
    float: right;
    width: 50%;
    height: 10%;
    display: flex;
    border-radius: 50%;

    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
#steps::-webkit-inner-spin-button,
#steps::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
#steps {
    -moz-appearance: textfield;
    padding: 10px;
    text-align: center;
    font-size: calc(6vh / 3);
}
.quick-steps * {
    border: none;
    width: 50px;
    flex: 1;
}
.quick-steps button {
    cursor: pointer;
}
#decrement {
    font-size: calc(8vh / 3);
    border-radius: 25% 0 0 25%;
    color: red;
}
#increment {
    font-size: calc(8vh / 3);
    border-radius: 0 25% 25% 0;
    color: green;
}
/*http://www.menucool.com/tooltip/css-tooltip*/
.tooltip {
    position: relative;
    float: left;
    border-bottom: 1px dotted #666;
    text-align: left;
}
.tooltip .left {
    min-width: 20vw;
    max-width: 40vw;
    top: 50%;
    right: 100%;
    margin-right: 20px;
    transform: translate(0, -50%);
    padding: 10px 20px;
    color: black;
    background-color:#ddd;
    font-weight:normal;
    font-size: calc(8vh / 3);
    border-radius: 8px;
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    box-shadow: 0 1px 8px rgba(0,0,0,0.5);
    visibility: hidden;
    opacity:0;
    transition: opacity 0.8s;
}
.tooltip:hover .left {
    visibility: visible;
    opacity: 1;
}
.tooltip .left i {
    position:absolute;
    top:50%;
    left:100%;
    margin-top:-12px;
    width: 12px;
    height: 24px;
    overflow: hidden;
}
.tooltip .left i::after {
    content:'';
    position:absolute;
    width:12px;
    height:12px;
    left:0;
    top:50%;
    transform:translate(-50%,-50%) rotate(-45deg);
    background-color:#ddd;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);
}

/*Animation speed https://codepen.io/seanstopnik/pen/nKjmPX*/
.anim-speed {
    box-sizing: border-box;
    margin: 60px 0 0 0;
    width: 90%;
    position: absolute;
    bottom: 3vh;
}
.anim-speed-setting {
    font-size: calc(8vh/3);
    margin-left: 5px;
    float: left;
}
.range-slider {
    box-sizing: border-box;
    -webkit-appearance: none;
    width: calc(100% - (100px));
    height: 10px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    padding: 0;
    margin: 0;
}
.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: mediumaquamarine;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}
.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: mediumaquamarine;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}
.range-slider:active::-webkit-slider-thumb {
    background: #343434;
}
.range-slider::-moz-range-thumb:hover {
    background: #343434;
} 
.range-slider:active::-moz-range-thumb {
    background: #343434;
}
.range-slider::-webkit-slider-thumb:hover {
    background: #343434;
}

.range-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px #eee, 0 0 0 6px mediumaquamarine;
}
.range-value {
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    width: 75px;
    color: #343434;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: mediumaquamarine;
    padding: 5px 10px;
    margin-left: 8px;
}
.range-value:after {
    position: absolute;
    top: 8px;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-right: 7px solid mediumaquamarine;
    border-bottom: 7px solid transparent;
    content: '';
}
::-moz-range-track {
    background: #ddd;
    border: 0;
}
input::-moz-focus-inner, input::-moz-focus-outer {
    border: 0;
}

/* MAIN PAGE */
.page-wrap {
    padding: 0; 
    float: right;

    -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
            box-sizing: border-box;

    -webkit-transition: all .3s ease-in;
        -moz-transition: all .3s ease-in;
            -o-transition: all .3s ease-in;
            transition: all .3s ease-in;
}

@media (orientation: landscape) {
    #menu-switch:checked ~ .page-wrap {
        margin-right: 20vw;
    }
}

/* MENU TOGGLE ICON */
#menu-toggle:focus {
    outline: none;
}

#menu-toggle {
    display: inline-block;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;

    width: 50px;
    height: 50px;

    cursor: pointer;

    border: none;
    -webkit-border-radius: 50px;
       -moz-border-radius: 50px;
            border-radius: 50px;
    background: #fff;
      -webkit-transition: all .5s ease;
       -moz-transition: all .5s ease;
         -o-transition: all .5s ease;
            transition: all .5s ease;
}

.fa-gear {
    position: absolute;
    top: 7px;
    right: 7px;
    color: #343434;
    font-size: 36px;
}

#menu-switch:checked ~ #menu-toggle {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}

/* CONTENT CONTAINER */
.container {
    width: 100vw;
    margin: 0 auto;
}