/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    text-align: center;
    background-color: #4691e7;
    padding: 10px;
    color: white;
}

.center-text {
    text-align: center;
    margin-bottom: 10px;
    
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    background-color: #4691e7;
    padding: 10px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px; 
    padding: 5px 10px;
    border-radius: 5px;
}

.main-navigation a:hover {
    background-color: #3b0aeb;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    padding: 20px;
}

@media (min-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr 2fr; 
    }
}

/* Responsive Image */
.responsive-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Media Section */
.media-content  {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px; 
    text-align: center;
}

.project-content {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}



/* About Content */
.about-content, .list-content {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Flex Container for Projects*/
.flex-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .flex-container {
        flex-direction: row; 
        justify-content: space-between;
    }
}

/* Responsive Media */
.responsive-iframe {
    width: 100%;
    height: auto;
    max-width: 560px; /* Matches YouTube's default embed width */
    border-radius: 10px;
}

/* Responsive Project */
.project-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

/* Button Styles */
button {
    padding: 10px 20px; /* Reduced padding for better fit on mobile */
    border: none;
    background-color: rgb(106, 111, 245);
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 50px;
}

button:hover {
    background-color: #3b0aeb;
}

/* Back to Top */
.back-to-top {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    background-color: rgb(106, 111, 245);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #aaa;
}

/* Social Icons */
.social-icons img {
    margin: 0 10px; /* Spacing between icons */
}

/* Table Styles */
/* Table Styles */
table {
    width: 100%; /* Make table width 100% to fit within the screen */
    max-width: 100%; /* Ensure the table doesn't exceed screen width */
    margin: 20px auto; /* Center the table horizontally */
    border-collapse: collapse; /* Collapse borders for a cleaner look */
    background-color: #fff; /* White background for the table */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow: hidden; /* Hide overflow */
    border-radius: 10px; /* Rounded corners for aesthetics */
}

thead {
    background-color: #4691e7; /* Header background color */
    color: #fff; /* Header text color */
    text-align: center; /* Center align header text */
}

thead th {
    padding: 20px; /* Padding around header cells */
}

tbody {
    text-align: center; /* Center align body text */
}

tbody td {
    padding: 15px; /* Padding around body cells */
    border-bottom: 1px solid #ddd; /* Border at bottom of each cell */
    font-size: 16px; /* Font size for body text */
    word-break: break-word; /* Break long words to prevent overflow */
}

tbody tr:nth-child(even) {
    background-color: #f4f4f4; /* Alternate row background color */
}

tbody tr:hover {
    background-color: #f1f1f1; /* Hover effect for table rows */
}

/* Media Queries for Responsive Design */
@media (max-width: 767px) {
    table {
        width: 100%; /* Ensure table fits the screen */
        margin: 10px 0; /* Reduce margin for smaller screens */
        font-size: 14px; /* Decrease font size on smaller screens */
    }

    thead th, tbody td {
        padding: 10px; /* Reduce padding for smaller screens */
        font-size: 12px; /* Smaller font size for table text */
    }

    tbody tr:nth-child(even) {
        background-color: #f9f9f9; /* Subtle color difference for rows */
    }
}


/* Media Queries for Responsive Design */
@media (max-width: 767px) {
    .main-navigation {
        flex-direction: column;
        padding: 5px;
    }

    .main-navigation a {
        margin: 5px 0;
    }

    .flex-container {
        flex-direction: column;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .project-image, .book-image {
        max-width: 100%;
    }
}
/* Footer Bottom Styles */
.footer-bottom {
    background-color: #4691e7; 
    color: #fff; 
    text-align: center; 
    padding: 40px 0px; 
    font-size: 14px; 
    margin-top: 40px; 
}

.footer-bottom p {
    margin: 5px 0;
}
@media only screen and (max-width: 600px) {
    .footer-bottom {
        padding: 15px 0; 
        font-size: 12px; 
    }

    .content-wrapper {
        padding: 10px; 
    }
}


