@media (max-width: 600px) {
    html, body {
        font-size: 0.3em;
		/*margin:auto;*/
    }

    .container {
        width: 100%;
        padding: 10px;
    }

    img {
        width: 100%;
        height: auto;
    }
	
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

header {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;   /* centrerar logotypen */
    position: relative;
    z-index: 10;
}
.menu-btn {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    left: 20px; /* placerar den till vänster */
}
.menu-btn div {
    height: 4px;
    background-color: white;
    border-radius: 2px;
}
.side-menu {
    position: fixed;
    top: 60px;
    left: 5%;
    width: 250px;
    height: 50%;
    background-color: white;
    color: black;
    padding-top: 20px;
    transition: transform 0.3s ease;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    z-index: 20;

    /* helt gömd från start */
    transform: translateX(calc(-100% - 5vw));

}
.side-menu.open {
    transform: translateX(0);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: black;     /* <-- ändrat från vitt */
}
.side-menu a {
    display: block;
    padding: 15px 20px;
    color: black;                 /* svart text */
    background-color: white;      /* vit bakgrund */
    text-decoration: none;
    /*border-bottom: 1px solid #ddd;*/
}
.side-menu a:hover {
    background-color: #f0f0f0;    /* ljusgrå hover */
}

.menu-title {
    margin: 0 0 15px 0;
    padding: 0 20px 10px 20px;   /* samma indrag som menyalternativen */
    font-size: 1rem;
    font-weight: bold;
    color: black;
    /*border-bottom: 1px solid #ddd;*/
}


.menu-image-section {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.menu-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: white;
    /*border-bottom: 1px solid #ddd;*/
}

/* Overlay-text över bilden */
.menu-image-overlay {
    position: absolute;
    left: 20px;          /* samma indrag som menyalternativen */
    bottom: 20px;        /* liknande placering som på indexsidan */
    color: white;
    max-width: 70%;
    
}

.menu-image-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: bold;
}

.menu-image-overlay h4 {
    margin: 0 0 100px 0;
    font-size: 1rem;
    font-weight: bold;
}

.menu-image-overlay p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.menu-image-button {
    margin-top: 15px;
    padding: 8px 18px;
    font-size: 0.9rem;
    /*background-color: white;
    color: black;*/
    background-color: green;
    color: white;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
}

.menu-image-button:hover {
    background-color: #f0f0f0;
}

/* bildsektion */
.aspect-169 {
    position: relative;
    width: 100%;
    /*padding-top: 56.25%; /* 16:9 */
    /*background-image: url("bilder/medelpad.png");*/
    background-size: cover;
    background-position: center;
}

/* Videosektion */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.video-playpause-btn {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 20px; /* placerar den till höger */
    background-color: black;
    color:white;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid black;
}

/* Textoverlay – flyttad 20% från botten */
.overlay-text {
    position: absolute;
    left: 5%;
    bottom: 20%; /* <-- ändringen */
    color: white;
    max-width: 30%;
    z-index: 5;
}
.overlay-text h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    transform: translateY(-50%);
}
.overlay-text p {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    line-height: 1.4;
}
.overlay-text button {
    padding: 10px 20px;
    font-size: 1rem;
    /*background-color: white;
    color: black;*/
    background-color: green;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.overlay-text button:hover {
    background-color: #ddd;
}


footer {
    /*position: relative;*/
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.4rem;
    display:flex;
    position: relative;
    z-index: 10;
}
.information{
    font-size: 1rem;
    max-width: 350px; /*40%;*/
    padding: 15px 20px;
}
.information h1{
    font-size: 1rem;
}
.copyright{
    background-color: #000;
    color: #fff;
    font-size: 1rem;
    display: flex;
    padding: 5px 20px;
    /*justify-content: center;*/
}
a{
    color:white;
}

/*Poppup*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  /*background: white;*/
  background: gray;
  width: 400px;
  padding: 20px;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

input, textarea {
  width: 100%;
  margin-bottom: 10px;
}

.dark{
    color:black;
}

.klassuppsattning-btn {
  padding: 0.6rem 1.2rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

.klassuppsattning-btn:hover {
  background-color: #e4e4e4;
}

/* Mörk transparent bakgrund över sidan/videon */
.klassuppsattning-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;              /* visas via JS */
  align-items: center;
  justify-content: center;
  z-index: 25;
}

/* Själva rutan */
.klassuppsattning-modal {
  background: #f5f5f5;        /* ljusgrå bakgrund */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  font-size: 0.95rem;
}

.klassuppsattning-modal h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #555;
}

.klassuppsattning-modal p {
  margin: 0.2rem 0;
  color: #555;
}

.klassuppsattning-footnote {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #555;
}

/* Stängknapp uppe i hörnet */
.close-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
