:root {
    --primary: #f9f9f9;
    --secondary: #000099;
    --text: #f9f9f9;
    --tertiary: #5f47eb;
}

@font-face {
    font-family: hillhousemedium;
    src: url("/Users/douglaspollock/Documents/projects/glasgow_tour_guide/hillhousemedium.woff") format("woff"),
         url("/Users/douglaspollock/Documents/projects/glasgow_tour_guide/hillhousemedium.woff2") format("woff2");
}

html {
    background-color: var(--secondary);
}

body {
    background-color: var(--secondary);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

header {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-family: hillhousemedium, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: xx-large;
    color: var(--primary);
}

nav {
    background-color: var(--primary);
    font-family: hillhousemedium, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary);
    padding: 1em;
}
nav a {
    font-size: larger;
    color: var(--secondary);
    padding: 1rem;
    text-decoration: none;
}
nav a.active {
    color: var(--tertiary);
}

/*todo change <a> to pop from background*/

main {
    padding: 0 25%;
    position: relative;
}

footer {
    background-color: var(--tertiary);
    padding: 0.5rem 2rem;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.centre {
    justify-content: center;
    align-items: center;
}

.tour {
    margin: 1em;
    border: 5px solid var(--primary);
    border-radius: 10px;
    /* remove large padding so the article becomes a predictable box for the image */
    padding: 0;
    /* set a sensible default size for each tour card; adjust as needed */
    width: 18rem;
    height: 12rem;
    overflow: hidden;
    color: var(--primary);
}

a.tour-link {
    color: var(--primary);
}
/* Make the tour image fill the article container while preserving aspect ratio */
.tour img.tour-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover ensures the image fills the box and crops if necessary */
}

#home_image, #tour_image {
    font-family: hillhousemedium, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    text-align: center;
    color: white;
}

#home_image img, #tour_image img {
    width: 100%;
}

#home_image h1, #home_image h2, #home_image h3, #home_image h4, #home_image h5, #home_image h6,
#tour_image h1, #tour_image h2, #tour_image h3, #tour_image h4, #tour_image h5, #tour_image h6 {
    position: absolute;
    top: 3rem;
    left: 2rem;
}

#home_image a, #tour_image a{
    background-color: var(--secondary);
    border-radius: 30px;
    color: var(--text);
    padding: 0.5rem 1rem;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    position: absolute;
    top: 8rem;
    left: 2rem;
}

#appHeader {
    padding-right: 10%;
}
/* todo - rearrange screen for viewport < 643px wide */
