/* css/styles.css */

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 50px;
    padding: 20px;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav ul {
    list-style: none;
    padding: 0px;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #3498db;
    color: #ffffff;
}
    
/* Main Content */
main{
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 20px auto;
}

h1, h2, h3 {
    margin: 15px 0;
    padding: 0px;
    color: #2c3e50;
    font-weight: 600;
}

section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}


ul {
    list-style-type: disc;
    margin-left: 30px;
}
/* Hero Section */
#hero {
    background-color: #1abc9c;
    color: #fff;
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    }

.hero-image {
    width: 150px;
    border-radius: 50%; /* Make it circular */
    margin: 0 20px 20px 0;
}

.hero-text {
    max-width: 600px;
}

.hero-text h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-text p {
    font-size: 1em;
    margin-bottom: 20px;
}

.hero-links a {
    color: #fff;
    text-decoration: none;
    background-color: #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s ease;    
}
.hero-links a:hover {
    background-color: #2980b9;
    }
/* Experience and Project Cards */
.experience-cards, .project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.experience-card, .project-card {
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.experience-card h3, .project-card h3 {
    margin-bottom: 10px;
}

.experience-card h4 {
    margin-bottom: 15px;
    color: #666;
}

.experience-card ul, .project-card ul {
    list-style-type: disc;
    margin-left: 20px;
}

.project-card a,.hero-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.3s ease;
}

.project-card a:hover {
    text-decoration: none;
}

/* Education Section */
.education-item {
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid #1abc9c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Table Styling for Randomizer */
#tableContainer {
    display: inline-block;
    margin: 0 auto;
    padding: 0;
}

#resultsTable {
    border-collapse: collapse;
    width: auto;
    margin: 0;
}

#resultsTable th, #resultsTable td {
    border: 2px solid #ccc;
    padding: 4px 8px;
    text-align: center;
    white-space: nowrap;
    font-size: 16px;
    background-color: #fff;
}

#resultsTable th {
    background-color: #3498db;
    color: #ffffff;
}

#resultsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#resultsTable tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Button Styling */
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

button:hover{
    background-color: #16a085;
}

/* Button Container */
.button-container {
    text-align: center;
    margin-top: 15px;
}

/* Textarea Styling */
textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Footer */
footer {  
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    margin-top: auto; /* Push the footer to the bottom */
    padding: 20px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Draggable Row and Cell Styling */
.pair-row {
    cursor: -webkit-grab; /* For Safari */
    cursor: grab;
}

.name-cell {
    cursor: -webkit-grab; /* For Safari */
    cursor: grab;
}

.dragging, .dragging-cell {
    opacity: 0.5;
    cursor: -webkit-grabbing; /* For Safari */
    cursor: grabbing;
}

/* upload image area */
#uploadArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed #ccc;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
}

#uploadArea img {
    max-height: 300px;
    width: auto;
    margin-top: 10px;
    display: block; /* Ensure the image is a block element */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group{
    margin-bottom: 15px;
}

#dragContainer {
    position: relative;
    width: 100%;
    min-height: 300px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    background-color: #eee;
    padding: 10px;
    overflow: hidden; /* Prevents drag boxes from overflowing */
}

.dragBox {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #aaa;
    padding: 10px;
    cursor: move;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-width: 50px;
}

.dragBox:hover {
    background-color: rgba(240, 240, 240, 0.9);
}



.drag-over-cell {
    background-color: #e0e0e0 !important;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text p {
        margin: 10px 0 20px 0;
    }
    nav ul {
        flex-direction: column;
        align-items: start;
    }
    
    nav li {
        margin: 10px 0;
    }
    
    .hero-image {
        margin: 0 0 20px 0;
    }

    main {
        width: 100%;
        padding: 10px;
    }
}


/* Image Scaling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.research-item img {
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
}

/* Responsive Layout Adjustments */
@media (max-width: 768px) {
    .experience-cards, .project-cards {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}
@media (max-width: 600px) {
    #dragContainer {
        min-height: 200px;
    }
    .dragBox{ font-size: 12px;}

    #resultsTable th,
    #resultsTable td {
        font-size: 14px; /* Smaller font for smaller screens */
        padding: 2px 4px; /* Less padding for smaller screens */
    }
    
}

