/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

/* Jupyter Notebook Container */
.jupyter-notebook {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Notebook Header */
.notebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.notebook-title {
    font-weight: bold;
    font-size: 18px;
}

/* Notebook Toolbar */
.notebook-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.toolbar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.toolbar-buttons button {
    padding: 5px 10px;
    margin-right: 5px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.toolbar-buttons button:hover {
    background-color: #f1f1f1;
}

.kernel-info {
    color: #555;
    font-size: 14px;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Notebook Cells */
.notebook-cells {
    padding: 20px;
}

.cell {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cell Input */
.cell-input {
    display: flex;
    align-items: stretch;
    background-color: #f8f8f8;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.prompt {
    width: 70px;
    padding: 10px;
    background-color: #f0f0f0;
    color: #888;
    text-align: right;
    font-family: monospace;
    border-right: 1px solid #ddd;
    white-space: nowrap;
    display: inline;
}

.input-area {
    flex-grow: 1;
    padding: 10px;
}

.input-area pre {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: #0066aa;
}

.run-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.run-button:hover {
    background-color: #45a049;
}

/* Cell Output */
.cell-output {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    padding: 15px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.cell-output.visible {
    max-height: none;
    height: auto;
    opacity: 1;
}

.output-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

.output-content {
    padding: 10px;
    background-color: #fff;
    border-radius: 3px;
}

.hidden {
    display: none;
}

/* About Me Styling */
.about-me-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-image img {
    border-radius: 50%;
    max-width: 150px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

.about-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Resume Button */
.download-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #0b7dda;
}

/* Projects Styling */
.project-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.project-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #555;
}

.project-tech {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: #e1e1e1;
    color: #333;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Contact Styling */
.contact-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.contact-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.contact-item:hover {
    background-color: #555;
}

/* Typography */
h1 {
    margin-bottom: 15px;
    color: #333;
}

h2 {
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
    color: #444;
}

p {
    line-height: 1.6;
    margin-bottom: 10px;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .about-me-container {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image {
        margin-bottom: 20px;
    }
    
    .contact-links {
        flex-direction: column;
    }
}

/* Responsive Design for Smaller Screens */
/* Made to fix bug where toolbar buttons were off */
@media (max-width: 768px) {
    .notebook-toolbar { 
        flex-direction: column; /* Stack toolbar items vertically */
        align-items: flex-start; /* Align items to the left */
        gap: 10px; /* Add spacing between sections */
    }

    .toolbar-buttons {
        justify-content: flex-start; /* Align buttons to the left */
        width: 100%; /* Ensure buttons take full width if needed */
        gap: 10px; /* Add more spacing between buttons on mobile */
    }

    .kernel-info {
        align-self: flex-start; /* Align kernel info to the left */
        margin-top: 10px; /* Add spacing from toolbar buttons */
    }
}