/* General Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    background-color: rgb(21, 21, 21);
    color: #fff;
    overflow-x: hidden;
    font-family: 'SFDroob', sans-serif;
    font-display: swap;
    align-items: center;
    justify-content: flex-start;

}

h1, h2, h3 {
    font-family: 'SFDroob';
    font-weight: 700;
    font-display: swap;
}

p {
    font-family: 'SFDroob';
    font-weight: 400;
    font-size: 18px;
    font-display: swap;
}

.logo {
    text-decoration: none;
    color: white;
    font-family: 'SFDroob', sans-serif;
    font-size: 24px;
    display: block;
    margin: 0 auto 10px;
}

/* Font Definitions */
@font-face {
    font-family: 'SFDroob';
    src: url('fonts/SFDroob.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 100% 900%;
    font-style: oblique 0deg 15deg;
    font-display: swap;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgb(21, 21, 21);
    align-content: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }
  
  nav ul li {
    position: relative;
  }
  
  nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: background-color 0.3s ease;
  }
  
  nav ul li a:hover {
    background-color: #444;
    color: var(--text-color);
  }

/* Sections */
#selectionSection, #resultSection {
    margin: 0 10px;
    align-content: center;
}

#fontSelector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#fontSelect, #weightSelect {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
}

#selectedFonts {
    display: inline-block;
    margin: 10px 0;
}

.font-entry {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #2a2a2a;
    border-radius: 4px;
    font-size: 14px;
}

/* Table */
.responsive-table {
    width: 100%;
    max-width: 800px;
    overflow-x: auto;
    margin: 12px auto;
    padding: 0 10px;
}

.responsive-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background-color: #2a2a2a;
    margin: 0 auto;
}

.responsive-table th, .responsive-table td {
    border: 1px solid #444;
    padding: 8px 10px;
    text-align: center;
    color: #fff;
    white-space: nowrap;
    font-size: 14.5px;
}

th {
    background-color: #3a3a3a;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #333;
}

/* Payment buttons */
.payment-buttons {
    text-align: center;
    margin: 30px 0;
}

.payment-buttons button {
    margin: 10px;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: #fff;
    font-family: 'SFDroob', sans-serif;
    width: auto;
    display: inline-block;
}

.payment-buttons button.paypal {
    background: #0070ba;
}

.payment-buttons button.bank {
    background: #28a745;
}

.payment-buttons button.western {
    background: #f77f00;
}

.payment-buttons button:hover {
    opacity: 0.85;
}

/* Modal popup */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
    font-family: 'SFDroob', sans-serif;
    color: #000;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: red;
}

/* Total Price */
#totalPrice {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #00cc00;
    text-align: center;
}

/* Chat Widget */
#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#chat-icon:hover {
    background-color: #0056b3;
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: #000;
    display: none;
    z-index: 1000;
}

.chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

#close-chat {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.chat-body {
    padding: 10px;
}

#chat-message {
    resize: none;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'SFDroob', sans-serif;
    font-weight: 400;
}

.chat-footer {
    padding: 10px;
}

#send-message {
    width: 100%;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'SFDroob', sans-serif;
}

#send-message:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    #fontSelector {
        flex-direction: column;
        align-items: stretch;
    }

    #fontSelect, #weightSelect, .payment-buttons button {
        width: 100%;
    }

    .responsive-table table {
        font-size: 14px;
    }

    #chat-window {
        right: 10px;
        width: 95%;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
    }
}
/* ==== Layout Fix & Tight Spacing ==== */
:root{
    --bg-color:#111;
    --text-color:#fff;
  }
  
  