/* use of variabls for the colour scheme */
:root {
    --bg:        #161e36;
    --surface:   #111827c3;
    --surface2:  #1a2236;
    --border:    rgba(99,179,237,0.12);
    --border2:   rgba(99,179,237,0.25);
    --accent:    #38bdf8;
    --accent2:   #818cf8;
    --text:      #e2e8f0;
    --muted:     #acbace;
    --font-head: 'JetBrains Mono', monospace;
    --font-body: 'Space Grotesk', sans-serif;
}
html { 
    scroll-behavior: smooth; 
} 

body{
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}
/* pseudo class. It loads this BEOFRE the body element above */
body::before{
    content: ''; /* works as a layer for everything underneath to go on. Similar to making a div class all in the html  */
    position:fixed;
    inset:0;
    background-image: 
    /* linear-gradient merges colors along the x or y axis */
        linear-gradient(rgba(56,189,248,0.1)1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.1)1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

input{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 18pt;
    z-index: 1;
    
}

canvas{
    position: relative;
    background-color: #ffffff;
    z-index: 1;
}

.banner-container{
    width: 100%;
    min-height:8vh;
    padding: 2rem 4rem;

    /* add the background image */
    background-image: url("images/binary-banner-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    /* background: linear-gradient(135deg, rgba(56,189,248,0.06) 0%, transparent 60%); */
    overflow: hidden;

}

.banner-title{
    color: #ffffff;            
    font-family: 'Arial', sans-serif;
    font-size: 3rem;              /* Large, bold text */
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Text shadow for extra readability against busy backgrounds */
    text-shadow: 4px 2px 4px rgba(0, 0, 0, 0.577);
    text-shadow: 0 0 8px #0d7e97,  /* Soft inner glow */
                 0 0 5px #0008ff;  /* Broader outer glow */

}

.main-menu{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    
    gap: clamp(12%, 5vw, 60px);
    padding: 5px;

    /* background: var(--surface); */
    background: #111827;;
    border-bottom: 2px solid var(--border);
}
.main-menu a{
    font-size: 1.6rem; /* adjust the content in the drop down*/
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: all 0.3s ease; /* Makes the hover effect smooth */
    padding-left: 5px;
    
}
.main-menu a:hover{
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0,210,255,0.6);
}

.dropdown{
    position: relative;
    z-index: 100;
}
.dropdown-content{
    display: none;
    position:absolute;
    width: max-content;
    white-space: nowrap;
    font-size: 2rem;
    
    /* color: rgb(120, 223, 244); */

    top:100%;
    left:0;
    min-width: 220px;
    background: var(--surface);
    /* border: 1px solid var(--border2); */
    border-top: 2px solid var(--accent);
    padding: 0.8rem;
    
}
.dropdown > a{
    display: block; /* whole area can be clicked */
    font-family: var(--font-head);
    font-size: 1.7rem;  /* adjust the heading of the dropdown menu */
    font-weight: 400;
    text-decoration: none;
    color: var(--muted);
    padding: 1rem 1.4rem;
    letter-spacing: 0.05em;
    text-transform: none;
    transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;

}
.dropdown-content a:hover{
    font-size: 20pt;
    color: var(--accent);
    padding-left: 1.4rem; /* move the highlighted link right*/
    
}
.dropdown:hover .dropdown-content {
  display: block;
}

.canvas-drawing{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10%;  
    z-index: 3;
}
.canvas-btns{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}