@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    /* To remove the underline from links */
}

/* --------------------------------------------Basic body and logo design */

body {
    font-family: Sans-serif;
    /* when applying planned pair Anton and Open Sans - it does not actually look good. It is hard
    to read Open Sans font. I am leaving sans-serif instead */
    background-color: #ef87000b;

}

#logo,
h2 {
    padding: 2px;
    /* After testing in different screen sizes - sansung galaxy 8+ 
    was operating correctly only up to 4px padding and under*/
    border: 6px;
    font-family: monospace;


    /* BUG: Anton font will not load in my mobile phone, but nor will sans-serif. It does not seem to
   be compatable with IOS.
   
   1. Testing out monoscape - it is ok, testing fantasy. Old setting was for Anton and fallback sans-serif.
   
   2. After the test it seems that IOS browser is not falling back onto fantasy. 
   
   3. Deleting Anton and testing again - that did not work and looks the same */

    text-transform: uppercase;
    /* BUG: This colour would override the hover rule color: bisque;
    by targeting the color for <a> under navigation class that fixes the issue--*/
    text-shadow: 0px 1px 0px #68686862;
    /* Had to recude shadow and reduce opacity after testing on a small
    device - it has a bad visibility. */
}

h1 {
    letter-spacing: 7px;
}

/*---------------------------------------------Footer */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    /* Sticky positon with bottom 0 still has the footer in a middle of a page. 
    Position fixed with left, right, bottom as 0 has a sticky property !*/
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 20px 0 #686868;
    padding: 6px;

}

footer a {
    color: #F6F1F1;
    padding: 6px;
    margin: 6px;
    /* without internet the Facebook and email icons do not work */
    text-align: center;
}

/* --------------------------------------------Making navigation sticky */
header {
    position: sticky;
    top: 0;
    /* Sticky positon only works on header and with top 0 !*/
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 20px 0 #686868;
    z-index: 1;
    /* header has a z-index higher than a form which means that it will 
    display over the form if they are overlapping */

}

/* --------------------------------------------Styling navigaiton bar */
.navigation-container {
    /* Border is to only highlight the area - remove after */
    display: flex;
    /* puts logo and menu items in a row */
    align-items: center;
    padding: 6px;
}

.menu-container {
    display: flex;
    /* both menu and navigation must have a flex, as menu 
    has it's own divs with menu items in it that it needs to 
    align horisontally*/
    justify-content: space-evenly;

}

.menu-item {
    padding: 6px;
    border: 6px;
}

.logo-container {
    flex-grow: 1;
    /* this puts logo on the left and menu items on the right*/
    padding: 3px;
}

.navigation-container a {
    color: white;
}

a:hover {
    color: #ef8600;
    /* if I don't target a under navigation ID the hover rule will 
               break and not apply*/
}

.menu-container #active {
    color: #ef8600;
    /* This will color the menu item and show you the pauge user is currently on */
}

/* --------------------------------------------Add rule for 795px screen */
@media screen and (max-width:795px) {
    .navigation-container {
        flex-direction: column;
        /* this puts logo on the top and menu items on the bottom
        when it breaks at 605 all is optimised to look good at 375px*/
    }
}

/* --------------------------------------------Styling Hero/Intro section */
.intro-container {
    padding: 16px 6px 6px;
    border: 6px;
    display: flex;
    /* This makes brian and slogan appear horisontally*/
    justify-content: space-around;
    /*this will always position brian and slogan evenly no matter what screen
    width you change it to */
    align-items: center;

    max-width: 1800px;
    /* when I set max width for some reason container goes to the left side. */
    margin: 0 auto;
    /* margin 0 auto has fixed the issue. */
}

.brian {
    margin: 26px;
    border-radius: 50%;
    /* This makes the square image turn into a circle*/
    border-style: solid;
    border-width: 6px;
    /* creates a thinker circle around Brian also did not add padding or border
    here because I want Brian to be flush to the circle */
    border-color: #ef8600
}

.slogan-container {
    padding: 6px;
    border: 6px;
    width: 507px;
    height: 307px;
    /* want to put a slogan in a box so the words don't shift together 
    when zooming in and out */
    display: flex;
    justify-content: center;
    align-items: center;
    /*Adding flex in the container to center the solgan */
}

.slogan-container h2 {
    letter-spacing: 3px;
    text-shadow: 0px 2px 0px #686868;
    /*
    giving slogan a stenciled grafiti looking shadow to also
    match with the header and footer shadow */
}

@media screen and (max-width:850px) {
    .intro-container {
        flex-direction: column;
    }

    .slogan-container {
        width: 307px;
        height: 307px;
        text-align: justify;
    }

    /* Adding rule to collapse slogan under the picture in order not to skew the text */
}

/**---------------------------------------------Form */
.form-box-container {
    background-color: rgb(255, 255, 255);
    /* Adding white backround to fix fields separating from the backround when in small screen horizontal mode */
    margin-top: 26px;
    width: 350px;
    height: 450px;
    box-shadow: 0 0 20px 0 #686868;
    /* adding a gentle black shadow around the box */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*  putting the form in a centr by suggesting 50% top bottn and transforing */
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex and centre values put the form in the centre of the div */
    z-index: 0;
}

.input-field {
    width: 208px;
    height: 30px;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    border: 1px solid #686868;
    border-radius: 5px;
    /* gives the field edges a little bit of a curve */
    outline: none;
}

#textarea {
    border-radius: 7px;
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 20px;
    border: 1px solid #686868;
}

#submit {
    background-color: #686868;
    width: 100px;
    height: 30px;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    border: 1px solid #686868;
    border-radius: 5px;
    color: white;
}

#submit:hover {
    color: #000000;
    background-color: #ef8600;
    /* button will change colour when you hover over it for better UX */
}

#submit:active {
    box-shadow: 0 0 20px 0 #686868;
    /* A cast shadow at the button click will the the user know they have
    defenitely clicked this button */
}

/*----------------------------------------------Articles */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article p {
    margin-bottom: 20px;
}

.article h2 {
    margin-bottom: 20px;
}

.image-container {
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

.image-container p {
    font-style: italic;
}

/*---------------------------------------------Subscription */
.subscription-container {
    padding: 16px;
    padding-bottom: 6px;
    margin: 16px;
    max-width: 1800px;
    height: 150px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

#subscribe-button {
    background-color: #686868;
    width: 100px;
    height: 30px;
    margin-top: 20px;
    border-radius: 5px;
    color: white;
    /* Copying the overal staylle from my form submit button */
}

#subscription-input-field {
    width: 208px;
    height: 30px;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    border: 1px solid #686868;
    border-radius: 5px;
    /* gives the field edges a little bit of a curve */
    outline: none;
}

#subscribe-button:hover {
    color: #000000;
    background-color: #ef8600;
}

#subscribe-button:active {
    box-shadow: 0 0 20px 0 #686868;
    /* using the same style as developed in the form */
}

/*-----------------------------------------Snippet/article inroduction section*/
.snippet {
    width: 300px;
    border-radius: 15px;
    padding: 16px;
    border: 16px;
    margin: 26px;
}

.snippet-container {
    margin-top: 36px;
    margin-bottom: 36px;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    border-radius: 15px;
    box-shadow: 0 0 20px 0 #686868;
    justify-content: space-between;
    max-width: 1800px;
    /* when I set max width for some reason container goes to the left side. */
    margin: 0 auto;
    /* margin 0 auto has fixed the issue. */
}

.snippet a,
.snippet p,
.snippet h3 {
    color: white;
}

.image-caption {
    font-size: small;
}

/*------------------------Hover rule in the above section*/
.snippet a:hover {
    color: #ef8600;

    /* if I don't target a under navigation ID the hover rule will 
               break and not apply*/
}

.snippet p:hover {
    color: #ef8600;

}

.snippet h3:hover {
    color: #ef8600;
}

.snippet-container:hover {
    color: #ef8600;
}

@media screen and (max-width:850px) {
    .snippet-container {
        flex-direction: column;
        align-items: center;
    }
}

/*-------------------------World map section */

#world-map-container {
    padding-top: 30px;
    padding-bottom: 30px;
    background-image: url(../assets/images/map_visited_countries.jpg);
    background-size: cover;
    background-position: top center;
    overflow: hidden;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 0 20px 0 #686868;
}

#world-map-container div {
    width: 20%;
    float: left;
    padding-top: 90px;
    padding-left: 30px;
    height: 400px;
    padding-right: 30px;
    box-sizing: border-box;
}

#world-map-cointainer h3 {
    text-transform: uppercase;
}

#padding-container-for-world-map {
    padding-top: 26px;
    padding-top: 26px;
    max-width: 1800px;
    margin: 0 auto;
}

@media screen and (max-width:850px) {
    #world-map-container {
        background-position: 65% 20%;
        background-size: 100%;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

@media screen and (max-width:975px) {
    #world-map-container div {
        width: 100%;
        clear: both;
        height: 100px;
        padding-top: 0;
        padding-bottom: 0;
        text-align: center;
    }

    #world-map-container {
        background-size: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        height: auto;
    }
}