
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond');

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/cormorantgaramond/v21/co3umX5slCNuHLi8bLeY9MK7whWMhyjypVO7abI26QOD_v86KnrOiss4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/cormorantgaramond/v21/co3umX5slCNuHLi8bLeY9MK7whWMhyjypVO7abI26QOD_v86KnTOig.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
}

h1{
    font-size: 30px;
}
/* Main content container */
main {
  padding: 40px 15px;      /* slightly less padding on smaller devices */
  max-width: 1000px;       /* allow wider on large screens */
  width: 90%;              /* fluid width with some margin */
  margin: 0 auto;          /* center horizontally */
  box-sizing: border-box;  /* include padding in width calculations */
}
p{
   font-family: 'Cormorant Garamond';
   font-size: large;
}
.centered-logo {
    display: block; /* Makes the image a block element */
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 70%; /* Allows the image to scale down to fit the container */
    height: auto; /* Maintains aspect ratio */
}


.video-wrapper {
  max-width: 400px;          /* Adjust if you want it bigger on desktop */
  margin: 30px auto;         /* Center the video */
  border-radius: 12px;
  overflow: hidden;          /* Smooth rounded corners */
}

.video-wrapper video {
  width: 80%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 12 / 16;      /* Ideal for phone-style videos */
  border-radius: 12px;
}

header {
    background: linear-gradient(
      to bottom,
      rgba(51, 51, 51, 0.95) 0%,
      rgba(51, 51, 51, 0.8) 50%,
      rgba(51, 51, 51, 0.6) 100%
    );
    backdrop-filter: blur(5px);

    color: white;
    position: sticky; /* Makes the header stick to the top */
    top: 0; /* Position it at the top */
    z-index: 1000; /* Ensures it stays above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Adds a subtle shadow */
}
nav{
    padding:20px;
}
nav ul {
    display: flex;
    justify-content: space-evenly; /* Evenly distributes the nav items */
    align-items: center; /* Vertically center links if needed */
    padding: 0;
    margin: 0;
    
}

nav ul li {
    display: block; /* Use block to let flexbox handle the layout */
    margin: 0; /* Remove margin-right since spacing is handled */
}

nav ul li a {
    font-size: 30px; /* Bigger font size */
    padding: 10px 15px; /* Larger padding for easier clicking and bigger feel */
    text-shadow: 2px 2px 4px black;
}


nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px; /* Adds padding for better click area */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Adds a hover effect */
    border-radius: 5px; /* Rounds the corners of the hover effect */
}


/* Animated hamburger button */
.hamburger {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 5px;
    width: 120%;
    background-color: white;
    border-radius: 1px;
    transition: 0.3s ease;
}

.menu-label {
  color: gray;
    display: flex;
  font-size: 18px;
  margin-left: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 0.8s ease;
  transform: translateY(-9px);
}

/* Show label when hamburger is in 'open' state */
.hamburger.open + .menu-label {
  opacity: 1;
  visibility: visible;
    transition: opacity 2s ease, visibility 0.3s ease;
  
}


/* Hamburger open state (rotate to X) */
.hamburger.open span:nth-child(1) {
    transform: rotate(-90deg) translate(-5px, -15px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform:  translateY(8px);
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 24px; /* mindre rubrik på mobil */
    }

    p {
        font-size: 1rem; /* normalstorlek för text */
    }

    main {
        padding: 20px 10px; /* mindre padding på små enheter */
        width: 95%;         /* nästan fullbredd */
    }
}

@media only screen and (max-width: 768px) {
    
    nav {
        padding:20px; /* Adds padding around the nav */
        padding-bottom: 0px;
    }

    nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0; /* Removes default margin */
    }

    nav ul li {
        display: inline;
        margin-right: 20px;
    }
    .hamburger {
        display: flex;
    }

    nav ul {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease, padding 0.7s ease;
        flex-direction: column;

        
        padding: 0; /* Start collapsed */
    }

    nav ul.show {
        max-height: 500px; /* Adjust based on your content */
        padding: 10px 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        padding: 10px 20px;
        display: block;
    }
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    color: #888;
    font-size: 14px;
    margin-top: 60px;
}
.carousel {
    position: relative;
    width: 270px;
    height: 160px;
    overflow: hidden;
    background-color: #cdcdcd;
}

.carousel-item .slide-image {
    width: 270px;
    height: 160px;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 270px;
    border: none;
    top: 0;
    left: 100%;
}

.carousel-item.active {
    left: 0;
    transition: all 0.3s ease-out;
}

.carousel-item div {
    height: 100%;
}

.red {
    background-color: red;
}

.green {
    background-color: green;
}

.yellow {
    background-color: yellow;
}

.violet {
    background-color: violet;
}

