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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.form-container, .data-container {
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

#dataList {
    margin-top: 20px;
}

.entry {
    background-color: white;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.login-container {
    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.startups-container {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
}

.startup-checkbox {
    margin-top: 5px;
    width: 20px;
    height: 20px;
}

.entry-content {
    flex-grow: 1;
}

.entry-content h3 {
    margin: 0 0 15px 0;
    color: #2196F3;
    font-size: 1.2em;
}

.startup-details {
    margin-bottom: 15px;
}

.startup-details p {
    margin: 8px 0;
}

.startup-materials {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.startup-materials p {
    margin: 8px 0;
}

.startup-materials a {
    text-decoration: none;
}

.material-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 8px;
    background-color: #5e35b1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.material-button:hover {
    background-color: #4527a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.material-button, 
.material-button:link,
.material-button:visited,
.material-button:hover,
.material-button:active {
    color: white;
    text-decoration: none;
}

.material-button.deck {
    background-color: #5e35b1;
}

.material-button.deck:hover {
    background-color: #4527a0;
}

.material-button.video {
    background-color: #5e35b1;
}

.material-button.video:hover {
    background-color: #4527a0;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #4CAF50;
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.floating-button:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.floating-button::before {
    content: '🎯';
    font-size: 24px;
}

.heart-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 32px;
    color: #ccc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    padding: 10px;
    margin-top: 10px;
}

.heart-button.active {
    color: #ff4081;
    transform: scale(1.1);
}

.heart-button span {
    font-size: 13px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .entry {
        flex-direction: column;
        padding: 15px;
    }

    .heart-button {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        width: 100%;
        margin: 0 0 15px 0;
        padding: 5px;
    }

    .heart-button span {
        margin-left: 10px;
        font-size: 14px;
    }

    .startup-materials {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .material-button {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .floating-button {
        bottom: 20px;
        right: 20px;
        padding: 15px 25px;
        font-size: 16px;
        width: calc(100% - 40px);
        justify-content: center;
    }

    .startup-details p {
        word-break: break-word;
    }

    .entry-content h3 {
        font-size: 1.1em;
        word-break: break-word;
    }

    /* Make links more tappable on mobile */
    a {
        padding: 5px 0;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .login-container {
        padding: 15px;
    }

    input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .floating-button::before {
        font-size: 20px;
    }
}
