/*---------------COLOURS---------------

#aa33ff - PURPLE DOVE

*/


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #aa33ff;
}

.main-container{
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    height: 100vh;
    margin: 0 auto;
    background-color: #aa33ff;
}

.header-container{
    /* position: sticky;  /* Stays visible when scrolling */
    /* top: 0; */           /* Sticks exactly to the top edge */
    /* z-index: 1000; */    /* Ensures it stays on top of other content */
    
    display: flex;
    height: 100px;
    align-items: center;
    justify-content: space-between; 
    margin: 10px;   
}

a {
    display: inline-block;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    margin-left: 15px;
}

a:hover {
    color: #eee;
}

a.active {
    color: #bbb;
}

/*----------------DRAW PAGES----------------*/
.controls { 
    background: white; 
    border-radius: 12px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 5px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 1000px; 
    margin-bottom: 10px;
}

.main-layout {
    display: flex;
    flex-direction: row; /* Aligns items horizontally */
    align-items: flex-start; 
    gap: 10px;
    width: 100%;
    max-width: 1000px; 
    justify-content: center;			
}

/* Vertical Left Bar */
.view-bar {
    background: #2c3e50;
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column; 
    width: 160px; /* Fixed width for the sidebar */
    height: auto;
    border-radius: 12px;
    gap: 20px;
}

/* Small adjustment for the text in vertical bars */
.view-bar .group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* The Canvas in the middle */
canvas {
    background: #ffffff;
    border: 2px solid #000; 
    cursor: move;
    touch-action: none;
    flex-grow: 1; 
}	

/* Vertical Right Panel */
.analysis-panel {
    background: #fff;
    display: flex;
    flex-direction: column; 
    width: 160px;
    height: auto;
    border-top: 5px solid #2ecc71;
    padding: 10px;
    border-radius: 8px;
    justify-content: space-around;
    gap: 15px;
}

.cut-item { 
    display: grid;
    grid-template-columns: 90px 60px;
    align-items: center;
}

.cut-val { 
    display: block; 
    font-size: 14px; 
    font-weight: bold; 
    color: #27ae60; 
}

.cut-label { 
    font-size: 12px; 
    color: #000; 
    font-weight: bold; 
    text-transform: uppercase; 
}

button { 
	background: #2980b9; 
	color: white; 
	border: none; 
	padding: 10px 15px; 
		cursor: pointer; 
		border-radius: 4px; 
		font-size: 11px; 
}
	
button:hover { 
	background: #666; 
	}
	
.btn-center { 
	background: #2980b9; 
}

.btn-reset { 
	background: #95a5a6; 
}

.group { 
    border: 1px solid #eee; 
    padding: 8px; 
    border-radius: 8px;
}

label { 
    font-size: 10px; 
    font-weight: bold; 
    color: #555; 
    display: block; 
    margin-top: 5px; 
}

input[type="number"], input[type="text"], select { 
    width: 100%; 
    padding: 4px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: 
    border-box; 
}

h4 { 
    margin: 0 0 5px 0; 
    color: #333; 
    font-size: 12px; 
    font-weight: bold; 
    text-transform: uppercase; 
}

#headerInfo { 
    display: none; 
    text-align: center;
    width: 100%; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #333; 
    padding-bottom: 10px; 
}

#headerInfo h1 { 
    margin: 0; 
    font-size: 24px; 
    color: #e74c3c; 
    text-transform: uppercase; 
}

#headerInfo p { 
    margin: 5px 0; 
    font-size: 14px; 
    color: #444; 
    font-weight: bold; 
}

@media print {
	.controls, .snap-panel, .view-bar, button { display: none !important; }
	body { background: white; padding: 0; }
	.main-layout { display: block; }
	.view-bar, .analysis-panel { display: none !important; }
	#headerInfo { display: block !important; }
}


/*----------------MAIN PAGES----------------*/

.card-container {
    display: flex;
    flex-direction: row;
    max-width: 1000;
    height: 100dvh;
    text-align: center;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 30%;
    min-width: 250px;
    height: 400px;
    background-color: #eee;
    border-radius: 10px;
    border: .5em solid #333;
    margin: 20px 0;
}

.card-1:hover {
   transform: translate(70px, 0) scale(1.5); 
   transition: 1.5s;
}

.card-2:hover {
   transform: scale(1.5);
   transition: 1.5s;
}

.card-3:hover {
   transform: translate(-70px, 0) scale(1.5); 
   transition: 1.5s;
}

.footer-container{
    height: 100px;
    background-color: #444;
}

p {
    font-size: 14px;
    padding: 0 10px;
   background-color: transparent;
}

h2 {
    background-color: transparent;
}