/* CSS styles for the project */
/* global variables */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --primary-color: #1768ac;
    --secondary-color: #2541b2;
    --highlight-color: #98d2eb;
    --heavy-color: #1f0812;
    --font-family: 'Arial', sans-serif;
}

h1,
h2,
h3 { 
    font-family: 'Rubik', sans-serif;
    text-transform: uppercase;
    color: var(--heavy-color);
}

p {
    font-family: 'Nunito', sans-serif;
    color: var(--primary-color);
}

body {
    background-color: var(--primary-color);
    
}

/* Accessibility */
.visually-hidden-focusable {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.2s;
}

.visually-hidden-focusable:focus {
    top: 6px;
}

a {
    color:#1768ac !important;
}

.btn {
    background-color: var(--secondary-color) !important;
    border-color: #2541b2 !important;
    border-radius: 0 !important;
}

.btn:hover {
    background-color: var(--highlight-color) !important;
    border-color: #98d2eb !important;
}

/* god awful carousel */

.carousel {
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-inner,
.carousel-item {
    height: 100%;
    width: 100%;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

/* navbar */

.logo {
    height: 50px;
    color: var(--heavy-color);
}

.navbar {
    background-color: var(--secondary-color);
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
    color: var(--highlight-color);
    font-size: 0.8rem;
}

.navbar a {
    color: var(--highlight-color) !important;
}

.navbar a:hover {
    color:white !important;
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    transform: translateY(0);
}

/* body */

#lead-title {
    background-color: var(--highlight-color);
    padding: 20px;
    text-align: center;
}

#define {
    font-size: 1.5rem;
    background-color: var(--highlight-color);
    padding: 20px;
}

#middle-column-1 {
    text-align: right;
    background-color: var(--highlight-color);
    color:#1f0812
}

/* cards */

.card {
    border-radius: 0 !important;
}

/* report form */

#report-form {
    background-color: var(--secondary-color);
    padding: 20px;
    color: white;
}

#report-form .btn {
    background-color: var(--highlight-color) !important;
    color: var(--heavy-color);
}

/* newsletter */


#newsletter {
    padding: 20px;
    text-align: center;
}

/* download */

#download-resource {
    background-color: var(--highlight-color) !important;
}

#download-help {
    display: none;
}

/* footer */

.footer {
    background-color: var(--secondary-color);
}



#icons i {
    color: white !important;
}

#icons i:hover {
    font-size: 20rem;
    color: var(--highlight-color) !important;
}

#copy {
    text-align: right;
    margin-right: 5px;
    color: white;
}

/* queries */

@media screen and (min-width: 1200px) {
    
    .carousel {
        height: auto;
        max-height: none;
    }
    
    #middle-column-1 {
        text-align: right;
        
    }
    
    
}

@media screen and (max-width: 768px) {
    
    .carousel {
        height: auto;
        max-height: none;
    }
    
    .carousel-inner,
    .carousel-item {
        height: auto;
    }
    
    .carousel-item img {
        height: auto;
        width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .navbar {
        position: relative;
        top: auto;
        transform: none;
        margin-bottom: 0;
    }
    
    .navbar.scrolled {
        position: fixed;
        top: 0;
        transform: translateY(0);
    }
    
    main {
        margin-top: 0;
    }
    
}