@font-face {
   font-family: "Pixelated MS Sans Serif";
   src: url(ms_sans_serif.woff) format("woff"), url(ms_sans_serif.woff2) format("woff2");
   font-weight: 400;
   font-style: normal;
}

@font-face {
   font-family: "Moon";
   src: url(moon.otf) format("opentype");
   font-weight: 600;
   font-style: normal;
}

:root {
   --button-text-color: #4932c9;
   --color1: #BFBFEF;
   --color2: #32328F;
   --color3: #ffffff;
}

input[type="text"] {
  font-family: "Pixelated MS Sans Serif";
  font-size: 28px;
  width: 325px;
  height: 100px;
  color: #ffffff;
  background-color: #1a1a2e;
  border: 1px solid #444;
  padding: 8px;
  cursor: url("./click.png"), auto;
}

input[type="color"] {
  width: 48px;
  height: 48px;
  border-radius: 50%; 
  border: 3px solid #4932c9; 
  padding: 0;
  cursor: url("./click.png"), auto;
  background-color: transparent;
  margin-right: 8px
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
}


body {
   margin:0;
   padding: 0;
   cursor: url("./cursor.png"), auto;

  color: var(#4932c9);
  image-rendering: pixelated;
  font-size: 18px;
  font-family: "Pixelated MS Sans Serif";
}

h1 {
   font-size: 100px;
   text-align: center;
   font-weight: bold;
   margin: 0.3em 0;
   font-family: "Moon";
         
  font-weight: bold;
  background: linear-gradient(135deg,var(--color1),var(--color2), var(--color3));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: pulseGradient 6s ease-in-out infinite;
}

@keyframes pulseGradient {
  0% {
    background-size: 200% 200%;
    background-position: 0% 0%;
    filter: hue-rotate(0deg);
  }
  50% {
    background-size: 300% 300%;
    background-position: 100% 100%;
    filter: hue-rotate(45deg);
  }
  100% {
    background-size: 200% 200%;
    background-position: 0% 0%;
    filter: hue-rotate(0deg);
  }
}

#desc {
   text-align: center;
}

#container { 
   display: flex;
   height: 100vh;
   align-items:center;
   flex-direction: column;
   gap: 10px;
}

#colorcontainer {
     display: flex;
   align-items: center;
   justify-content: center;
}

#canvas {
   border: 4px solid #0F132D;
   height: 500px;
   width: 720px;
   margin-bottom: 2em;
}

#vol_slider {
   display: flex;
    margin: 4px 0;
    width: 100%; 
    height: 16px; 
    border-radius: 8px;
    appearance: none;
   background: linear-gradient(to right, #4D23CF 0% , white 100%);
   cursor: url("./click.png"), auto;
   }

#vol_slider::-webkit-slider-thumb {
   appearance: none;
   width: 22px;
   height: 22px;
   border-radius: 50%;
   background: #2a1568;
   border: none;
   margin-top: -4px;
    }

.site-header {
  padding: 20px;
  background-color: hsl(232, 50%, 12%);
  background-image:
   url('stars.jpg');
   background-repeat: repeat;
 }

.title-container {
  display: flex;
  align-items: center; /* vertically centers image and title */
  justify-content: center; /* horizontally centers the whole block */
  gap: 10px; /* space between image and title */
}

.logo {
  height: 120px; /* matches the font size of the title */
}


/* grid container */
.left-sidebar-grid {
    display:grid;
    grid-template-areas:
        'main-content'
        'left-sidebar'
        'footer';
}

/* general column padding */
.left-sidebar-grid > * {
    padding:1rem;
    200px auto;
}

/* assign columns to grid areas */

.left-sidebar-grid > .main-content {
    grid-area:main-content;
    background:#fff;
}
.left-sidebar-grid > .left-sidebar {
    grid-area:left-sidebar;
    background:#cfd0f7;
    border-right: 4px solid #0F132D;
}
.left-sidebar-grid > .footer {
    grid-area:footer;
    background:#0F132D;
   text-align: center;
    color: #BFBFEF;
}

/* tablet breakpoint */
@media (min-width:768px) {
    .left-sidebar-grid {
        grid-template-columns: 1fr 3fr;
        grid-template-areas:
            'header header header'
            'left-sidebar main-content main-content'
            'footer footer footer';
    }
}


.button {
   color: var(--button-text-color);
   font-family: "Pixelated MS Sans Serif";
   image-rendering: pixelated;
   font-size: 24px;
   text-align: center;
   width: 169px;
  height: 45px;

   border: 4px solid transparent;
   border-image: url(button.png) 4 fill repeat;
}

.button:hover {
   cursor: url("./click.png"), auto;
   border-image: url(button_hovered.png) 4 fill repeat;
}

.button:active {
   border-image: url(button_pressed.png) 4 fill repeat;
}

.button:disabled {
   border-image: url(button_disabled.png) 4 fill repeat;
}