.Title {
    text-align: center;
}

.Basic {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: white;
}

.Description {
    text-align: center;
}

.SubTitle {
    text-align: center;
}

.Writing {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f5f5f5;  /* light gray background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.Navigation {
    display: flex;
    justify-content: space-around;  /* spreads buttons evenly */
    background-color: #333;
    padding: 0;
    margin: 0;
    width: 100%;
    position: sticky;  /* stays at top when scrolling */
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.Navigation a {
    flex: 1;  /* makes all buttons equal width */
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 20px;
    transition: background-color 0.3s;
    border-right: 1px solid #555;  /* divider between buttons */
}

.Navigation a:last-child {
    border-right: none;  /* remove border on last button */
}

.Navigation a:hover{
    background-color: #555;
}

.Footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    width: 100%;
    position: relative;
    bottom: 0;
}

.Contact {
    text-align: center;
    display: flex;
    gap: 20px;
    border: 1px solid black;
    padding: 20px;
}

.Contact h2 {
    margin: 0;
    color: white;
    font-size: 1.5em;  /* larger than h3 */
    align-self: center;  /* vertically centers it with the flex items */
}

.Contact h3 {
    margin: 0;
    color: white;
    font-size: 1em;  /* normal size */
}

.Contact a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s;
}

.Contact a:hover {
    color: #6bb6ff;
}

.Projects {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.Projects h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2em;
}

/* Individual Project Cards */
.Project {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.Project h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.Project h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Images */
.Project img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ProjectGrid {
    display: grid;
    grid-template-columns: 250px 250px;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.ProjectGrid img {
    width: 100%;
    max-height: 400px;
    object-fit: scale-down;
    border: 3px solid black;
    border-radius: 8px;
}

.link {
    display: inline-block;
    color: white;
    background-color: #2c3e50;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    margin-top: 15px;
    border: 2px solid #2c3e50;
    transition: 0.2s;
}

.link:hover {
    background-color: white;
    color: #2c3e50;
}

/* Languages/Tech Stack */
.languages {
    background-color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    margin: 15px 0;
}

/* Description List */
.description {
    line-height: 1.8;
    color: #555;
}

.description li {
    margin-bottom: 10px;
}

.description p {
    margin-bottom: 10px;
}

.Achievements {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.Achievements h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2em;
}

/* Individual Achievement Cards */
.Achievement {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.Achievement h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.Achievement h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Images */
.Achievement img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data {
    background-color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    margin: 15px 0;
}

/* Education Page Styling */
.Educations {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.Education {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.Education h3 {
    color: #00274C;  /* U of M blue */
    margin-top: 0;
    font-size: 2em;
    text-align: center;
}

.time {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.Education img {
    display: block;
    margin: 20px auto;
    max-width: 300px;
    height: auto;
}

/* Relevant Classes Section */
.Education > h4 {
    color: #00274C;
    border-bottom: 2px solid #FFCB05;  /* U of M maize */
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Dropdown Styling */
.semester-dropdown {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.semester-dropdown summary {
    background-color: #00274C;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    list-style: none;  /* removes default arrow on some browsers */
    transition: background-color 0.3s;
}

.semester-dropdown summary::-webkit-details-marker {
    display: none;  /* removes default arrow */
}

.semester-dropdown summary::before {
    content: "▶ ";  /* custom arrow */
    display: inline-block;
    transition: transform 0.3s;
}

.semester-dropdown[open] summary::before {
    transform: rotate(90deg);  /* rotate arrow when open */
}

.semester-dropdown summary:hover {
    background-color: #003366;
}

/* Stats styling */
.stats {
    display: inline-block;
    background-color: #00274C;  /* U of M blue */
    color: white;
    padding: 10px 20px;
    margin: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Center the stats container */
.Education > .stats:first-of-type {
    margin-left: 0;
}

/* Skills Page Styling - Pill Style */
.Skills {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.SkillTitle {
    color: #00274C;
    font-size: 1.8em;
    font-weight: bold;
    margin: 40px 0 20px 0;
    border-bottom: 3px solid #FFCB05;
    padding-bottom: 10px;
}

.SkillList {
    margin-bottom: 40px;
}

.SkillList ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.SkillList li {
    background-color: #00274C;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.SkillList li:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.FrontImage {
    display: flex;  /* centers the image */
    justify-content: center;
}

.FrontImage img {
    border: 10px solid black;  /* width | style | color */
    border-radius: 8px;        /* rounded corners (optional) */
}


/* Classes Lists */
.classes {
    padding: 20px 40px;
    margin: 0;
    background-color: #f9f9f9;
    line-height: 1.8;
}

.classes li {
    margin-bottom: 8px;
    color: #333;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fafafa;
}