/* reset */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* styles */

:root {
    --dark-color: rgb(24, 24, 24);
}

body {
    font-family: "Montserrat", sans-serif;
    background: conic-gradient(from var(--gradient-angle, 135deg),
            rgb(255, 79, 109),
            rgb(77, 95, 255),
            rgb(80, 205, 255),
            rgb(162, 255, 118),
            rgb(255, 236, 62),
            rgb(255, 156, 63),
            rgb(255, 79, 109));
    min-height: 100vh;
    text-align: center;
    animation: rotate 10s linear infinite;
}

.main_block {
    position: absolute;
    top: 50%;
    left: 50%;
    min-height: 60vh;
    color: white;
    transform: translate(-50%, -50%);
    background-color: var(--dark-color);
    width: 50vh;
    border-radius: 25px;
}

header {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 5px;
    margin-top: 50px;
    font-size: 30px;
    font-weight: 700;
}

.main {
    margin-top: 40px;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 37vh;
    gap: 20px;
}

.time_block p {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 300;
    opacity: .8;
}

.time_input {
    font-size: 24px;
    width: 75px;
    height: 50px;
    border-radius: 10px;
    border: none;
    padding: 15px;
    opacity: 1;
    transition: opacity 0.2s;
}

.time_input.off {
    opacity: 0.25;
    pointer-events: none;
}

.inputs {
    display: flex;
    gap: 5px;
}

.inputs span {
    margin-top: 15px;
    opacity: .5;
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
    gap: 10px;
}

.time_checkbox {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: var(--dark-color);
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.time_checkbox::before {
    content: "";
    width: 12px;
    height: 12px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em currentColor;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.time_checkbox:checked::before {
    transform: scale(1);
}

.time_checkbox:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.time_checkbox:active {
    transform: scale(0.9);
}

.time_checkbox:checked {
    background: conic-gradient(from var(--gradient-angle, 135deg),
            rgb(255, 79, 109),
            rgb(77, 95, 255),
            rgb(80, 205, 255),
            rgb(162, 255, 118),
            rgb(255, 236, 62),
            rgb(255, 156, 63),
            rgb(255, 79, 109));
    animation: rotate 4s linear infinite;
    border: none;
}

@property --gradient-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 135deg;
}

@keyframes rotate {
    from {
        --gradient-angle: 135deg;
    }

    to {
        --gradient-angle: 495deg;
    }
}

.generate_timer_btn {
    position: relative;
    z-index: 1;
    font-size: 22px;
    padding: 12px 27px;
    border-radius: 10px;
    border: none;
    background: conic-gradient(from var(--gradient-angle, 135deg),
            rgb(255, 79, 109),
            rgb(77, 95, 255),
            rgb(80, 205, 255),
            rgb(162, 255, 118),
            rgb(255, 236, 62),
            rgb(255, 156, 63),
            rgb(255, 79, 109));
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 1);
    font-weight: 900;
    color: var(--dark-color);
    cursor: pointer;
    transition: transform 0.2s;
    animation: rotate 4s linear infinite;
}

.generate_timer_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: conic-gradient(from var(--gradient-angle, 135deg),
            rgb(255, 79, 109),
            rgb(77, 95, 255),
            rgb(80, 205, 255),
            rgb(162, 255, 118),
            rgb(255, 236, 62),
            rgb(255, 156, 63),
            rgb(255, 79, 109));
    filter: blur(15px);
    transform: translateY(0px) scale(0.95);
    z-index: -1;
    opacity: 0.5;
    transition: all 0.2s;
    animation: rotate 4s linear infinite;
}

.generate_timer_btn:hover {
    transform: translateY(-5px);
}

.generate_timer_btn:active {
    transform: translateY(-5px) scale(0.95);
}

.generate_timer_btn:hover::before {
    opacity: 0.8;
    transform: translateY(7px);
}

.me img {
    width: 200px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-weight: 500;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
}

@media (max-height: 740px) {
    .main_block {
        width: 60vh;
        min-height: 70vh;
    }
}

@media (max-height: 620px) {
    .main_block {
        min-height: 80vh;
        width: 70vh;
        top: 10px;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .main_block {
        width: 95vw;
    }

    .me img {
        right: 50%;
        transform: translateX(50%);
    }
}