:root {
	--header-height: 15vh;
    --footer-height: 5vh;
    --span-between-cards: 0.7vh;
    --background-color: #505e91;
    --line-border-color: #505e91;
    --row-height-portrait: 14vh;
		--row-height-portrait-s: 8vh;
    --row-height-landscape: 15vh;
    --item-width-portrait: 31vw;
    --item-width-landscape: 31vw;
}
* {
	box-sizing: border-box;
}
html, body {
	position: relative;
	height: 100%;
	width: 100%;
	overflow-x: hidden;
}
body {
	font-family: 'Raleway', sans-serif;
	margin: 0;
	padding: 0;
	font-size: 12px;
	overflow: hidden;
	color: #000000;
	background-color: #262626;
	background-image: url(images/slide2.html);
	background-repeat: no-repeat;
	/*background-size: cover;*/
	background-position: top;
}
.responsive {
	/*max-width: 100%;*/
	height: auto;
}
/* CONTAINER */
.container {
	position: relative;
	height: 100%;
	overflow: auto;
}
/* HEADER */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
}
header > .logo {
	margin-top: 10px;
}
.logo2 {
	margin: auto;
}
header > .logo > img {
	max-height: var(--header-height);
	display: block;
	max-width: 100%;
	margin: auto;
}
header > .social-networks {
	position: absolute;
	top: 0;
	left: 0;
	height: 40px;
	width: 50%;
	text-align: left;
	padding: 5px;
	opacity: 0.8;
}
header > .social-networks img {
	max-height: 100%;
}
header > .languages {
	position: absolute;
	top: 0;
	right: 0;
	height: 40px;
	width: 50%;
	text-align: right;
	padding: 5px;
	opacity: 0.8;/*border: 1px solid orange;*/
}
/* CONTENT */
section {
	position: absolute;
	top: var(--header-height);
	left: 0;
	right: 0;
	bottom: var(--footer-height);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: 1vh;
	padding-bottom: 1vh;
}
.menu-row {
	width: 100%;
	display: flex;
	/*justify-content: space-evenly;*/
	justify-content: center;
	/*visina reda ne smije biti veca od sirine kartice*/
	padding: var(--span-between-cards);/*padding: var(--span-between-cards);*/
}

.menu-row-s {
	width: 100%;
	display: flex;
	/*justify-content: space-evenly;*/
	justify-content: center;
	/*visina reda ne smije biti veca od sirine kartice*/
	padding: var(--span-between-cards);/*padding: var(--span-between-cards);*/
}

.menu-item {
	text-align: center;
	margin-left: var(--span-between-cards);
	margin-right: var(--span-between-cards);
}
.menu-item a {
	text-decoration: none;
	color: white;
}
.card {
	/*margin: 10px;*/
                /* Add shadows to create the "card" effect */
    box-shadow: 0.5px 1.5px #ffffff8c;
    transition: 0.3s;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: #ffffff94;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    background-color: #262626;
    width: 100%;
    height: 100%;
}
/* On mouse-over, add a deeper shadow */
            /*.card:hover {
                box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
            }*/

.card-image {
	flex: 1;
	padding: 15px 0 0 0;
	/*https://stackoverflow.com/questions/14142378/how-can-i-fill-a-div-with-an-image-while-keeping-it-proportional*/
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden
}
.card-image img {
    /*ovako, bas ovim redosljedom, odrzavamo proporciju slike i na iso uredjajima*/
    width: auto;
    max-width: 33%;
    height: 100%;
            }
/* Add some padding inside the card container */
.card-text {
	flex: 1;
	padding: 4px;
	font-size: 1.00em;
	font-weight: 500;
}
.card-text-s {
	flex: 1;
	padding: 20px 0px;
	font-size: 1.00em;
	font-weight: 500;
}
/* FOOTER */
footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--footer-height);
	text-align: center;/*border: 1px solid blue;*/
}

/* The orientation of the viewport (landscape or portrait mode) */
@media only screen and (orientation: landscape) {
#portrait {
	display: none;
}
body {
	background-size: 100%;
}
#landscape {
	display: block;
}
header {
	height: 40px;
}
header > .logo {
	display: none;
}
section {
	top: 40px;
}
.menu-row {
	max-height: var(--item-width-landscape);
	height: var(--row-height-landscape);
}
.menu-item {
	width: var(--item-width-landscape);
}
}

@media only screen and (orientation: portrait) {
#portrait {
	display: block;
}
body {
	background-size: auto 100%;
}
#landscape {
	display: none;
}
.menu-row {
	max-height: var(--item-width-portrait);
	height: var(--row-height-portrait);
}

.menu-row-s {
	max-height: var(--item-width-portrait);
	height: var(--row-height-portrait-s);
}

.menu-item {
	width: var(--item-width-portrait);
}

}
/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
	transition: transform 2s ease-out;
}
/* Modal Content/Box */
.modal-content {
	margin: 15% auto; /* 15% from the top and centered */
	width: 80%; /* Could be more or less, depending on screen size */
	position: relative;
}
/* The Close Button */
.modal-close {
	position: absolute;
	right: -10px;
	top: -20px;
	width: 40px;
	height: 40px;
	background-color: red;
	border: 1px solid white;
	border-radius: 20px;
	color: #fff;
	text-align: center;
	font-size: 28px;
}
.modal-close:hover, .modal-close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}
