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

/* Navbar styles */
.navbar {
    display: flex;
    align-items: center;
    background-color: #0010a2;
    padding: 0 32px;
    height: 100px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
}

.nav-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: auto;
    gap: 28px;
}

.nav-social-links {
    list-style: none;
    display: flex;
    margin-left: auto;
    gap: 16px;
}

.nav-social-links img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links li,
.nav-social-links li {
    display: inline;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #fcd206;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0010a2;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #0010a2;}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Frontpage content */
/* Default: show background image, hide phone image */
.frontpage-content {
    position: relative;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../imgs/lancaster-frontpage.png');
    display: flex;
    justify-content: right;
    align-items: right;
    text-align: center;
    min-height: 900px;
}

.frontpage-text {
    color: #0010a2;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 100px;
}

.frontpage-image-phone {
    display: none;
}

/* Style for frontpage form inputs and button */
.frontpage-form {
    margin-top: 20px;
}

.frontpage-form input[type="text"],
.frontpage-form input[type="email"] {
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1rem;
    outline: none;
}

.frontpage-form button[type="submit"] {
    border-radius: 20px;
    border: none;
    background: #0010a2;
    color: #fff;
    font-size: 1rem;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.frontpage-form button[type="submit"]:hover {
    background: #fcd206;
    color: #0010a2;
}

footer {
    background-color: #0010a2;
    text-align: center;
    padding: 1rem 1rem;
    height: 100px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: white;
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive nav */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100px;
        right: 0;
        background: #0010a2;
        flex-direction: column;
        width: 220px;
        display: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        display: block;
        margin: 0;
        padding: 12px 24px;
    }

    .navbar {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .frontpage-content {
        background-image: none;
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        padding: 0;
        margin:0;
    }

    .frontpage-image-phone {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .frontpage-image-phone img {
        width: 100%;
        height: auto;
        display: block;
    }

    .frontpage-text {
        background: #f9f9f9;
        color: #0010a2;
        text-shadow: none;
        padding: 20px 10px;
        position: static;
        font-size: 1.1rem;
        font-weight: normal;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
        width: 100%;
        max-width: 100%;
    }
    
    .frontpage-form > div {
        flex-direction: column !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .frontpage-form input,
    .frontpage-form button {
        font-size: 1rem !important;
    }

    .frontpage-text h1,
    .frontpage-text h2,
    .frontpage-text h3 {
        text-align: center;
    }

    .frontpage-form {
        margin-top: 10px;
        width: 100%;
        max-width: 100%;
    }
}
