/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #0073e6;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header .logo {
    max-width: 50px;
    display: inline-block;
    vertical-align: middle;
}

header h1 {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

nav {
    background: #333;
    color: #fff;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background: #0073e6;
    border-radius: 5px;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Calculator Styles */
.calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#display {
    width: 200px;
    height: 40px;
    font-size: 24px;
    text-align: right;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    gap: 10px;
}

button {
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
}

button:hover {
    background: #005bb5;
}

/* Linear Graph Styles */
.graph-builder {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 20px auto;
}

label {
    margin: 5px 0;
}

input {
    width: 100px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.draw-button {
    margin-bottom: 0px;
    padding: 10px 35px;
    font-size: 16px; /* Adjust font size */
    cursor: pointer;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.draw-button:hover {
    background: #005bb5;
}

/* Currency Rates Styles */
.currency-rates, .crypto-rates {
    margin-top: 20px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #0073e6;
    color: #fff;
}

td {
    background-color: #f4f4f4;
}

/* Study Materials Styles */
.study-materials {
    width: 100%;
    margin-top: 20px;
}

h2 {
    margin-bottom: 10px;
    color: #0073e6;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

li ul {
    list-style-type: disc;
    margin-left: 20px;
}

a {
    text-decoration: none;
    color: #0073e6;
}

a:hover {
    text-decoration: underline;
}
