body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: #f4f4f4;
	font-family: sans-serif;
}

h2 {
	font-size: 14pt;
}

h1 {
	font-size: 18pt;
}

p {
	font-size: 12pt;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    gap: 10px;
}

.main-canvas {
    width: 66%;
    display: flex;
    justify-content: center;
    min-width: 600px;
}

.under-canvas {
    width: 100%;
    display: flex;
    justify-content: center;
    min-width: 900px;
}

.side-canvases {
    display: flex;
    flex-direction: column;
    width: 33%;
    gap: 10px;
    min-width: 300px;
}


canvas {
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    height: auto;
}

#infoDiv {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;  
    width: 100%;
    height: 300px;
 
}

/* Mellomstore skjermer */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .main-canvas {
        width: 90%;
        min-width: 500px;
    }

    .under-canvas {
        width: 90%;
        min-width: 500px;
    }

    .side-canvases {
        flex-direction: row;
        width: 90%;
        justify-content: space-between;
    }

    .side-canvases canvas {
        width: 48%;
    }
	
	#infoDiv { 
		width: 100%;
	}
	
}

/* Små skjermer (mobil i vertikal retning) */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .main-canvas,
    .under-canvas,
    .side-canvases {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    canvas {
        width: 100%; /* Alle lerreter får samme bredde */
        max-width: 400px; /* Begrens størrelsen for små skjermer */
    }
	#infoDiv {
		width: 100%;
		max-width: 400px;
	}
}
