/* 
    The styles in BASE.CSS are applied across all HTML pages.
*/

:root {
    /* Light Mode Defaults */
    --icon-color: #ffffff;
    --bg-color: #dee0e2;
    --text-color: #222222;
    --primary-color: #1c50ba;
    --anchor-link-color: #ffffff;
    --link-hover: #1c50ba;
    --nav-bg-color: #1a1a1a;

}

/*  ********************* Default Page Styling ********************* */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    line-height: 1.75;
}

body {
    max-width: 100vw;
    font-family: "Alan Sans", Arial, Helvetica, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

/* ********************* Icons & Logos ********************* */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24;
}

/* Logo Image Style */
.logo {
    width: 2rem;
}

/* Icon Colors */
nav .dark-mode-toggle,
.hamburger-icon {
    color: var(--icon-color);
}

header .arrow-icon {
    font-size: 2.5rem;
}

/* ********************* Typography ********************* */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Rubik", Arial, Helvetica, sans-serif;
    color: var(--primary-color);
    letter-spacing: 0.125rem;
}

h1 {
    font-size: clamp(2.25rem, 10vw, 8rem);
    letter-spacing: 0.5rem;
    color: #ffffff !important;
}

p, cite {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ********************* Anchor Link Styling (ALL PAGES & SECTIONS) ******************** */
a {
    color: var(--anchor-link-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
}

a:hover,
a:focus {
    background: var(--link-hover);
}

a.iceland-logo {
    padding: 0;
    border-bottom: 0.125rem solid transparent;
}

a.iceland-logo:hover {
    background: none;
}

a.iceland-logo:focus {
    background: none;
    border-bottom: 0.125rem solid var(--link-hover);
}

.nav-links a:hover {
    background: var(--link-hover);
}

header .arrow-icon a {
    color: #ffffff;
    text-decoration: none;
    padding: 0;
}

header .arrow-jump-container a:hover {
    background: none;
}

header .arrow-jump-container a:focus {
    border: 0.125rem solid white;
    border-radius: 50%;
    background: none;
}

#primary-nav-menu a {
    padding: 1rem;
    display: block;
    text-decoration: none;
}

/*  ********************* Navigation Menu ********************* */
#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--nav-bg-color);
    position: fixed;
    width: 100%;
    z-index: 100;
}
.menu-text {
    color: #fff;
}
.border-bottom {
    border-bottom: 1px solid #00000097;
    /* applies to both the nav & #primary-nav-menu */
}

nav ul {
    list-style-type: none;
}

/*  ********************* Header ********************* */
header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* Applies to the Header IMG on ALL Pages, IMG SRC is inside each pages unique CSS */
    background-color: #0000007d;
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-size: cover;
    /* BG-Color & BlendMode apply the semi-transparent overlay. BG img does not repeat and it COVERS its full container */
}

header h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 100vh;
    margin: 0;
    min-width: 0;
}

header .arrow-jump-container {
    text-align: center;
    padding: 1rem 0;
}



/* ********************* Main Default Across all Pages **************** */
main {
    display: flex;
    margin: 10rem 2rem;
}

/* For Reykjavik & Thingvellir Pages */
.article-img-position {
    /* places the img above the text on mobile */
    order: -1;
}

/* ********************* Form & Video Styling (Reykjavik & Thingvellir Pages ********************* */
form {
    margin: 0 auto;
}

input[type="text"],
input[type="email"] {
    padding: 0.75rem;
}

input[type="submit"] {
    padding: 1.25rem;
    margin: 0.5rem 0;
    background: #1c50ba;
    color: #ffffff;
    /* adds invisible border so it doesnt "push" on hover */
    border: 0.125rem solid transparent;
}

input[type="submit"]:focus {
    border: 0.125rem solid #0a7432;
}

input[type="submit"]:hover {
    background: #0a7432;
    cursor: pointer;
}

section {
    max-width: 100%;
}
#video {
    width: 100%;
}
/* ********************* Footer ********************* */
footer {
    background: var(--nav-bg-color);
    border-top: 0.0625rem solid black;
    padding: 0 1rem;
}

#foot-nav {
    padding: 2rem 0;
}

.foot-site-map,
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.foot-site-map {
    justify-content: center;
    list-style-type: none;
}

.footer-info {
    justify-content: space-between;
    margin-top: 3rem;
    padding-left: 1rem;
    color: var(--anchor-link-color);
}

