@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-primary: #232324;
    --color-secondary: #91ff00ed;
    --color-accent: #e74c3c;
    --font-family-base: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --spacing-base: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

html {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: #ffffff;
   


}

body {
    background-color:#232324f7;
}

#navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--color-primary); 
  
    padding:0.2rem 1rem 0 0.2rem;
}


nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap : 2em;
    
}
main {
display:grid;
margin: 2em;
grid-template-columns: 1fr 1fr 1fr 1fr;
background-color: transparent;

}

.about-section, .contact-section {
    background-color: var(--color-primary);
    padding:2em;
    border-radius: 5em 0 5em 0; 
}
nav li:first-child {
    margin-right: auto;
}
 

nav a {
    color: #ffffff;
    text-decoration: none;

}

#about:hover,#gallery:hover,#contact:hover,#painter:hover {
    background-color: var(--color-secondary);
    padding: 0.5em 1em;
    border-radius: 5em 0 5em 0;

}










/* Grid and cell styles (Gridtool look) */
.grid {
    width: min(720px, 92vw);
    margin: 1.5rem auto;
    display: grid;
    box-shadow: #232324 0px 4px 12px;
    user-select: none;  
    -webkit-user-select: none;
    -webkit-user-drag: none;
   
}

.cell {
    position: relative;
    background: transparent;
    min-height: 48px;
    min-width: 48px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.edges {
    position: absolute;
   
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    
    z-index: 1;
}

.edge {
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: background-color 160ms linear, transform 120ms ease;
    
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 50%; /* adjusted by JS */
    z-index: 2;
    transition: background-color 160ms linear, border-radius 120ms ease, width 120ms ease, height 120ms ease;
}

.clickable { 
    cursor: pointer; 
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.show-outline .cell { border: 2px solid rgba(0, 0, 0, 0.3); }
.show-outline .edge { border: 1px solid rgba(0, 0, 0, 0.4); }
.show-outline .circle { border: 1px solid rgba(0, 0, 0, 0.4); }

/* Painting state */
.painting * { cursor: crosshair !important; }

/* Grid info and controls inside panel */
#grid-info { color: #ddd; font-size: 0.9rem; margin: 0rem 0 1rem 0; }

.control-btn { background: #3a8a57; }



/*Slider*/
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 1px;
	background: #fff;
	cursor: pointer;
    margin: 0.5rem 0 1.5rem 0;
    border-radius: 100px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    background: var(--color-secondary);
    cursor: pointer;
    border-radius: 50%;
  
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: #fff;
}
#s8 {
    margin-bottom: 0.5rem;
}















/* Side panel styles */

#sideToggle {
    position: fixed;
    top: 0.6rem;
    left: 0.5rem;
    z-index: 1100;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.4rem 0.6rem;
    
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
}

#sideToggle:hover {
    background: var(--color-secondary);
}

#sidePanel {
    position: fixed;
    top: 0; /* updated by JS to sit below navbar */
    left: -320px;
    width: 320px;
    height: 100vh; /* adjusted by JS to account for navbar height */
    background: var(--color-primary);
    color: #fff;
    transition: left 0.28s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#sidePanel.open {
    left: 0;
}

.side-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 1rem;
    padding-top: 0.6rem;
    padding-left: 3.5rem;
    border-bottom: 1x solid rgb(133, 112, 112);
}

.side-controls {
    padding: 1rem;
    overflow:auto;
}

/* Custom scrollbar for the side panel controls */
#sidePanel .side-controls {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.28) rgba(0,0,0,0.06);
}

/* WebKit/Blink */
#sidePanel .side-controls::-webkit-scrollbar {
    width: 10px;
}
#sidePanel .side-controls::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
#sidePanel .side-controls::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.2));
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
#sidePanel .side-controls::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.32);
}
#sidePanel .side-controls::-webkit-scrollbar-corner { background: transparent; }

.control-group {
    border-bottom:#fff 0.1rem solid;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.control-group h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}


.control-btn {
    display:inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.7rem;
    background: var(--color-primary);
    border: solid 1px #ffffffb1;
    color: #fff;
    border-radius: 1em 0 1em 0;
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    
}

.control-btn:hover {
background-color: var(--color-secondary);
}


#palette-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.color-btn {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.color-btn.selected {
    outline: 3px solid rgba(255,255,255,0.85);
    transform: scale(1.05);
}



#sideOverlay.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 520px) {
    #sidePanel { width: 100%; right: -100%; }
    #sidePanel.open { right: 0; }
}

.footer {
    text-align: left;
    padding-left: 1rem;
    background-color: var(--color-primary);
    color: #ffffff;
    margin-top: var(--spacing-base);
    position:relative;
    bottom:0;
    width: 100%;
    z-index: 100;
}








/* Gallery styles */
/* Gallery styles */
/* Gallery styles */
/* Gallery styles */
/* Gallery styles */
/* Gallery styles */


#galleryhead {
  padding: 1em;
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
  
}

.galleryintro {  
  margin: 0 2em 2em 2em;
  padding: 1em;
  text-align: left;
  font-size: 1.1em;
  color: #dddddd;
  border-bottom:#fff 1px solid;
 
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap : 1em;
  margin: 5em;
}


.gimg {
 margin-top: 1em; 
  vertical-align: middle;
  width: 100%;
}

.gimg:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
  box-shadow: #232324 0px 4px 12px;
}



/*landingpage styles*/
/*landingpage styles*/      
/*landingpage styles*/
/*landingpage styles*/
.intro {
    
    text-align: left;
    margin: 2rem;
    background-color: #12121390;
    width:auto;
    padding: 2rem;
    border-radius: 8px; 

}
.landingpg{
    display:grid;
    flex:none;
    grid-template-columns: 1fr 1fr;
    place-items: top center;
    height: 100vh;
    background-color: transparent;
}

#lppic  
{
    width: 50%;
    margin: 2rem;

    
}
.bodycolor {
  background-image: url('pictures/landingbg.svg');
    background-size: cover;
  
}





/*about page styles*/
/*about page styles*/
/*about page styles*/
/*about page styles*/


