/* Box sizing border sets page widths in such a way that it 
makes it easier for browser to calculate values*/

* {
box-sizing: border-box;
}

body {
    font-family: sans-serif;
    padding: 0 15px; /* content does not sit up against the screen */
}

/* Centres the page content and limits how wide it can grow */

.container {
    max-width: 960px;
    margin: 0 auto;
}

/*  Navbar sits at the top of every page
    will be using display:flex to position items */

.navbar {
    background-color: #212529;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-top: 15px;
}

/* text-decoration: none removes the default underline
    padding to add clickable space around linkes
    border-radius give links slight rounded corners */

.nav-link {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
}

/* when user hovers over link add a sutle highlight */

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Max-width limits how large the logo can be and height will be auto */

.logo {
    max-width: 20%;
    height: auto;
}

.index-img {
    width: 200px;
    height: auto;
}

/* used on index page to place image and text side by side */

.flex-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #cccccc;
}

.btn {
    display: block;
    width: 20%;
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    color: white;
    background-color: #dc3545;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #531318;
}

/* Grey box that shows title or heading */
.page-header {
    background-color: #6c757d;
    color: white;
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.center-img {
    display:block;
    margin: 15px auto;
    align-items: center;
}