/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Titillium Web", sans-serif;
}

.popup {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
}

/* Image + Title Container */
.image-container {
    position: relative;
    height: 50vh; /* Increased height for larger screens */
    width: 100%;
    overflow: hidden;
    background-size: cover; /* Cover the entire container */
    background-position: center 15%; /* Center the image */
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

/* Specific background images */
.image-container.til_elever {
    background-image: url("../images/TilElever.jpg");
}

.image-container.til_arbejdsgivere {
    background-image: url("../images/TilArbejdsgivere.jpg");
}

/* Title Overlay */
.title-overlay {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0;
    border-radius: 75px 75px 0 0;
    width: calc(100% - 170px);
    height: 70px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.title-overlay h1 {
    color: #464646;
    font-size: 3em;
    margin: 0;
    padding-left: 40px;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.left-space {
    width: 15%; /* Empty space on the left side */
}

.content {
    width: 50%;
    padding: 20px;
    background-color: #fff;
    color: #464646;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 45px);
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url("../images/ForsideOgLogin.jpg"); /* Add the background image */
    background-size: cover; /* Ensure the image covers the entire container */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    z-index: 4; /* Ensure it is behind the content */
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 6;
}

.hero .readmore-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: white;
    color: #464646;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-align: center;
    width: 80%;
    max-width: 400px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 6;
}

.hero .readmore-button:hover {
    color: #464646;
    text-decoration: none;
}

.hero .readmore-button a {
    text-decoration: none;
}

/* Centering the login box */
.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    width: 300px;
    text-align: center;
    z-index: 6;
}

/* Login title styling */
.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

/* Input boxes */
.input-box {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1rem;
}

/* Login button */
.login-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-top: 15px;
    background-color: #439aa7;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #367e88;
}

.error-message {
    color: #d9534f; /* Bootstrap danger color */
    background-color: #f2dede; /* Light red background */
    border: 1px solid #ebccd1; /* Border color */
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold; /* Make the text bold */
}

/* Responsive Design */

/* For tablets and smaller devices */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 0;
    }

    .left-space {
        display: none; /* Hide the left space */
    }

    .content {
        width: 100%; /* Make content take full width */
    }

    .image-container {
        height: 20vh; /* Adjust height for tablets */
    }

    .title-overlay {
        width: calc(100% - 50px);
        height: 50px;
    }

    .title-overlay h1 {
        font-size: 1.5em;
        padding-left: 20px;
    }
}

/* For phones and smaller devices */
@media (max-width: 480px) {
    .image-container {
        height: 15vh; /* Adjust height for phones */
    }

    .title-overlay {
        width: calc(100% - 30px);
        height: 40px;
    }

    .title-overlay h1 {
        font-size: 1.2em;
        padding-left: 15px;
    }

    .content {
        font-size: 14px;
    }
}