@font-face {
    font-family: font;
    src: url(font.ttf);
}

:root {
    --c-selected: transparent;
    --c-dark: #212121;
    --c-light: #f4f4f6;
    --c-body: var(--c-light);
    --c-block: #FFFFFF;
    --c-head: var(--c-dark);
    --c-text: var(--c-dark);
    --c-title: #E5E7EB;
}

.theme-dark {
    --c-body: #282828;
    --c-block: var(--c-dark);
    --c-head: var(--c-dark);
    --c-text: var(--c-light);
    --c-title: #111;
}

*, *:before, *:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: font;
    font-size: 16px;
    border: none;
    color: var(--c-text);
}

body {
    background: var(--c-body);
    width: 100%;
    padding: 32px;
    -webkit-text-size-adjust: none;
}

main {
    max-width: 1200px;
    margin: auto auto 16px auto;
}

section, .color_picker .body {
    border-radius: 8px;
    width: 100%;
}

section.block {
    position: relative;
    background: var(--c-block);
    padding: 16px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 32px;
    overflow: hidden;
}

h2 {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

h3 {
    font-size: 18px
}

h2 + div {
    margin-top: 16px;
}

.dashed {
    border-bottom: 1px dashed;
    cursor: pointer;
}

.nowrap {
    white-space: nowrap;
}

.ads {
    max-height: 100px;
    border-radius: 8px;
    margin: 32px auto 0;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#date_input {
    padding: 4px 6px;
    width: 150px;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: black;
    border: 1px solid #d9d9d9;
}

.picker .ok {
    margin-left: 10px;
    margin-right: 5px;
}

.picker .ok:active {
    transform: scale(0.9);
}

.color_picker .picker, .theme .light, .theme .switch, .theme .dark, .home {
    z-index: 1;
}

.color_picker {
    margin-top: 40px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 4px 8px -1px #00000080;
    box-shadow: 0 4px 8px -1px rgba(0,0,0,0.5);
}

.color_picker .body {
    background: var(--c-head);
    display: flex;
    flex-direction: row;
    padding: 28px 24px;
    justify-content: center;
    align-items: center;
}

.home {
    text-decoration: none;
    background: no-repeat 50% url(svg/home.svg);
    width: 104px;
    height: 28px;
}

.color_picker .picker {
    background: var(--c-light);
    height: 44px;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    margin: 0 46px 0 24px;
}

.color_picker .picker:not(#since):not(#to) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color_picker .picker .color {
    background: var(--c-selected);
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

#color_sw {
    display: none
}

#color_sw:checked ~ main .arrow {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor" transform="rotate(180)" fill="transparent"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
    width: 16px;
    height: 16px;
}

.theme {
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme .light {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="white" fill="transparent"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>');
    width: 20px;
    height: 20px;
    filter: brightness(0.95);
}

.theme .switch {
    display: flex;
    align-items: center;
    background: var(--c-light);
    width: 48px;
    height: 28px;
    padding: 4px;
    border-radius: 50px;
    justify-content: flex-start;
    cursor: pointer;
    margin: 0 12px;
}

#theme:checked ~ main .theme .switch {
    justify-content: flex-end;
}

.theme .switch > div {
    background: var(--c-dark);
    width: 20px;
    height: 20px;
    border-radius: 50px;
}

#theme {
    display: none;
}

.theme .dark {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="white" fill="transparent"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>');
    width: 20px;
    height: 20px;
    filter: brightness(0.95);
}

@media screen and (max-width: 781px) {
    #pythagoras_square > div {
        height: 150px !important;
    }
}
    
@media screen and (max-width: 600px) {
    body {
        padding: 16px;
    }

    .color_picker {
        margin-top: 82px;
    }

    .color_picker .picker {
        margin: 0 auto;
    }

    .color_picker .body {
        justify-content: flex-start;
        transition:0.2s;
    }
    
    .pickerwidth .body {
        width: 100vw;
        margin-left: -16px;
        border-radius: 0;
    }
    
    .pickerwidth2 {
        position:fixed;
        margin-top: 0;
    }

    .home {
        position: absolute;
        left: 0;
        bottom: 127px;
        background-position: left;
    }

    body:not(.theme-dark) .home {
        background: no-repeat left url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="black" viewBox="0 0 32 32"><path d="M 16 2.59375 L 15.28125 3.28125 L 2.28125 16.28125 L 3.71875 17.71875 L 5 16.4375 L 5 27 L 5 28 L 6 28 L 13 28 L 14 28 L 14 27 L 14 18 L 18 18 L 18 27 L 18 28 L 19 28 L 26 28 L 27 28 L 27 27 L 27 16.4375 L 28.28125 17.71875 L 29.71875 16.28125 L 16.71875 3.28125 L 16 2.59375 z M 16 5.4375 L 25 14.4375 L 25 26 L 20 26 L 20 17 L 20 16 L 19 16 L 13 16 L 12 16 L 12 17 L 12 26 L 7 26 L 7 14.4375 L 16 5.4375 z"></path></svg>');
    }

    .home:after {
        content: 'Home';
        margin-left: 36px;
        font-weight: bold;
        display: block;
        font-size: 16px;
        line-height: 30px;
    }

    .theme {
        position: absolute;
        right: 0;
        bottom: 127px;
    }

    body:not(.theme-dark) .theme .switch {
        background: var(--c-dark);
    }

    body:not(.theme-dark) .theme .switch > div {
        background: var(--c-light);
    }

    body:not(.theme-dark) .theme .light {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="black" fill="transparent"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>');
    }

    body:not(.theme-dark) .theme .dark {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="black" fill="transparent"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>');
    }

    .bot {
        display: flex !important;
        margin-top: 32px;
        width: 100%;
        align-items: center;
    }
    
    .totop {
        border-bottom: 1px dashed;
    }
}

#hex_pick {
    color: var(--c-dark);
    display: none;
}

h1 {
    z-index: 999;
    color: var(--c-text);
    font-size: 24px;
    text-align: center;
    margin: 6px 10px 0 10px;
    font-weight: bold;
}

@media screen and (max-width: 600px) {
h1 {
    margin: 22px 10px 0 10px;
}
}

.bot {
    display: none;
    justify-content: space-between;
}

.bot .theme, .bot .home {
    position: unset;
    display: flex;
}

.bot .home {
    width: 28px;
}

.bot .home:after {
    display: none
}

@media screen and (max-width: 500px) {
    .ads {
        max-height: 300px;
    }
}

.html span {
    padding-right: 30px;
}

.codelink {
    text-decoration: none;
}

p {
    margin: 16px 0 3px 0;
}

.calendar_month {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar_day:nth-child(7n-1), .calendar_day:nth-child(7n) {
    color: crimson
}

.calendar_day, .calendar_day_name {
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar_day_name {
    background: #6c00ff;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.calendar_day:hover {
    background: #f6f9ff;
    border-radius: 8px;
    color: black;
}

.current {
    background: #e0ebff;
    border-radius: 8px;
    color: black;
}
.current:hover {
    background: #e0ebff;
}

#fate_matrix {
    width: 300px;
    height: 300px;
    margin: 1rem auto 0 auto;
    position: relative;
    border-radius: 150px;
    background: radial-gradient(circle, transparent 124px, var(--c-text) 125px, var(--c-text) 129px, transparent 130px),
    linear-gradient(0deg, transparent 147px, var(--c-text) 148px, var(--c-text) 152px, transparent 153px),
    linear-gradient(90deg, transparent 147px, var(--c-text) 148px, var(--c-text) 152px, transparent 153px);
}

.fm_l, .fm_u, .fm_r, .fm_d, .fm_lu, .fm_ru, .fm_rd, .fm_ld, .fm_c {
    position: absolute;
    width: 300px;
    height: 50px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.fm_l > *, .fm_u > *, .fm_r > *, .fm_d > *, .fm_lu > *, .fm_ru > *, .fm_rd > *, .fm_ld > *, .fm_c > * {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #6c00ff;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    cursor: default;
    transition:0.2s;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.fm_r > *, .fm_d > *, .fm_l > *, .fm_u > * {
    background: #db3a32;
}
.fm_c > * {
    transform: scale(1.6);
    transition:0.2s;
    cursor:pointer;
}
.fm_c > *:hover {
    transform: scale(1.9);
}

.fm_l {
    transform: rotate(0deg);
}

.fm_l > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(0deg);
}


.fm_u {
    transform: rotate(90deg);
}

.fm_u > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-90deg);
}


.fm_r {
    transform: rotate(180deg);
}

.fm_r > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-180deg);
}


.fm_d {
    transform: rotate(270deg);
}

.fm_d > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-270deg);
}


.fm_lu {
    transform: rotate(45deg);
}

.fm_lu > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-45deg);
}


.fm_ru {
    transform: rotate(135deg);
}

.fm_ru > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-135deg);
}


.fm_rd {
    transform: rotate(225deg);
}

.fm_rd > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-225deg);
}


.fm_ld {
    transform: rotate(315deg);
}

.fm_ld > * {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-315deg);
}


.fm_c > * {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

#e_fate_matrix > :last-child > div {
    margin-top: 2rem
}

#pythagoras_square {
    display: grid;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: fit-content;
    grid-template-columns: repeat(3, 1fr);
    border: solid 1px #111;
}

#pythagoras_square > div {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px var(--c-text);
    font-size: 24px;
    flex-direction: column;
}

.pss {
    font-weight: bold;
    padding: 5px;
}

.pst, .psl {
    display: flex;
    padding: 5px;
    line-height: 1;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

body {
    animation: theme 21s linear infinite;
}
body:after,
body:before {
    content: '';
    display: block;
    position: fixed;
    z-index: -1;
    top: 0;
    width: 100vw;
    height: 100vh;
    width: 100vmax;
    height: 100vmax;
    background: rgba(0,0,0,0.02);
    animation: background 90s linear infinite;
}
.theme-dark:before, .theme-dark:after {
    background: rgba(255,255,255,0.05);
}
body:after {
    left: 15vw;
}
body:before {
    right: 15vw;
    animation-delay: -30s;
    animation-direction: reverse;
}
@keyframes background {
    0% {
        transform: rotate(0deg);
    }
    
    100% {
        transform: rotate(360deg);
    }
}
#e_zodiac p, #e_color p, #e_stone p, #e_day_of_week p, #e_calendar a {font-size: 18px;}
@media screen and (max-width: 359px) {
    #e_pythagoras_square {padding: 16px 12px;}
    #pythagoras_square div {font-size: 14px;}
    #fate_matrix {background:none;width: auto;}
    .fm_l, .fm_u, .fm_r, .fm_d, .fm_lu, .fm_ru, .fm_rd, .fm_ld, .fm_c {width: auto;}
}
@media screen and (min-width: 980px) {
    #e_zodiac, #e_day_of_week, #e_color, #e_stone {width: 49%;display: inline-block;}
    #e_zodiac, #e_color {margin-right: calc(2% - 5px);}
    #e_calendar a {text-decoration: none;}
}
.calendar_empty {cursor: default;}

#mainpicker:before {
    content:url(svg/arrow.svg);
    position: relative;
    left: -3px;
    top: 0;
    width: 24px;
    height: 24px;
    margin: 0 3px 0 2px;
    transform: scale(-1, 1);
}
#fate_matrix:after {
    position:absolute;
    display:block;
    padding:10px 15px;
    line-height: 1.1;
    border-radius:8px;
    border: 1px solid #ebebeb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    font-weight: normal;
}
@media screen and (min-width: 821px) {
    .color_picker {
        overflow:hidden;
    }
    #color_picker:after {
        content:url('svg/111.svg');
        position: absolute;
        right:-70px;
        top:-55px;
        width:200px;
        height:200px;
        opacity:0.9;
        transform: rotate(-24deg);
    }
}

@media screen and (max-width: 820px) {
    #e_about:after {
        content:url('svg/111.svg');
        position: absolute;
        right:-78px;
        top:-60px;
        width:140px;
        height:140px;
        opacity:1;
        transform: rotate(16deg);
    }
}

@media screen and (min-width: 431px) and (max-width: 820px) {
    #e_about {padding-right: 40px;}
    #e_about h2 {margin-right: 30px;}
}
@media screen and (max-width: 430px) {
    #e_about h2 {margin-right: 50px;}
}

#e_fate_num:after, #e_horoscope:after, #e_names:after, #e_compatibility:after {
    position: absolute;
    right: -100px;
    top: -70px;
    width: 160px;
    height: 160px;
    opacity: 1;
}
#e_fate_num, #e_horoscope, #e_names, #e_compatibility {padding-right: 40px;}
#e_fate_num h2, #e_horoscope h2, #e_names h2, #e_compatibility h2 {margin-right: 30px;}

@media screen and (max-width: 430px) {
    #e_fate_num, #e_horoscope, #e_names, #e_compatibility {padding-right: 16px;}
    #e_fate_num h2, #e_horoscope h2, #e_names h2, #e_compatibility h2 {margin-right: 50px;min-height: 50px;}
}

#e_fate_num:after {
    content:url('svg/3333.svg');
    transform: rotate(333deg);
    right: -68px;
    top: -39px;
    width: 120px;
    height: 120px;
}
#e_horoscope:after {
    content:url('svg/777.svg');
    transform: rotate(139deg);
    right: -104px;
}
#e_names:after {
    content:url('svg/1111.svg');
    transform: rotate(234deg);
}
#e_compatibility:after {
    content:url('svg/2222.svg');
    transform: rotate(287deg) scale(-1, -1);
    right: -103px;
}
#e_calendar h2 {margin-right: 45px;}
#calend {position: absolute;top: 10px;right: 12px;width: 38px;z-index: 1;cursor: pointer;transition:0.2s;}
#calend:hover {transform: scale(1.2);}

.more {
    display: block;
    line-height: 0;
    margin-top: 13px;
    margin-bottom: 0;
    text-align: left;
}
.more img {
    width:30px;
    transform: scale(-1, -1);
    opacity: 0.4;
}
.more img:hover {
    opacity: 0.9;
}
.theme-dark .more img {opacity: 1;filter: invert(1);}

@media screen and (min-width: 980px) {
    .more2 {
        position: absolute;
        bottom: 14px;
        right: 16px;
    }
}

main {
    margin-bottom: 40px;
}
@media screen and (max-width: 600px) {
    main {
        margin-bottom: 50px;
    }
}

.chatgpt {
    position: fixed;
    bottom: 16px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    background: var(--c-text);
    color: var(--c-body);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 11;
    width: 88px;
    height: 34px;
    margin-top: 1px;
}
@media screen and (max-width: 600px) {
    .chatgpt {right: 8px;}
}
.chatgpt span {
    color: var(--c-body);
    transform:translateY(-1px);
}
.chatgpt:before {
    content: '';
    display: block;
    position: relative;
    min-width: 7px;
    width: 7px;
    min-height: 7px;
    height: 7px;
    border-radius: 50px;
    background: #26ef46;
}
.chatgpt:hover:before {background: #efd626;}