@import url('https://fonts.googleapis.com/css2?family=Frutiger+Aero&display=swap');

body {
    font-family: 'Frutiger Aero', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #62cff4, #2c67f2); /* Vibrant gradient background */
    color: #333;
}



main {
    display: flex;
    flex-wrap: wrap; /* Allow sections to wrap to the next row */
    gap: 20px; /* Space between sections */
    margin: 20px;
    justify-content: center; /* Center the sections */
    padding-bottom: 60px; /* Add space to prevent overlap with the footer */
}

h2 {
    color: #0a9396; /* Vibrant teal */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Shiny text effect */
    text-align: center;
    margin-bottom: 15px; /* Added margin for spacing */
}

/* Footer styles removed - moved to nav.css */

.card {
    perspective: 1200px;
    width: 300px;
    height: 420px;
    margin: 10px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
}

.card:hover .card-inner,
.card:focus-within .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff, #e0f7fa);
    padding: 20px; /* Slightly increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box; /* Include padding in width/height calculation */
}

.card-front p, .card-back p {
    margin-bottom: 10px; /* Consistent spacing below paragraphs */
    font-size: 0.95em; /* Slightly adjust font size for consistency */
    line-height: 1.5; /* Adjust line height for readability */
}

.card-front p:last-child, .card-back p:last-child {
    margin-bottom: 0; /* Remove margin from the last paragraph */
}

.card-front p strong, .card-back p strong {
    color: #0077b6; /* Consistent color for emphasis */
    font-weight: 600; /* Slightly bolder */
}

.card-back {
    background: linear-gradient(135deg, #e0f7fa, #b2f7ef);
    transform: rotateY(180deg);
    /* Removed justify-content as it's inherited or set above */
}