/* Globalne style */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7fa;

    margin: 20px;
	width: 90%;
    padding: 20px;
    color: #333;
}

h2{
    font-size: 46px;
}

form {
    font-size: 26px;
	width: 100%;
    padding: 20px;
}


/* Styl przycisków */
button, .btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 12px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 20px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover, .btn:hover {
    background-color: #45a049;
    transform: scale(1.02);
}

input[type=submit], button[type=submit] {
    background-color: #365771; /* kolor niebieski */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 26px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    input[type=text], input[type=password], input[type=email], textarea, select {
        font-size: 26px;
		max-width: 800px;
        padding: 8px;
    }


input[type=submit]:hover, button[type=submit]:hover {
    background-color: #1976D2; /* ciemniejszy niebieski przy najechaniu */
    transform: scale(1.03);
}

#canvas-wrapper {
  width: 100%;
/*  aspect-ratio: 1 / 1;  stosunek szerokości do wysokości (1:1 = kwadrat) */
}

/* Styl inputów */
input[type=text], input[type=password],input[type=number], input[type=email], textarea, select {
    padding: 10px;
    margin: 8px 0;
    border: 2px solid #ccc;
    border-radius: 20px;
    transition: border-color 0.3s ease;
    font-size: 16px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus, 
textarea:focus,
select:focus {
    border-color: #4CAF50;
    outline: none;
}


canvas {
    background-color: white;
    border: 1px solid black;
/*    width: 600px;   canvas wypełnia kontener 
    height: auto;         pozwala przeglądarce dostosować wysokość 
    aspect-ratio: 1 / 1;  stosunek szerokości do wysokości (1:1 = kwadrat) */
    touch-action: none;
}

/* Styl tabel */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
    table-layout: fixed
    display: block;
}

th, td {
    text-align 20px;
    font-size: 19px;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e1f5e4;
}





/* Responsywność dla telefonów */
@media (max-width: 800px) {
    body {
    background-color: #04f7fa;
		max-width: 600px;
        padding: 5px;
    }

table {
    width: 100%;
}

    th, td {
        padding: 8px;
        font-size: 16px;
    }

    li {
        font-size: 26px;
    }
}

