body {
	font-family: Arial, sans-serif;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 100px;
	background-color: #f0f0f0;
	background-image: url("Bilder/Berg.jpeg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
    background-attachment: fixed;
	
}
h1 {
	font-size: 2.5rem;
	margin-bottom: 20px;
	/* text-align: center; */
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
input[type="password"] {
	padding: 10px;
	font-size: 1rem;
	margin-bottom: 10px;
	border-radius: 5px;
	border: 1px solid #ccc;
}
input[type="submit"] {
	padding: 10px 20px;
	font-size: 1rem;
	border-radius: 5px;
	border: none;
	background-color: #444444;
	color: white;
	cursor: pointer;
}
input[type="submit"]:hover {
	background-color: #555555;
}
button {
	display: flex;
    flex-direction: column;
    align-items: center;
	padding: 10px 20px;
	font-size: 1rem;
	border-radius: 5px;
	border: none;
	background-color: #444444;
	color: white;
	cursor: pointer;
	width: 3cm;
	margin-left: 10%;
}
button:hover {
	background-color: #555555;
}
.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60000, 0 0 40px #e60000, 0 0 50px #e60000, 0 0 60px #e60000, 0 0 70px #e60000;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff4d4d, 0 0 40px #ff4d4d, 0 0 50px #ff4d4d, 0 0 60px #ff4d4d, 0 0 70px #ff4d4d, 0 0 80px #ff4d4d;
  }
}

* {
    box-sizing: border-box;
}
.forgot{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 0.4cm;
}
.row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 20px;
}
.image-container {
	position: relative;
	margin: 10px;
	overflow: hidden;
	border-radius: 10px;
}
.image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s ease;
}
.image-container:hover img {
	transform: scale(1.05);
}
.image-container .hover-text {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 50px;
	color: white;
	background-color: rgba(0, 0, 0, 0.7);
	text-align: center;
	font-size: 2rem;
	opacity: 0;
	border-radius: 0 0 10px 10px;
	transition: opacity 0.3s ease;
}
.image-container:hover .hover-text {
	opacity: 1;
}

/* För stora skärmar (exempelvis datorer) */
@media (min-width: 600px) {
    .image-container {
        width: 35%; /* Två bilder på rad */
    }
	button{
		margin-left: 15%;
		margin-bottom: 20px;
	}
}

/* För mycket små skärmar (t.ex. telefoner) */
@media (max-width: 600px) {
    .image-container {
        width: 80%; /* En bild per rad på mobilen */
    }
	.gallery-item {
		flex: 1 1 100%;  /* en bild per rad på mobil */
		height: 200px;
	}
}

/* Responsiv YouTube-container */
.video-container {
	position: relative;
	width: 100%;
	max-width: 800px;   /* maxbredd på desktop */
	margin: 0 auto 20px auto;
	aspect-ratio: 16 / 9; /* gör videon responsiv */
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 10px;
}

.audio-player {
	margin: 20px 0;
}

audio {
	width: 80%;
	max-width: 400px;
	margin: 10px;
}

/* Galleriet */
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin-bottom: 50px;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.gallery img:hover {
	transform: scale(1.05);
}

/* Bildcontainrar som anpassar sig responsivt */
.gallery-item {
	flex: 1 1 300px;   /* minsta bredd ~300px */
	max-width: 400px;  /* för att inte bli för stora på stora skärmar */
	height: 400px;
}

.gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Modal (förstorad bild) */
.modal {
	display: none; 
	position: fixed; 
	z-index: 1000; 
	padding-top: 60px; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	background-color: rgba(0,0,0,0.9);
}

.modal img {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 80%;
	border-radius: 10px;
}

.close {
	position: absolute;
	top: 20px;
	right: 40px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
}