/* © Anton Kalyuta 2022 - 2026 */

#previewText {
    background: #03b6c9;
}

.theme {
    width: 17px;
    height: 17px;
    margin: 0 10px 0 0;
}

.amplifier {
    width: 17px;
    height: 17px;
    margin: 0 10px 0 0;
}

@media (max-device-width: 480px) {
    .theme {
        width: 25px;
        height: 25px;
        margin: 0 20px 0 0;
    }

    .amplifier {
        width: 25px;
        height: 25px;
        margin: 0 20px 0 0;
    }
}

#start {
    position: fixed;
    width: 100vw;
    left: 0;
    bottom: 0;
    border: none;
}

#start-stop {
    display: none;
}

/*.setting {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    padding: 5px;*/
/*    align-items: center;*/
/*    text-align: center;*/
/*    vertical-align: middle;*/
/*    width: 500px;*/
/*}*/

/*.settingDescription {*/
/*    text-align: left;*/
/*}*/

.pageName:before, .pageName:after {
    content: none;
}

#bottomPanel {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 0;
    z-index: 101;
    width: 100%;
}

#successesOuter {
    display: flex;
    /*position: fixed;*/
    width: 100%;
    background: #05c3d7;
    /*bottom: 0;*/
    /*right: 0;*/
    z-index: 102;
}

#successesInner {
    margin: auto;
    color: white;
    font-weight: bold;
    font-size: 30px;
}

.save {
    text-align: center;
    position: fixed;
    bottom: 115px;
    width: calc(30vw - 100px);
    padding: 20px 50px;
    font-size: 20px;
    border-radius: 12px;
    transform: translateX(-50%);
    left: 50%;
}

#start {
    position: fixed;
    width: 30vw;
    bottom: 30px;
    transform: translateX(-50%);
    left: 50%;
    border-radius: 12px;
}

#saved {
    color: #00cdba;
    font-size: 30px;
    position: fixed;
    bottom: 135px;
    transform: translateX(-50%);
    left: calc(50% + 27.5vw);
    display: none;
}

#settingsButton {
    font-size: 30px;
    /*width: 25vw;*/
    height: 75px;
    /*position: fixed;*/
    /*bottom: 0;*/
    /*left: 0;*/
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 102;
}

#timer {
    display: flex;
    width: 100%;
    padding-top: 20.5px;
    padding-bottom: 20.5px;
    font-weight: bold;
    position: revert;
    bottom: revert;
    z-index: revert;
    align-items: center;
    justify-content: center;
}

#answer {
    display: none;
    width: 600px;
    height: 200px;
    font-size: 100px;
    color: #05c3d7;
    font-weight: bold;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border-radius: 12px;
}

html.dark #answer {
    border: 5px solid white;
}

#answer::-webkit-outer-spin-button,
#answer::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#answer::placeholder {
    font-weight: bold;
    font-size: 100px;
    color: #05c3d749;
}

#checkSquareButton {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    /*position: fixed;*/
    /*bottom: 130px;*/
    width: calc(17vw + 84px);
    font-size: 30px;
    border-radius: 12px;
    /*transform: translateX(-50%);*/
    /*left: 50%;*/
    border: 5px solid #05c3d7;
    background: transparent;
    color: #05c3d7;
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    padding: 15px 50px;
}

#checkSquareButton[disabled=disabled] {
    border: 5px solid #aaaaaa;
    color: #aaaaaa;
    cursor: not-allowed;
}

html.dark #checkSquareButton[disabled=disabled] {
    border: 5px solid #767676;
    color: #767676;
}

.inputInSquareCell {
    width: 150px;
    height: 100px;
    border: 0;
    font-size: 35px;
    text-align: center;
}

.inputInSquareCell:focus-visible {
    border: 0;
}

.inputInSquareCell::placeholder {
    color: #05c3d7;
}

#magicSquare td {
    padding: 0;
}

#success {
    display: none;
    font-size: 8vw;
    color: #05c3d7;
    font-weight: bold;
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -40%);
}

#fail {
    display: none;
    font-size: 8vw;
    color: #ea7f7f;
    font-weight: bold;
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -40%);
}

#continueButton {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    /*position: fixed;*/
    /*bottom: 130px;*/
    width: calc(17vw + 84px);
    font-size: 30px;
    border-radius: 12px;
    /*transform: translateX(-50%);*/
    /*left: 50%;*/
    border: 5px solid #05c3d7;
    background: transparent;
    color: #05c3d7;
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    padding: 15px 50px;
}

#resultButton {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    /*position: fixed;*/
    /*bottom: 130px;*/
    width: calc(17vw + 84px);
    font-size: 30px;
    border-radius: 12px;
    /*transform: translateX(-50%);*/
    /*left: 50%;*/
    border: 5px solid #767676;
    background: transparent;
    color: #767676;
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    padding: 15px 50px;
}

#innerMagicSquaresWindow {
    position: fixed;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -25%);
    z-index: 102;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90vw;
}

#concealer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 102;
    background: white;
    display: none;
}

html.dark #concealer {
    background: #404040;
}

/*.focused {*/
    /*width: 100vw;*/
    /*height: 100vh;*/
    /*animation: 1s addClass;*/
/*}*/
/**/
/*@keyframes addClass {*/
/*    0% {*/
/*        width: max-content;*/
/*        height: max-content;*/
/*    }*/
/**/
/*    100% {*/
/*        width: 100vw;*/
/*        height: 100vh;*/
/*    }*/
/*}*/

#continueMagicSquares {
    display: none;
    position: fixed;
    width: 30vw;
    bottom: 30px;
    transform: translateX(-50%);
    left: 50%;
    border-radius: 12px;
    font-size: 30px;
}

.top-left-container {
    z-index: 102;
}

.squareBack {
    position: fixed;
    left: 20px;
    top: 35px;
    width: 42px;
    height: 42px;
}

#outerMagicSquaresWindow {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 101;
    display: none;
}

html.dark #outerMagicSquaresWindow {
    background: #404040;
}

#solveAgainButton {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    /*position: fixed;*/
    /*bottom: 130px;*/
    width: calc(17vw + 84px);
    font-size: 30px;
    border-radius: 12px;
    /*left: 125px;*/
    border: 5px solid #05c3d7;
    background: transparent;
    color: #05c3d7;
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    padding: 15px 50px;
}

#newSquareButton {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    /*position: fixed;*/
    /*bottom: 130px;*/
    width: calc(17vw + 84px);
    font-size: 30px;
    border-radius: 12px;
    /*right: 125px;*/
    border: 5px solid #767676;
    background: transparent;
    color: #767676;
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    padding: 15px 50px;
}

html.dark #newSquareButton {
    border: 5px solid #cccccc;
    color: #cccccc;
}

#auxiliaryPanel {
    position: fixed;
    display: flex;
    bottom: 130px;
    left: 0;
    width: 100vw;
    justify-content: space-evenly;
    z-index: 103;
    align-items: center;
}

#interruptButton {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 0;
}

.side {
    width: 50vw !important;
}

.central {
    width: 50vw;
}

html.dark #outerMagicSquares {
    background: #404040;
}

#numpad {
    display: none;
    position: fixed;
    left: 15%;
    top: 50%;
    transform: translate(-15%, -50%);
}

.numpadNumber {
    width: 75px;
    height: 35px;
    background: #767676;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 23px;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

.numpadNumber:active {
    background: #505050;
}

.numpadReset {
    background: #05c3d7;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

.numpadReset:active {
    background: #03a6b7;
}

#settings {
    width: max-content;
}

#magicSquaresSettings {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#headerDuringWorkout {
    font-weight: bold;
    position: fixed;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    z-index: 102;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    color: #05c3d7;
    user-select: none;
}

#squareHeight {
    font-size: 22px;
}

.textBlock {
    text-align: left;
    font-size: 25px;
    width: calc(900px - (20px * 2) - (4px * 2));
    line-height: 30px;
    border: 4px solid #73d7e2;
    padding: 20px;
    border-radius: 12px;
}

@media (max-device-width: 480px) {
    .textBlock {
        font-size: 60px;
        line-height: normal;
        width: calc(100% - 20px * 2);
    }
}

@media (max-height: 1700px) and (max-device-width: 480px), (max-height: 1700px) and (max-device-height: 480px) {
    #auxiliaryPanel, #bottomPanel, #headerDuringWorkout, .squareBack {
        display: none !important;
    }
}

@media (max-device-width: 480px) {
    .save, #start {
        transform: none;
        position: static;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
    }

    .bigInputInSquareCell {
        font-size: 80px !important;
    }

    .smallInputInSquareCell {
        font-size: 45px !important;
    }

    #settings {
        width: 85vw;
        font-size: 60px;
    }

    input[type=checkbox] {
        width: 50px;
        height: 50px;
    }

    #start {
        width: 90vw;
        font-size: 60px;
    }

    /*.settingDescription {*/
    /*    font-size: 60px;*/
    /*}*/

    #continueMagicSquares {
        width: 60vw;
        font-size: 50px;
    }

    #answerNumpad {
        left: 0;
        top: 70%;
        transform: translateY(-70%);
        width: 100vw;
        height: 30vh;
    }

    .numpadNumber {
        border-radius: 12px;
        font-size: 75px;
    }

    .numpadReset {
        border-radius: 12px;
        font-size: 75px;
    }

    #answer {
        width: 800px;
        height: 265px;
        top: 40%;
        transform: translate(-50%, -40%);
    }

    #solveAgainButton, #enter, #newSquareButton, #resultButton, #continueButton {
        font-size: 70px;
        border-width: 10px !important;
        padding: 60px 130px;
        width: 66vw;
    }

    #checkSquareButton {
        font-size: 70px;
        border-width: 10px !important;
        padding: 80px 130px;
        width: 66vw;
    }

    .save {
        width: 90vw;
        font-size: 60px;
        height: 60px;
        bottom: 240px;
        padding: 60px 0;
    }

    #saved {
        display: none !important;
    }

    .inputInSquareCell {
        /*font-size: 80px !important;*/
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        height: 200px;
    }

    #bottomPanel {
        height: 200px;
    }

    #timer, #successesInner {
        font-size: 60px;
    }

    #auxiliaryPanel {
        bottom: 250px;
        height: 600px;
        flex-wrap: wrap;
    }

    #success, #fail {
        font-size: 16vw;
    }

    #start {
        padding: 60px 75px;
    }

    /*.setting {*/
    /*    width: 100%;*/
    /*}*/

    #headerDuringWorkout, #squareHeight {
        font-size: 60px;
        line-height: normal;
    }
}
