html, body { /*gonna have to change my karanvir.io page css to get the karanvir.io link to align perfectly with the original page*/
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

body {
    display: flex;
    background: linear-gradient(to bottom right, #1A1C20, #2B2D31);
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center; /* Center horizontally */
}

h5 {
    color: #e1e1e1;
    font-family: "Grandstander";
    font-size: 3em;
    width: 100%;
    text-align: center;  
    margin-top: 35px;
  }

.h5-link {
    color: inherit;              /* Use the color of the parent (h5) */
    text-decoration: none;       /* Remove underline */
    cursor: pointer;             /* Show pointer cursor on hover */
  }
  
  .h5-link:hover {
    opacity: 0.8;                /* Optional: subtle effect on hover */
  }


.grandstander-font {
    font-family: "Grandstander", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

canvas {
    border: 20px solid #171717;
    border-radius: 15px;
    position: fixed; /* Remove it from the normal flow */
    top: 50%;           /* Center vertically */
    left: 50%;          /* Center horizontally */
    transform: translate(-50%, -50%);
    width: 80vw; /* Full width of the viewport */
    height: 64vh; /* Full height of the viewport */
    display: block; /* Prevents extra space below the canvas */
    box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.3);

}

.toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;


    background-color: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);


  }

.toolbar button{
    flex: 1;
    padding: clamp(8px, 2vw, 16px); /* Responsive padding */

    color: #E0E0E0;
    background-color: #333; /* neutral dark */
    border: none;
    

    border-radius: 8px;
    font-family: 'Grandstander', sans-serif;
    font-size: 25px;
    cursor: pointer;
    position: relative;      /* anchor for absolute child */
    transition: transform 0.3s ease; /*dunno why transform is not in orange like recognised by vscode but it works so wotever*/

    overflow: hidden;

}

.toolbar button:hover {
    color: transparent;      /* Hide original text */
    background-color: #444;
    transform: scale(1.05);
}

.toolbar button:hover::after {
    content: attr(data-hover);
    color: #E0E0E0;
    font-size: 25px;
    white-space: nowrap;     /* 👈 keeps text in one line */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}




/* Popup styling */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Grandstander';

}

.popup-content {
    background: rgba(20, 20, 20, 0.4); /* semi-transparent dark background */
    backdrop-filter: blur(10px);        /* main blur effect */
    -webkit-backdrop-filter: blur(10px);    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); /* outside shadow */
    width: 300px;
    max-width: 90%;
    position: relative;
    color: #E0E0E0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%; /* 👈 makes it a circle */
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
  }
  
.close-btn:hover {
    background-color: #cc3333;
}

.show-popup-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.show-popup-btn:hover {
    background-color: #0056b3;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

input[type="range"] {
    width: 100%;
}

select {
    width: 100%;
    padding: 5px;
}

#player-speed {
    width: 300px;
    height: 10px;
    }

#sound-toggle {
    /* Hide the default checkbox */
    display: none;
  }
  
#sound-toggle + label {
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    color: #E0E0E0;
    }

#reduce-speed:checked + label {
    background-color: #28a745; /* Green when checked */
    }

#reduce-speed + label::before {
    margin-right: 5px;
    }

#reduce-speed-slider {
    display: none;
}

#reduce-speed-slider-value {
    font-family: 'Grandstander';
    display: none;
}

/*
* {
    outline: 1px solid red;
}
*\