@charset "utf-8";
/* CSS Document */

/* Default styles for all screen sizes */
html {
  touch-action: manipulation;
}

.buttonContainer {
    position: relative;
}

.buttonContainer:hover {
    right: 0px;
}

.buttonContainer:focus-within {
    right: 0px;
}

.dropdown-item {
    padding: 5px 16px;
    cursor: pointer;
    color: white;
    font-weight: 400;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}



#InfoDropdown .dropdown-item:hover, #InputDropdown .dropdown-item:hover {
    background-color: #D5FF4F;
	color: #0B0B0B;
	font-weight: 600;
}

.dropdown-item:hover {
    background-color: #2EAAFF;
	color: #0B0B0B;
	font-weight: 600;
}

.dropdown-item:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}


/* PORTRAIT MOBILE (up to 1099px wide) */
@media only screen and (orientation: portrait) and (max-width: 1099px) {
	
.selectionHolder {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1vw;
    top: 2vh;
    height: 10vw;
	width: 43vw;
    transition: right 0.4s ease;
	left: 28.5vw;
	z-index: 16;
	/* For PWA full screen - If safe-area-inset isn't supported, use 0 */
	padding-top: env(safe-area-inset-top, 0px);
}

.selectionHolder2 {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 70vw;
    top: 2vh;
	left: 5vw;
	height: 10vw;
	z-index: 15;
	/* For PWA full screen - If safe-area-inset isn't supported, use 0 */
	padding-top: env(safe-area-inset-top, 0px);
}
    
.selectionHolder.active {
	height: 25vh;
}

#paintStyleBtn, #canvasStyleBtn, #paletteStyleBtn, #generateZentangleBtn, #InfoBtn, #InputBtn {
	position: relative;
    width: 10vw;
	height: 100%;
    border-radius: 7px;
    cursor: pointer;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	font-size: 17px;
    text-align: center;
	display: flex;
    align-items: center;
    justify-content: center;
	vertical-align: center;
	/*box-shadow: 0px 3px 3px 1px rgba(0, 0, 0, 0.7);
	/*border: 1px solid #F1F7F6;*/
	background-color: black;
	color: rgba(241, 247, 246, 0);
	writing-mode: vertical-rl;
    text-orientation: mixed;
	border: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
	
	
.selectionHolder.active #paintStyleBtn,
.selectionHolder.active #canvasStyleBtn,
.selectionHolder.active #paletteStyleBtn,
.selectionHolder.active #generateZentangleBtn {
    color: white;
}
	
.selectionHolder2.active #InputBtn,
.selectionHolder2.active #InfoBtn {
    color: transparent; /* Change to show text when active */
}
	
.selectionHolder #paintStyleBtn:hover, 
.selectionHolder #canvasStyleBtn:hover, 
.selectionHolder #paletteStyleBtn:hover, 
.selectionHolder #generateZentangleBtn:hover {
    background: #2EAAFF;
	color: transparent;
	font-weight: 600;
}
	
.selectionHolder.active #paintStyleBtn:hover, 
.selectionHolder.active #canvasStyleBtn:hover, 
.selectionHolder.active #paletteStyleBtn:hover, 
.selectionHolder.active #generateZentangleBtn:hover {
    background: #2EAAFF;
	color: #0B0B0B;
	font-weight: 600;
}
	
.selectionHolder2 #InputBtn:hover,
.selectionHolder2 #InfoBtn:hover {
    background: #D5FF4F;
	color: transparent;
	font-weight: 600;
}
	
.selectionHolder2.active #InputBtn:hover,
.selectionHolder2.active #InfoBtn:hover {
    background: #D5FF4F;
	color: transparent;
	font-weight: 600;
}

.button-icon-overlay {
    position: absolute;
    left: 10%;
    transform: translateY(-95%);
    pointer-events: none;
    width: 80%;
	z-index: 5;
}

.button-icon-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#paintStyleBtn:hover ~ .button-icon-overlay img, 
#canvasStyleBtn:hover ~ .button-icon-overlay img, 
#paletteStyleBtn:hover ~ .button-icon-overlay img, 
#generateZentangleBtn:hover ~ .button-icon-overlay img,
#InputBtn:hover ~ .button-icon-overlay img,
#InfoBtn:hover ~ .button-icon-overlay img,
#InfoBtn2:hover ~ .button-icon-overlay img {
    filter: brightness(0);
}
	

#paintDropdown, #canvasDropdown, #paletteDropdown, #zentangleDropdown, #InfoDropdown, #InputDropdown {
	position: fixed;
	top: 28vh;
	bottom: auto;
	left: 21.5vw;
	right: 21.5vw;
	/*border: 1px solid #e2e8f0;*/
	border-radius: 7px;
	box-shadow: -2px 3px 3px -1px rgba(0, 0, 0, 0.8);
	opacity: 1;
	visibility: visible;
	transition: opacity 0s ease, visibility 0.2s ease, transform 0s ease;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	text-align: center;
	background-color: black;
	color: #F1F7F6;
	z-index: 1000;	
}

#paintDropdown.hidden, #canvasDropdown.hidden, #paletteDropdown.hidden, #zentangleDropdown.hidden, #InfoDropdown.hidden, #InputDropdown.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px);
    pointer-events: none;
}
	
.dropdown-item {
    padding: 5px 16px;
    cursor: pointer;
    color: white;
    font-weight: 400;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}
	
    #InfoBtn .button-text,
    #InputBtn .button-text {
        display: none;
    }

}

/* LANDSCAPE MOBILE/TABLET (480px to 1099px wide) */
@media only screen and (min-width: 480px) and (orientation: landscape) and (max-width: 1099px) {
	
.selectionHolder {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1vw;
    bottom: 6vh;
    height: 4.5vw;
	width: 21vw;
    transition: right 0.4s ease;
	left: 62.5vw;
	z-index: 17;
}
	
.selectionHolder2 {
    position: fixed;
    display: flex;
	flex-direction: row-reverse;
    justify-content: center;
    gap: 29vw;
    transition: right 0.4s ease;
	right: 8vw;
	bottom: 6vh;
    z-index: 16;
}

	
.selectionHolder.active{
	height: 21vw;
}

	
#paintStyleBtn, #canvasStyleBtn, #paletteStyleBtn, #generateZentangleBtn, #InfoBtn, #InputBtn {
    position: relative;
    width: 4.5vw;
	height: 100%;
    border-radius: 7px 7px 7px 7px;
    cursor: pointer;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	font-size: 18px;
	padding-bottom: 3vw;
	/*box-shadow: 0px 8px 5px -4px rgba(0, 0, 0, 0.8); 
	border: 1px solid #F1F7F6;*/
	background-color: black;
	color: transparent;
	writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	vertical-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
	border: none;
}

#InfoBtn, #InputBtn {
    width: 4.5vw;
	height: 4.5vw;
}
	
.selectionHolder.active #paintStyleBtn,
.selectionHolder.active #canvasStyleBtn,
.selectionHolder.active #paletteStyleBtn,
.selectionHolder.active #generateZentangleBtn {
    color: white;
}
	
.selectionHolder2.active #InputBtn,
.selectionHolder2.active #InfoBtn {
    color: transparent; /* Change to show text when active */
}
	
.selectionHolder #paintStyleBtn:hover, 
.selectionHolder #canvasStyleBtn:hover, 
.selectionHolder #paletteStyleBtn:hover, 
.selectionHolder #generateZentangleBtn:hover {
    background: #2EAAFF;
	color: transparent;
	font-weight: 600;
}
	
.selectionHolder.active #paintStyleBtn:hover, 
.selectionHolder.active #canvasStyleBtn:hover, 
.selectionHolder.active #paletteStyleBtn:hover, 
.selectionHolder.active #generateZentangleBtn:hover {
    background: #2EAAFF;
	color: #0B0B0B;
	font-weight: 600;
}
	
.selectionHolder2 #InputBtn:hover,
.selectionHolder2 #InfoBtn:hover
 {
    background: #D5FF4F;
	color: transparent;
	font-weight: 600;
}
	
.selectionHolder2.active #InputBtn:hover,
.selectionHolder2.active #InfoBtn:hover {
    background: #D5FF4F;
	color: transparent;
	font-weight: 600;
}
	
.button-icon-overlay {
    position: absolute;
    bottom: 0.45vw;
	left: 0.45vw;
	right: 0.45vw;;
    pointer-events: none;
	height: 3.6vw;
	z-index: 5;
}
	
.selectionHolder.active .button-icon-overlay,
.selectionHolder2.active .button-icon-overlay {
    bottom: 0.45vw;
}

.button-icon-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


#paintStyleBtn:hover ~ .button-icon-overlay img, 
#canvasStyleBtn:hover ~ .button-icon-overlay img, 
#paletteStyleBtn:hover ~ .button-icon-overlay img, 
#generateZentangleBtn:hover ~ .button-icon-overlay img,
#InputBtn:hover ~ .button-icon-overlay img,
#InfoBtn:hover ~ .button-icon-overlay img,
#InfoBtn2:hover ~ .button-icon-overlay img {
    filter: brightness(0);
}

#paintDropdown, #canvasDropdown, #paletteDropdown, #zentangleDropdown, #InfoDropdown, #InputDropdown {
	position: fixed;
    width: 42vw;
    column-count: 2;
    column-gap: 10px;
	column-rule-width: 1px;
    column-rule-style: solid;
    column-rule-color: rgba(255, 255, 255, 0.1);
    padding: 1vw;
	top: auto;
	bottom: 18vh;
	left: 8vw;
	right: auto;
	border-radius: 7px;
	opacity: 1;
	visibility: visible;
	transition: opacity 0s ease, visibility 0.2s ease, transform 0s ease;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	text-align: center;
	background-color: black;
	color: #F1F7F6;
	z-index: 1000;
}

	
.dropdown-item {
	break-inside: avoid;
    flex: 0 0 calc(50% - 5px); /* Each item takes 50% width minus gap */
    margin: 2.5px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
}
/* Remove bottom borders from last item in columns */	
#canvasDropdown .dropdown-item:nth-child(5),
#paletteDropdown .dropdown-item:nth-child(5),
#paintDropdown .dropdown-item:nth-child(5),
#zentangleDropdown .dropdown-item:nth-child(5) {
    border-bottom: none;
}
#InputDropdown .dropdown-item:nth-child(2) {
    border-bottom: none;
}


#paintDropdown.hidden, #canvasDropdown.hidden, #paletteDropdown.hidden, #zentangleDropdown.hidden, #InfoDropdown.hidden, #InputDropdown.hidden, #InfoDropdown2.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px);
    pointer-events: none;
}

}

/* DESKTOP (1100px and wider) */
@media only screen and (min-width: 1100px) {
	
.selectionHolder {
    position: absolute;
    top: 85.5vh;
    left: 50%;
    transform: translateX(-50%);
    height: 6vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 90%;
    margin-top: 0.5%;
    max-width: 1500px;
    transition: 0;
    z-index: 15;
	rotate: 0deg;
}
	
.selectionHolder.active {
    top: 86.5vh;
}

.selectionHolder2 {
    position: absolute;
	top: 5.5vh;
	left: 50.25vw;
    transform: translateX(0%);
	height: 6vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1%;
    width: 44.75vw;
    max-width: 745px;
    transition: 0;
    z-index: 12;
	rotate: 0deg;
}


.selectionHolder:focus-within {
    right: 0;
}   

.buttonContainer {
    flex: 1;
    position: relative;
}

#paintStyleBtn, #canvasStyleBtn, #paletteStyleBtn, #generateZentangleBtn, #InfoBtn, #InputBtn {
    position: relative;
    width: 100%;
	min-width: 120px;
	height: 6vh;
    padding: 1vw 5vw 1vw 5vw;
    border-radius: 10px;
    cursor: pointer;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	font-size: 21px;
	/*box-shadow: 0px 8px 5px -4px rgba(0, 0, 0, 0.8);
	border: 1px solid #F1F7F6;*/
	background-color: black;
	color: #F1F7F6;
	writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.2s ease;
	border: none;
}
	
#InfoBtn2, #InfoBtn2 ~ .button-icon-overlay img {
	transform: translateX(-90.7vw) translateY(-13vh); /* Remove minus to put back */
}

#paintDropdown, #canvasDropdown, #paletteDropdown, #zentangleDropdown {
	position: absolute;
	top: auto;
	bottom: 6vh;
	left: 0%;
	right: 0%;
	border: 1px solid #777777;
	border-radius: 10px 10px 10px 10px;
	/*box-shadow: -2px 3px 3px -1px rgba(0, 0, 0, 0.8);*/
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	width: 100%;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	text-align: center;
	background-color: black;
	color: #F1F7F6;
	z-index: 1000;
	opacity: 1;
	visibility: visible;
}
	
#InfoDropdown, #InputDropdown {
	position: absolute;
	bottom: auto;
	top: 6vh;
	left: 0%;
	right: 0%;
	border: 1px solid #777777;
	border-radius: 10px;
	/*box-shadow: -2px 3px 3px -1px rgba(0, 0, 0, 0.8);*/
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	width: 100%;
	font-family: "Imprima", sans-serif;
	font-weight: 500;
	text-align: center;
	background-color: black;
	color: #F1F7F6;
	z-index: 1000;
	opacity: 1;
	visibility: visible;
}

#paintDropdown.hidden, #canvasDropdown.hidden, #paletteDropdown.hidden, #zentangleDropdown.hidden, #InfoDropdown.hidden, #InputDropdown.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px);
    pointer-events: none;
}
	
#paintStyleBtn:hover, #canvasStyleBtn:hover, #paletteStyleBtn:hover, #generateZentangleBtn:hover {
	background: #2EAAFF;
	color: #0B0B0B;
	font-weight: 600;
}
	
#InfoBtn:hover, #InputBtn:hover {
	background: #D5FF4F;
	color: #0B0B0B;
	font-weight: 600;
}

.button-icon-overlay {
    position: absolute;
    left: auto;
	left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 5vh;
    height: 5vh;
	z-index: 5;
}

.button-icon-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    rotate: 0deg;
}
	
#paintStyleBtn:hover ~ .button-icon-overlay img, 
#canvasStyleBtn:hover ~ .button-icon-overlay img, 
#paletteStyleBtn:hover ~ .button-icon-overlay img, 
#generateZentangleBtn:hover ~ .button-icon-overlay img,
#InputBtn:hover ~ .button-icon-overlay img,
#InfoBtn:hover ~ .button-icon-overlay img,
#InfoBtn2:hover ~ .button-icon-overlay img {
    filter: brightness(0);
}
	

}