/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

footer {
    background-color: #444;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
    bottom: 0;
}

/* Header Styles */
.header-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.headshot {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    border: 2px solid #ccc;
    border-radius: 5px; /* Changed to match the box aesthetic */
    transition: transform 0.2s;
}

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

.header-text {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

nav {
    margin-top: 1rem;
}

nav button {
    background-color: #777;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 1rem;
    border-radius: 5px;
}

nav button:hover {
    background-color: #0056b3;
}

/* Section Styles */
section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: left;
}

.projects-section .project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 1rem;
}

.project-card h3 a {
    color: #0056b3;
    text-decoration: none;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: -2rem;
}

.image-gallery .image-container {
    text-align: center;
}

.image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    border: 2px solid #ccc;
    border-radius: 5px; /* Box aesthetic */
    transition: transform 0.2s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.image-caption {
    font-size: 0.8em;
    color: #555;
}

/* Magic Web App */
.magic-app-header-box {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Base styles for the interactions section */
.interactions {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly; /* Ensures space is distributed evenly */
    gap: 20px; /* Adds space between the sections */
    padding: 20px; /* Adds some padding around the interactions */
}

/* Style for each section (random card and search) */
.random-card-section, .search-section {
    flex: 1; /* Allows sections to grow and take up available space */
    min-width: 300px; /* Sets a minimum width for the sections */
    background-color: #f9f9f9; /* Light background for contrast */
    border: 1px solid #ccc; /* Border for definition */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Inner padding for content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.2s; /* Smooth hover effect */
}

.random-card-section:hover, .search-section:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

/* Heading styles */
.random-card-section h2 {
    font-size: 24px;              /* Size for section titles */
    color: #333;                  /* Darker text color for readability */
    margin-bottom: 10px;          /* Space below headings */
}

/* Button styles */
.action-btn {
    background-color: #007bff;    /* Primary button color */
    color: #fff;                  /* White text for contrast */
    border: none;                 /* Remove default border */
    border-radius: 5px;          /* Rounded corners */
    padding: 10px 15px;          /* Padding for buttons */
    font-size: 16px;              /* Font size */
    cursor: pointer;              /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition */
}

/* Button hover effect */
.action-btn:hover {
    background-color: #0056b3;    /* Darker shade on hover */
}

/* Input field styles */
.text-input {
    width: 100%;                  /* Full width for input */
    padding: 10px;               /* Padding for input */
    margin-bottom: 10px;         /* Space below input */
    border: 1px solid #ccc;      /* Light border */
    border-radius: 5px;          /* Rounded corners */
    font-size: 16px;             /* Font size */
}

/* Result display area */



/* .interactions {
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex: 1 1 0px;
    width: 0;
} */

/* .random-card-section, .search-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
} */

/* #card-container {
    display: flex;
    align-items: flex-start;
    margin-top: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
} */

/* .card-result, .search-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
} */

/* .card-display {
    max-height: 10px;
} */

/* .card-result img, .search-result img { */
    /* max-width: 200px; Updated for smaller images */
    /* max-height: 10px; Updated for smaller images */
    /* height: auto; */
    /* border-radius: 10px; */
/* } */

/* .card-info { */
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 0.75rem; */
/* } */

/* .card-info h2 { */
    /* font-size: 1.5rem; */
    /* color: #0056b3; */
    /* margin-bottom: 0.5rem; */
/* } */

/* .card-info p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.5rem;
} */








/* Responsive */
@media (max-width: 600px) {
    .header-box {
        flex-direction: column;
        align-items: center;
    }
    
    .headshot {
        margin-bottom: 10px;
    }
}















.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mtg-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    background-color: #dadada;
    width: 100%;
}

.mtg-card-image {
    width: 200px; /* Adjust as needed */
    height: auto;
    border-radius: 4px;
    margin-right: 20px;
}

.mtg-card-details {
    flex: 1;
}

.mtg-card-name {
    font-size: 1.5em;
    margin: 0;
    color: #333;
}

.mtg-card-type,
.mtg-card-mana-cost,
.mtg-card-cmc,
.mtg-card-oracle-text,
.mtg-card-artist,
.mtg-card-released,
.mtg-card-rarity {
    font-size: 1em;
    margin: 5px 0;
    color: #555;
}

.mtg-mana {
    font-weight: bold;
    color: #0073e6; /* Example color for mana */
}

.mtg-cmc {
    font-weight: bold;
}

.mtg-oracle-text {
    font-style: italic;
}