* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background-color: #111;
    color: white;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/* ---------------------------------------------------------------------*/
/* --------------------------Start Screen View--------------------------*/
/* ---------------------------------------------------------------------*/
#startScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh;    
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("https://4kwallpapers.com/images/walls/thumbs_3t/26243.jpg");
    background-size: cover;
    background-position: center;
    z-index: 100;
}
.menuContent {
    text-align: center;
    background: none; /* Keeps it completely transparent so the image stays visible */ 
    border: none; 
    box-shadow: none;
}
.authorTitle {
    margin: -80px 0 0;
    font-size: 60px;
    font-weight: bold;  
    color: white;  
    letter-spacing: 2px;
    /* Strong text shadows make my name pop 
    cleanly on top of the bright sky image background */
    text-shadow:
        0 4px 15px rgba(0, 0, 0, .9),
        0 2px 5px rgba(0, 0, 0, .9);
}
#playButton {
    margin-top: 250px;
    padding: 15px 50px;
    font-size: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    background: #5c8e32;
    border: none;
    border-bottom: 4px solid #3b5e20;
    border-radius: 6px;
    cursor: pointer;
    transition: .15s;
    box-shadow: 0 8px 25px rgba(0,0,0,.6);
}
#playButton:hover {
    background: #6ba33b;
    transform: translateY(-2px);
}
#playButton:active {
    transform: translateY(2px);
    border-bottom-width: 0;
}
/* ---------------------------------------------------------------------*/
/* --------------------------- Game Container --------------------------*/
/* ---------------------------------------------------------------------*/
#gameContainer {
    display: none;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #2c3e50;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
/* ---------------------------------------------------------------------*/
/* ----------------------------- Left Sidebar --------------------------*/
/* ---------------------------------------------------------------------*/
.leftSidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#toolsSidebar,
#sidebar {
    background: #34495e;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#toolsSidebar h3,
#sidebar h3 {
    margin: 0 0 10px;
    padding-bottom: 5px;

    font-size: 1.2rem;

    border-bottom: 2px solid #bdc3c7;
}
/* ---------------------------------------------------------------------*/
/* ------------------------ BlockSelector Buttons ----------------------*/
/* ---------------------------------------------------------------------*/
.blockSelector {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    background: #2c3e50;
    color: white;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: .2s;
}
button.blockSelector {
    font: inherit;
    text-align: left;
    outline: none;
}
.blockSelector:hover {
    background: #243442;
}
.blockSelector.active {
    background: #1a252f;
    border-color: #f1c40f;
}
/* ---------------------------------------------------------------------*/
/* ---------------------------- Block Preview --------------------------*/
/* ---------------------------------------------------------------------*/
.colorPreview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}
.colorPreview.grass {
    background-image: url("https://i.pinimg.com/1200x/bd/cb/64/bdcb6414071ce880f3fa1dc18e2eda5b.jpg");
    background-size: cover;
}
.colorPreview.dirt {
    background-image: url("https://i.pinimg.com/736x/0e/1f/c2/0e1fc2e0638e878d3ba8db495152164c.jpg");
    background-size: cover;
}
.colorPreview.stone {
    background-image: url("https://64.media.tumblr.com/22a4c98f65d1241fde7be0299e3289e7/49f0582d0d0f904d-fc/s500x750/6f7b5ec22e628d1fdad364db01a62f05bf34cf17.png");
    background-size: cover;
}
/* ---------------------------------------------------------------------*/
/* ------------------------------- Canvas ------------------------------*/
/* ---------------------------------------------------------------------*/
#gameCanvas {
    border: 4px solid #1a252f;
    border-radius: 6px;
}
/* ---------------------------------------------------------------------*/
/* -------------------- Instructions Right Sidebar ---------------------*/
/* ---------------------------------------------------------------------*/
#instructionsSidebar {
    width: 200px;
    background: #34495e;
    padding: 15px;
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}
#instructionsSidebar h3 {
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #bdc3c7;
    font-size: 1.2rem;
}
#instructionsSidebar p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.instructionList {
    margin: 5px 0 0;
    padding-left: 18px;
}
.instructionList li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}
.instructionDivider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 12px 0;
}