* {
    box-sizing: border-box;
    margin: 0;
}

/* BODY */
body {
    display: flex;
    flex-direction: column;
    background-color: rgb(11, 1, 9);
    background-image: url(Images/Background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}

/* HEADER */
header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: rgb(94, 113, 174);
    padding: 20px;
    gap: 15px;

    position: sticky;
    top: 0px;
    z-index: 10;
}

#logo{
    width: 60px;
    height: auto;
}

#header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* NAV */
nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

nav ul li a:hover {
    color: aliceblue;
}

/* MAIN */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SECTION */
section {
    text-align: center;
    width: 100%;
    margin: 20px 0;
}

/* INFO BOX */
.Info {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.Info div {
    width: 100%;
    padding: 20px;
    background-color: azure;
    border-radius: 15px;
    border: 2px solid lightskyblue;
    text-align: center;
}

/* GRID MED ALLA FILMIKONER */
#MovieContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* FILMIKON */
.movie {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
/* HÖJER FILMIKON NÄR MAN HOVERAR ÖVER DEN */
.movie:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(50, 50, 50, 0.3);
}

/* KNAPPAR */
button {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: rgb(50, 65, 115);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;

    width: 100%;
    max-width: 300px;
}

/* ÄNDRAR KNAPPEN NÄR MAN HOVERAR ÖVER DEN */   
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: lightskyblue;
}

button:active {
    transform: translateY(0);
}

/* FORM */
#Form {
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: azure;
    border-radius: 15px;
    border: 2px solid lightskyblue;
    margin: 0 auto;
}

#Form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#Form fieldset {
    display: flex;
    flex-direction: column;
    border: 2px solid lightskyblue;
    border-radius: 10px;
    padding: 15px;
}

#Form input,
#Form textarea,
#Form select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid lightgray;
}

#Form input[type="submit"] {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;

    color: white;
    background: rgb(25, 40, 90);

    border: none;
    border-radius: 30px;

    cursor: pointer;
    transition: all 0.3s ease;
}

/* ÄNDRAR KNAPPEN NÄR MAN HOVERAR ÖVER DEN */   
#Form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: lightskyblue;
}

#Form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(94, 113, 174);
    padding: 20px;
    gap: 10px;
}

footer img {
    height: 25px;
}

img {
    max-width: 100%;
    height: auto;
}

#about {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#about section {
    flex: 1;
    min-width: 0;
}

.EmployeeCard {
    margin-top: 15px;
    width: 90%;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 2fr;
    grid-auto-rows: auto;

}

.faq {
    margin-top: 15px;
}

#dropdown {
    display: none;
    width: 30px;
    height: auto;
}

/*SURFPLATTA */
@media (max-width: 768px) {

    nav ul {
        display: none;
    }

    nav {
        border: none;
    }

    #dropdown {
        display: block;
        margin-left: auto;
    }

    #MovieContainer {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    #about {
        flex-direction: column;
    }

    footer img {
        height: 15px;
    }
}


/*MOBIL */
@media (max-width: 480px) {

    .Info {
        width: 95%;
    }

    #MovieContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    button {
        font-size: 14px;
        padding: 10px;
    }

    footer img {
        height: 10px;
    }
}


/*INFORUTA OM FILM*/
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    inset: 0;
    background: rgba(11, 1, 9, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: rgb(94, 113, 174);
    color: rgb(0, 0, 0);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    border-radius: 15px;
    border: 2px solid lightskyblue;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

    animation: fadeIn 0.3s ease;
}

#modalImage {
    width: 200px;
    border-radius: 10px;
    margin: 10px auto;
    display: block;
}
#trailerFrame{
  width: 100%;
  aspect-ratio: 16/9;
}

#closeModal {
    float: right;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

#closeModal:hover {
    color: lightskyblue;
}

.modal-info {
    margin-top: 10px;
    text-align: left;
}

.modal-info p {
    margin: 5px 0;
}