@media screen and (max-width: 1000px) {

body {
	/*background-color: #F5DEB3;*/
	background-color: #8B4513;
	font-size: 12pt;
}


div#margin {
	/*margin-top: 20px;
	margin-bottom: 20px;
	margin-left: 40px;
	margin-right: 40px;*/
	width: auto;
	height: 200%;
	/*background-color: #DEB887;*/
	background-image: url("wooden.jpg");
    background-repeat: no-repeat;
    background-position: center;
	background-size: 100% 100%;	
	border: 3pt solid #8B4513;
	float: center;
}

div#cim {
	font-size: 24pt;
	color: #683B07;
	padding-top: 20px;
	padding-bottom: 20px;
	text-align: center;
	
}

div#sz1-cim {
	font-size: 24pt;
	color: #683B07;
	font-family: 'Brush Script MT', cursive;
	border-bottom: 1pt solid #8B4513;
}

div#sz2-cim {
	font-size: 24pt;
	color: #683B07;
	font-family: 'Brush Script MT', cursive;
	border-bottom: 1pt solid #8B4513;
}

div#tartalom {
	color: #683B07;
	font-size: 24pt;
	height: auto;
	margin-left: 20px;
	margin-right: 20px;
	

}

div#szoveg1 {
	background-color: #FFDAB9;
	opacity: 0.6;
	color: black;
	
	margin-bottom: 40px;
	
	margin-left: 10%;
	margin-right: 10%;
	
	text-align: justify;
	padding-right: 10px;
	padding-left: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
    width: 75%;
	float: left;
}

div#szoveg2 {
	background-color: #FFDAB9;
	opacity: 0.6;
	color: black;
	
	margin-bottom: 40px;
	
	margin-left: 10%;
	margin-right: 10%;
	
	text-align: justify;
	padding-right: 10px;
	padding-left: 10px;
	padding-bottom: 10px;
    width: 75%;
	float: left;
}


/* NAV BAR */

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: 	#CD853F;
  border-top:3pt solid 	#8B4513;
  border-bottom:3pt solid 	#8B4513;
}

li {
  float: left;
}

li a, .dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: 	#8B4513;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #CD853F;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
  display: block;
}



.container {
  position: relative;
  font-family: Arial;  
  width: 100%;
  height: auto;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0px;
  padding-bottom: 0px;
}

img {
  	/*border: 3pt solid #8B4513;*/
}

.text-block {
  position: absolute;
  bottom: 30%;
  margin: auto;
  width: 30%;
  opacity:0.9;
  background-color: gray;
  transform: translate(125%, -20%); 
  text-align: center;
  font-size: 24pt;
  font-family: 'Kalam', cursive;

}

/* IMAGE GALERY */
div.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  float: left;
  width: 500px;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
  font-size: 12pt;
  background-color: white;
}

/* GALERY 2 */

* {
  box-sizing: border-box;
}

.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 25%;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

img {
  margin-bottom: -4px;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}



/* CARD */

.card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 75%;
  height: auto;
    margin-left: 12.5%;
  margin-right: 12.5%;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card_container {
  padding: 2px 16px;
  background-color: white;
}

p#card1 {
font-size: 30pt;

}
p#card2 {
font-size: 20pt;

}
p#card_nev {
font-size: 42pt;

}

}