@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #d3d3d3, #ffffff 20%);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 100vh;
}

header {
  #  background-color: #333;
    color: #003563;
    padding: 20px;
    width: 100%;
    text-align: center;
    position: relative;
}

.logo {
    width: 150px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
}

.language-selector button {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px;
    margin: 0 5px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.language-selector button:hover {
    background-color: #777;
}

main {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
    flex-grow: 1;
    box-sizing: border-box;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}


.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: calc(50% - 40px); /* Adjusted width for margin */
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    margin: 10px; /* Added margin for better spacing */
    box-sizing: border-box;
	
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card .text {
    padding: 20px;
    text-align: center;
	color: #003563;
}

.texth2 {
	display: block;
    font-size: 1.5em;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
	text-decoration: none;
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .card {
        width: calc(100% - 40px); /* Adjusted width for margin */
    }
}

@media (orientation: portrait) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: calc(100% - 40px); /* Adjusted width for margin */
    }
}
