/* Base styles shared across all pages */

/* Import local Nunito font */
@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito/Nunito-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito/Nunito-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

/* Reset & base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito", Helvetica, Arial, sans-serif;
}

html {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: black;
}

p {
    font-size: 1.5rem;
}

a:visited {
    color: black;
}

/* Hide scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: sticky;
    background-color: white;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    align-self: stretch;
    text-align: center;
}

/* Right-aligned title */
header .title {
    text-align: left;
    font-size: 1.2rem;
    padding: 1rem;
    border-bottom: black solid 2px;
    flex: 1;
}

header nav a {
    width: 9rem;
    text-align: center;
    align-content: center;
    align-self: stretch;
    font-size: 1.5rem;
    border-bottom: black solid 2px;
}

header nav a:hover {
    border-left: grey solid 2px;
    border-right: grey solid 2px;
}

header nav a.active,
header nav a.selected {
    border-left: black solid 2px;
    border-right: black solid 2px;
    border-bottom: none;
}

/* Button styles */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: black;
    color: white;
    border: 2px solid black;
}

.btn-primary:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: black;
    border: 2px solid black;
}

.btn-secondary:hover {
    background: black;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Message Styles */
.message {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    font-weight: 500;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message p {
    margin: 0;
}

/* Mobile responsive base styles */
@media (orientation: portrait) {
    html {
        font-size: 3.5vw;
    }

    header {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        background-color: white;
        padding-top: 1rem;
        position: static;
    }

    header .title {
        border-bottom: none;
    }

    header nav {
        padding: 0;
    }

    header nav a {
        flex: 1;
    }
}
