body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Pure white as in the Finnish flag */
}

.container {
    padding: 16px;
    color: #002f6c; /* Dark blue similar to the Finnish flag */
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px;
    font-weight: bold;
    border-bottom: 3px solid #002f6c; /* Add a blue line */
}

.left-part, .right-part {
    display: flex;
    align-items: center;
    gap: 10px;
}

#search-bar {
    margin-left: 20px;
}

.menu {
    display: flex;
    justify-content: space-between;
    background-color: #002f6c;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* White text on blue background */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    background-color: #ffffff;
    color: #002f6c; /* Dark blue on white background */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    z-index: 1;
}

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

.dropdown-content a {
    color: #002f6c; /* Dark blue text */
    padding: 8px 12px; /* Adjust the padding as desired */
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #cce4f7; /* Lighter shade of Finnish blue for hover effect */
}

.card {
    font-family: 'Roboto Slab', serif;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 90%;
    margin: 10px auto;
    background-color: #ffffff;
    color: #002f6c;
    padding: 2px;
    text-align: center;
    max-width: 22vw; /* Decreased max-width */
}


.card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.banner {
    width: calc(100% - 40px);
    background-color: #002f6c; /* Dark blue similar to the Finnish flag */
    padding: 10px;
    margin-left: 10px;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    color: #ffffff; /* White text on blue background */
    max-width: 22vw; /* Decreased max-width */
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust the minimum size to match card size */
    justify-items: center;
    align-items: start; /* Align items to the start */
    gap: 5px; /* Decreased gap */

    @media (max-width: 767px) {
        gap: 5px;
    }

    @media (min-width: 1024px) {
        gap: 10px;
    }

    overflow: hidden;

    @media (min-width: 1024px) {
        justify-content: center;
    }
}


.card-content {
    font-size: 0.8em;

    @media (max-width: 767px) {
        font-size: 0.7em;
    }
}

.card-image {
    width: 100%; /* Make sure images resize properly */
    height: auto;
}


.sentenceContainer {
    display: grid; /* Use CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Automatically fit columns with minimum width of 300px */
    justify-items: center; /* Center the cards horizontally */
    align-items: center; /* Center the cards vertically */

    /* Add media queries to adjust the gap based on the screen size */
    gap: 20px; /* Default gap between cards */

    @media (max-width: 767px) {
        gap: 5px; /* Reduce the gap for small screens */
    }

    @media (min-width: 1024px) {
        gap: 20px; /* Increase the gap for larger screens */
    }

    /* Handle overflow and alignment */
    overflow: hidden; /* Hide any overflow */

    @media (min-width: 1024px) {
        justify-content: center; /* Center the cards horizontally when there is extra space */
    }
}

#title {
    font-size: 24px;
    font-family: 'Georgia', serif;
    text-align: center;
    color: white; /* Dark blue similar to the Finnish flag */
    margin-top: 10px;
}

#subtitle {
    font-size: 24px;
    font-family: 'Georgia', serif;
    text-align: center;
    color: #4b6e90; /* Slightly lighter shade of blue */
    margin-top: 10px;
}

#home-button {
    padding: 5px;
    font-size: 16px;
    background-color: #002f6c; /* Dark blue similar to the Finnish flag */
    color: white;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

#home-button:hover {
    background-color: #4b6e90; /* Lighter shade of blue for hover */
}

/* The popup (background) */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: none;
    justify-content: center;
    align-items: center;
}

/* The popup content */
.popup-content {
    margin: 1% auto;
    background-color: #fefefe;
    padding: 0; /* remove padding */
    border: 1px solid #888;
    width: 98%; /* Could be more or less, depending on screen size */
    height: 98%;
    box-sizing: border-box;
    position: relative; /* make it a position reference for absolute positioning of iframe */
    display: flex;
    flex-direction: column;
}

/* The close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px;
    background-color: #fefefe;
    z-index: 2; /* make it on top of the iframe */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* The popup iframe */
#popup-iframe {
    width: 100%;
    height: calc(100% - 40px); /* adjust height according to the close button height */
    border: none; /* remove default border */
    /* Other styles */
    transform-origin: 0 0;
    overflow: hidden;
}



/* The close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* The return button */
.returnButton {
    color: #aaa;
    float: right;
    font-size: 14px;
    font-weight: bold;
}

.returnButton:hover,
.returnButton:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Rest of your style related to course work */
