@charset "utf-8";
/*  JavaScript 7th Edition
    Chapter 10
    Hands-on Project 10-2

    Filename: styles.css
*/

/* Structural Elements */
html {
   background-color: #F1F1F1;
}

body {
   font-family: Arial, Helvetica, sans-serif;
   margin: 0 auto;
   padding: 0;
   width: 1000px;
   background-color: white;
   box-shadow: 0px 0px 20px rgb(51, 51, 51);
}

header {
   background-color: #3F51B5;
   color: white;
   padding: 10px 20px;
}

header h1 {
   font-size: 2.4em;
   margin: 0;
}

section {
   padding: 20px;
}

section h1 {
   font-size: 1.8em;
   margin: 0 0 10px 0;
   color: #3F51B5;
}

section p {
   font-size: 1.1em;
   margin: 0 0 20px 0;
   line-height: 1.4;
}

/* Tangram Puzzle Board Setup */
div#puzzle {
   width: 960px;
   height: 550px;
   background-color: #E8EAF6;
   border: 2px solid #3F51B5;
   position: relative; /* Acts as the positioning parent context for absolute positioning calculations */
   margin: 0 auto;
   overflow: hidden;
}

/* Individual Tangram (Tan) Pieces Styling */
div#puzzle > img {
   position: absolute; /* Crucial for script-driven style.left and style.top modifications */
   cursor: grab;
   user-select: none;
   -webkit-user-select: none;
}

/* Active Drag State Cursor styling */
div#puzzle > img:active {
   cursor: grabbing;
}

/* Initial Absolute Placement Coordinates for the Tans */
img#tan0 { left: 40px; top: 40px; }
img#tan1 { left: 240px; top: 40px; }
img#tan2 { left: 440px; top: 40px; }
img#tan3 { left: 640px; top: 40px; }
img#tan4 { left: 140px; top: 280px; }
img#tan5 { left: 340px; top: 280px; }
img#tan6 { left: 540px; top: 280px; }