body {
    position: relative;
    margin: 0;
    background: #2f2f2f;
    padding: 10px 0;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 0;
    overflow: hidden;
    color:white;
}
/* popup */
.popupCloseBtn {
    border: 2px solid rgb(11, 0, 58);
    background-color: rgb(151, 222, 255);
    color: black;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(103, 59, 226, 0.212);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding:16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    max-width: 500px;
    max-height: 175px;
    height: 100%;
    width: 100%;
    padding: 24px 20px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(1, 105, 44, 0.4);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.overlay.show.popup {
    transform: translateY(0);
}

.popup h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #690000;
}

.popup p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.4;
}

.popup button:active {
    background: #0a57b6;
}
/* nav bar */
.navicons {
    max-height: 60px;
    height: 40px;
    width: 135px;
    font-size: 1.5rem;
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbarcanvas {
    list-style: none;
    background-color: rgb(3, 0, 45);
    overflow: visible;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    display: flex;
    padding: 1rem;
    box-sizing: border-box;
}

.navbarcanvas li{
    position: relative;
}

.navbarcanvas a {
    color: #00ffff;
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* drawing stuff*/

.container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 5px;
}
canvas {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block; 
    border: 2px solid #1504ff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    cursor:crosshair;
}

.tools {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin-top: 15px;
}

.tools .color-field {
    height: 20px;
    width: 20px;
    min-height: 30px;
    min-width: 30px;
    cursor:pointer;
    display:inline-block;
    cursor:pointer;
    box-sizing:border-box;
    border-radius: 20%;
    border: 2px solid white;
    margin: 0 15px; 
    transition-duration:0.4s;
}

.tools .button {
    align-self: center;
    width: 60px;
    height: 30px; 
    border: 2px solid white;
    cursor:pointer;
    color:white;
    background: #222;
    font-weight: bold;
    margin: 0 15px; 
    transition-duration:0.4s;
}

.tools .button:hover {
    border-color : #0a57b6;
}

.color-field:hover {
    border-color : #0a57b6;
}

.color-field {
    width: 100%;
    aspect-ratio: 1/1;
}

    

.color-picker {
    align-self: center; 
    margin: 0 15px;
    height: 50px;
}

.pen-range {
    align-self: center; 
    margin: 0 15px;
}

@media screen and (max-width:1432px) {
    canvas {
        width: 100%;
        height: 100%;
    }

}


/*--dropdown menu--*/
.dropdown {
    position: relative;
    z-index: 9999
}
.dropdown-menu{
    position:absolute;
    top: 100%;
    left: auto;
    right: 0;
    list-style: none;
    background: rgba(58, 33, 68, 0.483);
    min-width: 175px;
    padding: 0;
    margin: 0;
    transform: translateY(-10px);
    z-index: 9999 !important;
    pointer-events: auto;

    opacity: 0;
    visibility: hidden;

   transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;

    /*glass*/
    background: rgba(40, 0, 68, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;

    box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 255, 0.1);

    cursor: pointer;
    overflow: hidden;
    z-index: 9999;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap:10px;
    transform: translateY();

    padding: 12px 16px;
    color: white;
    text-decoration: none;

    transition: 0.2s ease;
    z-index: 9999;
    cursor: pointer;

}

.dropdown-menu a:hover {
    color: #fff;
    text-shadow:
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
}

.dropdown-menu.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    transition:         
        opacity .3s ease,
        transform .3s ease,
        visibility 0s;
}

.dropdown-menu img {
    position: relative;
    width: 30%;
    height: 30%;
    border-radius: 4px;
    max-width: 20px;
    max-height: 20px;
}
    

