@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,300&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --color-one: #333;
    --color-two: #555;
    --color-three: #777;
    --color-four: #999;
    --color-five: #bbb;
    --color-six: #ddd;
    --color-seven: #f5f5f5;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: var(--color-one);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-seven);
}

.navBar {
    display: flex;
    background: var(--dark-color);
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: white;
}

.nav-logo img {
    width: 100px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: background 0.3s;
}

.nav-links li a:hover {
    background: var(--primary-color);
    border-radius: 5px;
}

.boltedJointCalculatorBody {
    flex: 1;
    padding: 20px;
}

.titleHolder h1 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.boltPatternSetUpAndDisplay,
.boltPatternLoadingAndDisplay,
.boltParametersContainer,
.boltedJointMemberInputAndDisplay,
.boltCalculationResults {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.boltPatternSelectorAndParameters,
.boltPatternDisplayContainer,
.boltPatternLoadingContainer,
.boltLoadingDisplayContainer,
.boltLoadingDisplayContainerAlt,
.standardizedHardwareSelection,
.standardBoltParameters,
.advancedKFactorToggle,
.advancedKFactorParameters,
.boltMaterialPropertyParameters,
.boltedJointMemberInputContainer,
.bottomMostMemberContainer,
.tighteningMethodContainer,
.boltedJointMemberDisplayContainer,
.safetyFactorContainer,
.boltedJointDiagramContainer,
.fatigueDiagramContainer,
.boltLoadDiagramContainer,
.masterTextInputField {
    margin-bottom: 20px;
}

h3, h4, h5 {
    margin-bottom: 10px;
    color: var(--color-two);
}

input[type="number"],
select,
button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--color-six);
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="number"]:focus,
select:focus,
button:focus {
    border-color: var(--primary-color);
}

button {
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--dark-color);
}

canvas {
    display: block;
    margin: 0 auto;
    border: 1px solid var(--color-six);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid var(--color-six);
    text-align: center;
}

table th {
    background: var(--primary-color);
    color: white;
}

table tbody tr:nth-child(even) {
    background: var(--color-seven);
}

.highlight {
    background-color: var(--danger-color);
    color: white;
}

.footer {
    display: flex;
    background: var(--dark-color);
    color: white;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
}

.footerLinks {
    display: flex;
    list-style: none;
}

.footerLinks li {
    margin: 0 10px;
}

.footerLinks li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: background 0.3s;
}

.footerLinks li a:hover {
    background: var(--primary-color);
    border-radius: 5px;
}

.warningToggleContainer {
    margin: 20px 0;
}

#toggleWarningButton {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
}

#toggleWarningButton:hover {
    background-color: #d32f2f;
}

#warningMessage {
    margin-top: 10px;
    padding: 10px;
    background-color: #ffeb3b;
    border: 1px solid #fbc02d;
}