
body.main {margin-top: 0px; margin-left: 0px;}

span.definice {display: inline; color: #E58200}
span.note {text-align: left; font: 13px Arial}
span.header_1 {margin-left: 0px; text-align: left; font: bold 15px Verdana; color: #A6171D}
span.header_2 {margin-left: 10px; text-align: left; font: bold 15px Verdana}
span.header_3 {margin-left: 10px; text-align: left; font: bold 13px Verdana; color: #BE1800}
span.header_4 {margin-left: 10px; text-align: center; font: bold 15px Verdana; color: #A6171D}
span.header_5 {margin-left: 10px; text-align: left; font: bold 15px Verdana; color: #A6171D}
span.header_article {margin-left: 10px; text-align: center; font: bold 15px Verdana}

span.display_answer {cursor: pointer; color: blue; text-decoration: underline; font-style: italic}
span.display_answer:hover {color: #CC6600}
span.formulae_result {font: bold 15px Verdana; color: #F01000}

p.justify {margin-left: 10px; margin-right: 10px; text-align: justify}
p.center {text-align: center}
p.left {margin-left: 10px; text-align: left}
p.left_test {margin-left: 10px; text-align: left; padding: 5px;}

input {margin: 5px;}	/* Used in gap-filling tests.*/

ul {text-align: justify; font: 13px Verdana;}

a.text {color: #090894} 
a.text:hover {color: #CC6600}

img.top {width: 1200px; height: 175px}
img.jana {padding-right: 10px; position: relative; bottom: -5px}
img.other_left {padding-right: 10px; position: relative; bottom: -5px}
img.other_right {padding-left: 10px; position: relative; bottom: -5px}
img.bullet {vertical-align: middle}

td.menu {width: 250px; height: 225px; background-color: #71190B}
td.loaded {height: 18px; background-color: #05603C; text-align: left; font: bold 15px Verdana; color: #FFEB56}
td.filler_cell {height: auto; min-height: 100vh; background-image: linear-gradient(to bottom, #71190B, white)}
td.rest {height: auto; background-color: #71190B}
td.text {width: 720px; background-color: #FFFFFF; text-align: left; font: 13px Verdana}
td.left {text-align: left}
td.right {text-align: right}
td.center {text-align: center}


li.courses {padding-top: 10px; text-align: justify; margin-bottom: 1em;} /*this increases spacing (1 lines) between the list items - used in courses.html*/
li.indented {padding-top: 10px; text-align: justify; margin-right: 10px;}

table.gap_filling {margin-left: 10px}
table.login_table {margin: auto}
table.image_caption {margin: auto}

textarea.form {margin-left: 10px}
textarea.field {height: 16px}

hr.regular {border-top: 3px solid #000000; border-radius: 5px; box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.5); margin-left: 10px; margin-right: 10px;}

/* Here comes the additional stiles for the mobile-freindly version. */

/* This hides the text and sets initial values for the animation controlled by JavaScript */
div.answers {height: 0; overflow: hidden; opacity: 0}


        /* Global Reset */
        body { margin: 0; padding: 0; }

        /* The Banner */
        .header-banner img {
            width: 1200px;
            height: auto;
            display: block;
        }

        /* The Layout Container */
        .main-container {
            display: flex;
            flex-direction: row; /* Desktop: side-by-side */
			min-height: 100vh;
        }

        /* The Sidebar Menu */
        .menu-side {
            flex: 0 0 250px; /* Fixed width for your images */
            display: flex;
            flex-direction: column;
            line-height: 0; /* Prevents gaps */
        }

        .menu_item {
            display: block;
            width: 250px;
            height: auto;
            border: 0;
        }

        /* The Content Area */
        .text-side {
            flex: 1;
			margin-left: 10px;
			margin-right: 10px;
			max-width: 800px;
			font: 13px Verdana;
        }


	/* --- Properties of the filler cell at the bottom of the menu. --- */
	div.filler_cell {flex-grow: 1; height: 100vh; background-image: linear-gradient(to bottom, #71190B, white);}



        /* --- Mobile Fixes --- */
        @media screen and (max-width: 768px) {

		/* The Banner */
        .header-banner img {
            width: 100%;
            height: auto;
            display: block;
        }

            .main-container {
                flex-direction: column; /* Stacks vertically */
            }

            .text-side {
                order: 1; /* Text on top */
            }

			.menu-side {
                order: 2; /* Menu moves to bottom */
                width: 100%;
				padding-top: 30px;
				padding-bottom: 30px;
				flex: none;
				background-color: #71190B;
				
			background: linear-gradient(to bottom, 
			white 0%, 
			#71190B 10%, 
			#71190B 90%, 
			white 100%);
                
			display: flex;
            flex-direction: column; /* Keeps images stacked vertically */
            align-items: center;    /* Centers images horizontally in the banner */
			margin: 0;
            }
			

	/* --- Hides the menu divider in the mobile view. ---*/
	img.menu_item_divider {display: none;}

	
	/* --- Properties of the filler cell at the bottom of the menu. --- */
	div.filler_cell {
        /* Resets the height to fit the content naturally */
		height: auto; 
        
        /* Removes the gradient background */
        background-image: none; 
        
    }

        }