@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*{
	font-family: "Tinos", sans-serif;
}


html, body{
	height: 100%;
	margin: 0;
	padding: 0;


}

body {
	display: flex;
	flex-direction: column;
	
}

main{
	flex: 1;
  	height: 100%;
	

}

header{
	height: 60px;
	width: 100%;
	position: fixed;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 42px 0 0px;
	background-color: #746858;
font-size: 18px;
	z-index: 1000;
}

section{

	background-color:#4C6152;
	padding-top: 60px;
	display: flex;
	justify-content: center;  
	align-items: center; 

}

#mainbox{
	background-color: #5A7065;
	border: 1px solid black;
	
	justify-content: flex-start;
	height: 90%;
	width: 90%;
	border-radius: 1%;
	margin: 50px;
	min-width: 650px; 
  	min-height: 400px;

	
}

#mainbox img{
	margin: 50px 50px 10px 50px;
  float: left;
}

#maintext{

	font-size: 24px;
	margin: 50px;
	
	padding: 10px;



}


nav{
	flex: 2;
}

ul{
	display: flex;
	justify-content: center;
	gap: 16px;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

li {
  position: relative;
}


li > a{
	
	border-radius: 0px;
	display: block;
  padding: 12px 30px;
  width: fit-content;

}

li a:hover, #button:hover{
	background-color: #91826E;
}

li a, #button{
	display: block;
	text-decoration: none;
	color: black;
	font-weight: 600;
}

.submenu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; /* Exakt under knappen */
  left: 0;
  padding: 0;
 	width: 100%;

  z-index: 1000;
  background-color: transparent;
}

.submenu a {
  width: 100%;
  padding: 20px 10px;
  background-color: #746858;
  padding-left: 18%;
  box-sizing: border-box;
  margin: 0;
}

li:focus-within > .submenu{
	display: block;
}

#close {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 10px;
  background-color: #746858;
  cursor: pointer;
}




.icon{
	width: 20px;
}


.offer_link{
	display: block;
	background-color: #fafafa;
	padding: 10px 20px 20px 20px;
	color: black;
	text-decoration: none;
	
}

.offer_link:hover{
	transition: 0.2s;
	background-color: #564D41;
}

.offer_link p{
	font-weight: 200;
	margin-top: 0;
}

.offer_heading{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.offer_heading h2{
	font-size: 1.2em;
}

footer{
	background-color: #746858; 
	text-align: center;
	z-index: 2;
	padding: 20px 0;
	font-size: 24px;
}

.footer_section{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 60%;
	margin: 10px auto 10px auto;
}

#Hugolocation_link{
	color: black;
	font-size: 1em;
	font-weight: bold;
}

#social_media{
	gap: 40px;
	margin-top: 30px;
	margin-bottom: 40px;
}

.social_link{
	display: block;
	width: 20px;
	height: 20px;
	padding: 10px;
	border-radius: 50%;
}

.social_link:hover{
	background-color: #564D41;
}

.footer_link{
	font-size: 0.8em;
	color: #000000;
	text-decoration: none;
}

.footer_link:hover{
	text-decoration: underline;

}


.footer_linkC{
	font-size: 0.8em;
	color: darkred;
	text-decoration: none;
}

.footer_linkC:hover{
	text-decoration: underline;

}

#copyright{
	font-size: 0.8em;
	
}




	

@media (max-width: 1024px) {
  #mainbox {
    min-width: auto;
    flex-direction: column; /* stapla vertikalt */
    min-height: auto;
  }

  #mainbox img {
    width: 100%; /* anpassa bildbredd efter förälderns bredd */
    height: auto;
    margin: 0 0 20px 0; /* anpassa marginaler */
  }

  #maintext {
    margin: 0 20px;
     font-size: 72px;
  }



  nav {
  
    padding: 20px, 0, 20px;
    height: 60px;
  }

  header{
  	height: 120px;
  }
  

  nav ul {
    gap: 24px; /* Ge lite mer luft mellan länkarna när de blir större */
  }

  nav ul li a {
    font-size: 42px; /* Säkerställer att länkarna också är större */
    padding: 12px 16px,; /* Lite större klickyta */

  	padding-bottom: 10px;
  }
    footer {
    padding: 60px 0;  /* mer utrymme upp och ner */
    font-size: 42px; /* större text */
  }
}


.hero{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	background: linear-gradient(45deg, #746858, #4C6152);
	color: #ffffff;
	position: relative;
}

.container{
	width: 800px;
	height: 180px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

}
.clock{
	width: 100%;
	height: 100%;
	background: #5A7065;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;

}



.clock span{
	font-size: 80px;
	width: 110px;
	display: inline-block;
	text-align: center;
	position: relative;
}
.clock span::after{
	content: '';
	font-size: 16px;
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
}

@media (max-width: 768px) {
  .container {
    width: 90%;
    height: auto;
  }

  .clock {
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    padding: 20px;
  }

  .clock span {
    font-size: 48px;
    width: 60px;
  }
}