/* Error message styling */
.error {
    color: #d60000;
    font-weight: bold;
}
body {
    margin: auto;
    padding: 50px;
    color: #fff;
    font-family: 'Lato', sans-serif;
    background: #2d313a;
}

/* Box (for corners & padding) */
.box {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
    background-color: #23272e;
    border: 1.5px solid #444;
}


/* Set up grids... specifics */

/*  #### Grid for Main page #### */


.wrapper {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas: 
        "banner"
        "nav"
        "main"
        "footer";
        grid-gap: 4px;
    
}

.banner {
    grid-area: banner;
}

.nav {
    grid-area: nav;
    background-color: #23272e;
    font-size: 150%;
    padding: 20px;
    vertical-align: middle;
    border: 1.5px solid #444;
}

.main {
    grid-area: main;
    background-color: #23272e;
    border: 1.5px solid #444;
}


.footer {
    grid-area: footer;
    text-align: right;
    padding: 20px;
}

/*  #### Grid for Navigation area page #### */

.linkwrapper {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr;
    grid-template-areas: 
        "commonsearches topsearch topadmin";
    grid-gap: 4px;
}


.commonsearches {
    grid-area: commonsearches;
    
}

.topsearch {
    grid-area: topsearch;
    text-align: right;
}

.topadmin {
    grid-area: topadmin;
    text-align: center;
}

/* ### Additional div styling (put colours / corners here) */


/* Area colouring... */

/* logo, banner and footer background are the same */
.banner, .footer {
    background-color: #23272e;
    border: 1.5px solid #444;
    color: #fff;
}


/* #### Links Styling  #### */

/* Navigation Links */
a.topnav {font-weight: bold;}

a.topnav:link, a.topnav:visited {color: #ff6b35;}
a.topnav:hover {color: #fff; text-decoration: none; background: #ff6b35; border-radius: 4px;}


/* links in page */
a {font-weight: bold;}

a:link { color: #ff6b35; }
a:visited { color: #ffb385; }
a:hover { color: #fff; background: #ff6b35; border-radius: 4px; text-decoration: none; }

.commonsearches a {
    margin-left: 10px;
}

/* #### Headings / text styling #### */
h1, h2, h3, h4 {
    font-family: 'Ubuntu', sans-serif;
}

.results {
    background-color: #23272e;
    border: 1.5px solid #444;
    border-radius: 8px;
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
    color: #fff;
}

.tag {
    background-color: #ffe14a;
    color: #23272e;
    text-shadow: none;
        background-color: #23272e;
        color: #ffad41 !important;
        border: solid 2px #ff6b35;
    border-radius: 6px;
    font-weight: 500;
}

.no-results {
    padding: 10px;
    background-color: #2d2d2d;
    border: solid 1.5px #ff6b35;
    color: #fff;
}

.sub_heading {
    font-family: 'Ubuntu', sans-serif;
    color: #ff6b35;
    font-weight: bold;
}

/* ### Form / Search  Styling #### */

form {
    width: 100%;
}

.search {
    background:#fff;
    width: 200px;
}

.submit::-moz-focus-inner { 
    border: 0;
}


.submit {
    font-family: FontAwesome, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position:relative;
    width: 45px;
    font-size: 14px;
    left:-5px;
    background-color: #ff6b35;
    color:#fff;
    border: 1.5px solid #444;
    border-radius: 0 8px 8px 0;
    display: inline-block;
    padding: 10px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.tools {
    text-align: right;
    padding-right: 20px;
}


input[type="submit"]:hover {
    background-color: #fff;
    color: #ff6b35;
    border-color: #ff6b35;
}

.admin-form {
    max-width: 600px;
    margin: auto;
    background: #23272e;
    border: 1.5px solid #444;
    border-radius: 8px;
    color: #fff;
}
.form-submit {
    width: 100%;
}


input,
textarea {
    font-size: 14px;
    padding: 10px;
    display: inline-block;
    border: 1.5px solid #444;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    background: #23272e;
    color: #fff;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}

/* Subject fields animation */
input#subject1,
input#subject2,
input#subject3 {
    animation: subjectFieldGlow 1.2s ease-in-out 1;
}

@keyframes subjectFieldGlow {
    0% {
        box-shadow: 0 0 0 0 #ff6b35;
        border-color: #444;
    }
    40% {
        box-shadow: 0 0 8px 2px #ff6b35;
        border-color: #ff6b35;
    }
    100% {
        box-shadow: 0 0 0 0 #ff6b35;
        border-color: #444;
    }
}

input:focus,
textarea:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 8px 2px #ff6b35;
    background: #23272e;
    color: #fff;
}

.quicksearch {
    border-radius: 5px 0 0 5px;
    display: inline-block;
    background: #23272e;
}

.quick-choose {
    padding: 10px;
    border: solid 1px #000
}

/* Rules for navigation on small screens */
@media only screen and (max-width: 1175px) {
    .linkwrapper{
        grid-template-columns: auto;
        grid-template-rows: auto;
        grid-template-areas: 
        "commonsearch topadmin"
        "topsearch topsearch";
    }

    /* Adjust alignment of content on small screens */
    .commonsearches {
        text-align: left;
    }

    .topsearch{
        width: 100%;
        text-align: left;
    }

    .topadmin{
        text-align: right;
    }

.linkwrapper {
    display: flex;
    flex-wrap: wrap;         /* allows items to wrap onto a new line */
    justify-content: space-between;
    align-items: center;
    gap: 10px;               /* adds spacing between items */
}   

}
@media only screen and (max-width:750px) {
    .linkwrapper{
        grid-template-columns: auto;
        grid-template-rows: auto;
        grid-template-areas: 
        "commonsearches topadmin"
        "topsearch topsearch";
    }

    /* Adjust alignment of content on small screens */
    .commonsearches {
        text-align: left;
   }

    .topsearch{
        width: 100%;
        text-align: left;
    }

    .topadmin{
        text-align: right;
    }



}
