/* Grid Layout for General Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto; /* Add this line */
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.grid-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #333;
    color: white;
    width: 300px; /* Enforcing a consistent width */
    height: 400px; /* Enforcing a consistent height */
}

.card {
    background-color: #222;
    border: 3px solid #00aced;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.card-content {
    padding: 10px;
}

.card button {
    background-color: #00aced;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.card button:hover {
    background-color: #007bb5;
}

/* Divisional Card Styles (specific to divisional pages) */
.grid-div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto; /* Add this line */
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

/* Divisional Card Styles (specific to divisional pages) */
.card-div {
    background-color: #0F0F0F; /* Updated card background color */
    border-radius: 10px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    width: 296px; /* Consistent width with project cards */
    height: 296px; /* Consistent height with project cards */
    padding: 20px;
    box-shadow: none; /* Removed shadow to avoid double card appearance */
    text-align: center;
    position: relative; /* Required for front/back flip positioning */
    perspective: 1000px; /* For 3D flip effect */
    z-index: 1; /* Ensure cards do not overlap each other visually */
}

/* Border Styles Based on Project Status for Divisional Cards */
.card-div.draft {
    border: 3px solid orange;
}

.card-div.scheduled {
    border: 3px solid red;
}

.card-div.paused {
    border: 3px solid purple;
}

.card-div.development {
    border: 3px solid yellow;
}

.card-div.testing {
    border: 3px solid #00aced;
}

.card-div.complete {
    border: 3px solid green;
}

/* Hover Effect for Divisional Cards - Zoom on hover */
.card-div:hover {
    transform: scale(1.05); /* Slight zoom */
    transition: transform 0.3s ease; /* Smooth zoom transition */
}

/* Card Flip Styles for Divisional Cards */
.card-div .flip-container {
    position: relative;
    width: 100%; /* Consistent width with project cards */
    height: 100%; /* Consistent height with project cards */
    transform-style: preserve-3d; /* Use preserve-3d for true 3D flip effect */
    transition: transform 0.6s;
    perspective: 1000px; /* Adds perspective to the flip effect */
}

/* Flip Effect on Click for Divisional Cards */
.card-div.is-flipped .flip-container {
    transform: rotateY(180deg);
}

/* Front and Back Faces of the Divisional Cards */
.card-div .card-front,
.card-div .card-back {
    position: absolute;
    width: 100%; /* Consistent width with project cards */
    height: 100%; /* Consistent height with project cards */
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 0px;
    box-shadow: none; /* Remove shadow completely to avoid double-card effect */
}

/* Back Face Rotation */
.card-div .card-back {
    transform: rotateY(180deg);
    background-color: #1a1a1a; /* Different shade for the back of divisional cards */
}

/* Ensuring Divisional Cards Keep Logo Size Consistent */
.card-div img {
    width: 80px;
    height: 80px;
    object-fit: cover; /* Prevent stretching */
    margin-bottom: 15px;
}
/* Fonts for the Back of the Divisonal Project .card-div.is-flipped */
.card-back {
    font-family: 'Roboto Mono', monospace /* Apply Roboto Mono only to the back of the card */
}

.card-div-details-text {
    font-size: 0.8rem; /* Change to a suitable size to make it smaller */
}     

/* General Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 70% 30%; /* Split into map (70%) and contact info (30%) */
    max-width: 1000px;
    margin: 40px auto; /* Centers the grid and adds top margin */
    gap: 20px;
}

/* Map Container */
.map-container {
    grid-column: 1; /* Defines the map to take up the first part */
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
    justify-content: center;
}

/* Contact Information Section */
.contact-info {
    grid-column: 2; /* Defines the contact info to be in the second column */
    padding: 20px;
    background-color: #1a1a1a;
    color: #f1f1f1;
    border-radius: 10px;

    /* Flexbox for alignment */
    display: flex;
    flex-direction: column; /* Makes sure elements stack vertically */
    align-items: center; /* Centers content horizontally */
    justify-content: flex-start; /* Aligns content at the top */
}

/* Add this to style links within .contact-info */
.contact-info a {
    color: #00aced; /* Define the color of the links */
    text-decoration: none; /* Removes underline */
}

.contact-info a:hover {
    color: #003166; /* Change color when hovered over */
    text-decoration: underline; /* Optional: Adds underline on hover */
}

/* Toggle Button for Divisional Contacts */
.toggle-button {
    background-color: #00aced;
    color: #ffffff;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
}

/* Divisional Contacts Section */
.divisional-contacts {
    margin-top: 20px;
}

.divisional-contacts.hidden {
    display: none;
}

.divisional-contacts p {
    margin: 5px 0;
}