* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Wittgenstein", serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #f4f4f4;
    max-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
}

.logo img {
    max-width: 100px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #bbb;
}

#title-container{
	max-width: 600px;
    margin: 1em auto;
    margin-bottom: 0;
	text-align: center;
	font-weight: bold;
    border: 1px solid #000;
    padding: 1em;
    border-radius: 8px;
}

.container {
    margin: 0 auto;
	padding: 0.5em;
    text-align: left;
    position: relative;
    border-radius: 8px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the same height as the navbar */
}

.footer p {
    margin: 0;
    font-size: 0.8rem; /* Decreased font size */
}

.footer .instagram-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer .instagram-link:hover {
    color: #bbb;
}

.footer1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px; /* Set the same height as the navbar */
}

.footer1 p {
    margin: 0;
    font-size: 0.8rem; /* Decreased font size */
}

.footer1 .instagram-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer1 .instagram-link:hover {
    color: #bbb;
}

.content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content h1 {
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 1rem;
}

.content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

#graph-container {
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    font-family: "Wittgenstein", serif;
}

input[type="text"]:focus {
    border-color: #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #000;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-family: "Wittgenstein", serif;
}

button:hover {
    background-color: #444
}

button:active {
    background-color: #004494;
}

#graph {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Wittgenstein", serif;
    border-radius: 8px;
}

#equation-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    max-width: 800px;
    text-align: left;
}

#equation-list li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center the text and button */
    padding: 5px 10px;  /* Reduce padding for compact size */
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f0f0f0;
    width: calc(100% - 2px); /* Match input field width */
    height: 38px; /* Match the height of the input field */
    font-size: 16px; /* Adjust font size to match input */
    font-family: "Wittgenstein", serif;
}

.remove-btn {
    border: none;
    background: none;
    color: #ff4d4d;
    font-size: 16px; /* Match font size of input */
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.remove-btn:hover {
    color: #d90000;
}

#ad-container {
    flex: 1;
    margin: 1em;
    /* Add styles for the advertisement container */
}

#ad-container img {
    width: 100%;
    padding: 1em;
}