@import url('https://fonts.googleapis.com/css2?family=Reenie+Beanie&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html {
    font-size: 20pt;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

.none {
    display: none;
}

.flex {
    display: flex;
}

body {
    background-color: palegreen;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    height: 100vh;
}

.closed {
    display: none;
}

.opened {
    display: flex;
}

#grid-modal {
    position: absolute;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    top: 10%;
}

#modal-content {
    background-color: rgb(117, 196, 117);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgb(2, 151, 2);
}

fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#label-input {
    display: flex;
    flex-direction: column;
}

input {
    font-size: 1rem;
    padding-left: 10px;
}

#cancel-submit {
    display: flex;
    justify-content: space-around;
}

#cancel, #submit {
    font-size: 1rem;
    background-color: rgb(99, 250, 99);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

#cancel:hover, #submit:hover {
    background-color:rgb(213, 247, 213);
    color: rgb(99, 250, 99);
}

#start {
    cursor: pointer;
    color: white;;
    margin-top: 15vh;
    width: 80vmin;
    height: 20vmin;
    border: none;
    border-radius: 10px;
    box-shadow:0.25rem 0.25rem 0.25rem rgb(69, 158, 69);
    font-size: 10vmin;
    font-weight: bold;
    text-shadow: 0.25rem 0.25rem 0.25rem rgb(69, 158, 69);
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite;
}

@-webkit-keyframes pulsate {
    0% {
        background-image:linear-gradient(to bottom right, rgb(211, 253, 211), rgb(189, 255, 189), rgb(151, 250, 151),rgb(127, 253, 127), rgb(99, 250, 99));
    }
    9% {
        background-image:linear-gradient(to bottom right, rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189),rgb(151, 250, 151), rgb(127, 253, 127));
    }
    18% {
        background-image:linear-gradient(to bottom right, rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189), rgb(151, 250, 151));
    }
    27% {
        background-image:linear-gradient(to bottom right, rgb(151, 250, 151), rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189));
    }
    36% {
        background-image:linear-gradient(to bottom right, rgb(151, 250, 151), rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189));
    }
    45% {
        background-image:linear-gradient(to bottom right, rgb(189, 255, 189), rgb(151, 250, 151), rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211));
    }
    54% {
        background-image:linear-gradient(to bottom right, rgb(211, 253, 211), rgb(189, 255, 189), rgb(151, 250, 151),rgb(127, 253, 127), rgb(99, 250, 99));
    }
    63% {
        background-image:linear-gradient(to bottom right, rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189),rgb(151, 250, 151), rgb(127, 253, 127));
    }
    72% {
        background-image:linear-gradient(to bottom right, rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189), rgb(151, 250, 151));
    }
    81% {
        background-image:linear-gradient(to bottom right, rgb(151, 250, 151), rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189));
    }
    90% {
        background-image:linear-gradient(to bottom right, rgb(151, 250, 151), rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211), rgb(189, 255, 189));
    }
    100% {
        background-image:linear-gradient(to bottom right, rgb(189, 255, 189), rgb(151, 250, 151), rgb(127, 253, 127), rgb(99, 250, 99), rgb(211, 253, 211));
    }
}

.left {
    width: 50%;
    min-width: 14.0625rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.sketch {
    width: 50%;
    min-width: 14.0625rem;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
}

h1 {
    margin: 5vmin 0;
    padding: 3.5vmax;
    font-family: 'Reenie Beanie';
    font-size: 6vmax;
    font-weight: normal;
    color: rgb(104, 247, 104);
    text-shadow: 0.3vmin 0.3vmin rgb(69, 158, 69);
    letter-spacing: 1vmin;
    background-color:rgb(230, 250, 230);
    border: 0.2rem solid rgb(104, 247, 104);
    border-radius: 50%;
}

h3 {
    margin: 0;
    color:rgb(69, 158, 69);
    font-size: 5vmin;
    font-style: italic;
    text-align: center;
}

.borders {
    background: rgb(2, 151, 2);
    border-radius: 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border: 1rem solid rgb(2, 151, 2);
}

.grid-container {
    background-color: white;
    display: grid;
    width: 30vw;
    min-width: 12rem;
    height: 30vw;
    min-height: 12rem;
    margin-bottom: 0;
}

#dashboard {
    width: 30vw;
    min-width: 12rem;
    height: 6vw;
    min-height: 2.4rem;
    background-color: rgb(2, 151, 2);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

#left-knob, #right-knob {
    width: 5vw;
    height: 5vw;
    min-width: 50px;
    min-height: 50px;
    background-color: white;
    border-right: 1vw solid rgb(231, 231, 231);
    border-bottom: 1vw solid rgb(231, 231, 231);
    border-radius: 50%;
}

#brand {
    font-family: 'Reenie Beanie';
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.2rem;
    text-shadow: 1.25px 1.25px goldenrod;
    color: gold;
    align-self: center;
}

.small-div {
    background-color: white;
    box-shadow: inset 0.5px 0.5px rgb(213, 247, 213), inset -0.5px -0.5px rgb(213, 247, 213);
}

.play-area {
    background-color: rgb(117, 196, 117);
    border:5px solid rgb(69, 158, 69);
    padding: 10px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

.add-gap {
    gap: 10px;
}

.selections {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.25rem;
    border-radius: 5px;
    width: 7rem;
    cursor: pointer;
}

.separate {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 4px solid rgb(2, 151, 2);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#pixels {
    color: rgb(69, 158, 69);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(69, 158, 69);
    background-color: rgb(158, 255, 158);
    border-left-color:rgb(158, 255, 158);
    border-top-color:rgb(158, 255, 158);
    border-bottom-color:rgb(49, 252, 49);
    border-right-color:rgb(49, 252, 49);
}

#pixels:hover {
    background-color:rgb(105, 248, 105);
    border-left-color:rgb(105, 248, 105);
    border-top-color:rgb(105, 248, 105);
    color: white;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
}

.opt {
    display: none;
}

#clear {
    background-color:rgb(69, 158, 69);
    color: white;
    border-color: rgb(69, 158, 69);
    display: none;
}

#clear:hover {
    border-color: rgb(104, 247, 104);
    background-color: rgb(104, 247, 104);
}

#colors {
    color: white;
    background-image: linear-gradient(to right, #ff008c, orange, yellow, lime, cyan, #c567fc, hotpink);
    border-color: transparent;
}

#colors:hover {
    border-color: white;
    -webkit-animation: flow 0.75s ease-out;
    -webkit-animation-iteration-count: infinite;
}


@-webkit-keyframes flow {
    0% {
        background-image:linear-gradient(to right, #ff008c, orange, yellow, lime, cyan, #c567fc, hotpink);
    }
    17% {
        background-image:linear-gradient(to right, hotpink, #ff008c, orange, yellow, lime, cyan, #c567fc);
    }
    33% {
        background-image:linear-gradient(to right, #c567fc, hotpink, #ff008c, orange, yellow, lime, cyan);
    }
    50% {
        background-image:linear-gradient(to right, cyan, #c567fc, hotpink, #ff008c, orange, yellow, lime);
    }
    67% {
        background-image:linear-gradient(to right, lime, cyan, #c567fc, hotpink, #ff008c, orange, yellow);
    }
    83% {
        background-image:linear-gradient(to right, yellow, lime, cyan, #c567fc, hotpink, #ff008c, orange);
    }
    100% {
        background-image:linear-gradient(to right, orange, yellow, lime, cyan, #c567fc, hotpink, #ff008c);
    }
}


#original {
    color: white;
    background-color: lime;
    border-color: transparent;
}

#original:hover {
    background-color: white;
    color: lime;
    border-color: lime;
}

#darken {
    font-weight: bold;
    color: black;
    background-image: linear-gradient(to right, white, grey, white);
    border-color: transparent;
}

#darken:hover {
    color: white;
    background-image: linear-gradient(to right, black, grey, black);
}

footer {
    font-family: "Playfair Display";
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0;
}

footer p {
    margin: 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.25);
}

a {
    color: palegreen;
}

/*
@media(max-width: 400px) {
    .play-area {
        display: none;
    }
}*/