:root {
    --primary: #004379;
    --accent: #002a4d;
    --secondary: #ffffff;
    --background: #ffffff;
    --text: #333333;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family), sans-serif;
    background-color: var(--background);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.header {
    width: 100%;
    background: var(--secondary);
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin-left: 20px;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.header h1 {
    font-size: 2em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,121,155,1) 66%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    background: var(--secondary);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    margin-bottom: 10px;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.input-row {
    display: flex;
    justify-content: space-between;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 10px;
}

.input-group:last-child {
    margin-bottom: 0;
}

input[type="text"],
input[type="number"] {
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-family), sans-serif;
    height: 39px;
}


input[type="color"],
input[type="number"] {
    width: 100%;
}

input[type="color"]{
    border: 2px solid var(--primary);
    border-radius: 5px;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-family), sans-serif;
    height: 39px;
}

input[type="submit"],
.button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary);
    color: var(--background);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover,
.button:hover {
    background-color: var(--accent);
}

.button:active {
    background-color: var(--accent);
    transform: translateY(2px);
}

.settings-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text);
    transition: transform 0.3s;
}

.triangle.open {
    transform: rotate(180deg);
}

.settings-panel {
    display: none;
    padding: 10px;
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
}

.settings.open .settings-panel {
    display: block;
    margin-bottom: 10px;
}

#qr-code {
    margin: 20px 0;
}

#qr-code img {
    max-width: 300px;
}

#error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* Footer styles */
.footer {
    width: 100%;
    background: var(--secondary);
    padding: 10px 0;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-container a {
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: underline;
}

.github-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

@media (max-width: 400px) {
    .logo {
        width: 30px;
        height: 30px;
    }

    .header h1 {
        font-size: 1.5em;
        font-weight: 600;
    }
}

input:focus,
.button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
