/* MAIN STYLESHEET */

/* SET GENERAL TAGS AND RESETS */

:root {
    --clear-color: white;
    --hard-color: #740293;
    --blue: #6535c3;
    --h-pad: 10rem;
    --scroller-h: 60px;
    --scroller-fs: 30px;
}

* {
    box-sizing:border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    font-family: "Lato", "Calibri", sans-serif;
}

body {
    position: relative;
    background-color: white;
    min-height: 100vh;
    color: black;
}

a {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */
}

img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
}

/*set text and other standard stylings*/

h1 {
    text-align: left;
    font-size: 4rem;
    color: white;
}


h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight:400;
    text-transform: uppercase;
    letter-spacing: 10px;
}


h4 {
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
}

h5 {
    font-size: 1.1rem;
    font-weight: 400;
}

h6 {
    font-size: 0.6rem;
    font-weight: light;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.lower {
    text-transform: none;
}

.uppercase {
    text-transform: uppercase;
}


.set_color {
    color: var(--hard-color);
}

.set_white {
    color: white;
}

.set_clear {
    color: var(--clear-color);
}

.normal-letter-spacing {
    letter-spacing: normal;
}

.flex {
    width: 100%;
    display: flex;
    gap: 1rem;
}

.inline-center {
    justify-content: center;
    align-items: center;
}

/*navigation bar*/

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--h-pad);
}

nav .logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

nav .logo a img {
    max-height: 3rem;
}

nav ul {
    display: inline;
    list-style: none;
}

nav ul li {
    display: inline;
    text-transform: uppercase;
    margin-left: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: 0.5s;
    color: black;
}

nav ul li:hover {
    background-color: var(--hard-color);
    color: white;
}


/*splash*/

.splash {
    width: 100%;
    display: grid;
    grid-template-columns: var(--h-pad) repeat(10, 1fr) var(--h-pad);
    grid-template-rows: repeat(18, 2rem);    
}

.splash-bg {
    background-image: url('./imgs/freestocks-yqBKaF1KecM-unsplash.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    grid-column: 1 / span 12;
    grid-row: 1 / span 15;
    z-index: 0;
}

.filler {
    width: 100%;    
    background-color: #4b005f88;
    grid-column: 1 / span 12;
    grid-row: 1 / span 15;
    z-index: 1;
}


.splash-text {
    grid-column: 2 / span 6;
    grid-row: 8 / auto;
    z-index: 3;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.form-container {
    width: 100%;
    grid-column: 10 / span 2;
    grid-row: 8 / span 10;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: -10px 10px 30px -10px #00000088;
    z-index: 3;
}

.form-container .main-search {
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.form-spacing {
    background-image: url('./imgs/freestocks-yqBKaF1KecM-unsplash.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 2rem var(--h-pad);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-spacing .form-container {
    width: 100%;
}

.form-container-non-main {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.splash form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0.5rem;
}

.search_submit {
    background-color: var(--hard-color);
    color: var(--clear-color);
    text-align: center;
    font-weight: bold;
}

.search_submit:hover {    
    background-color: var(--blue);
    cursor: pointer;
}

input, button {
    all: inherit;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

select {
    all: inherit;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

input, 
select {
    background-color: rgb(240, 240, 240);
    color: gray;
}

option {
    color: gray;
    font-size: 0.8em;
}


/*main container*/
/*listings and articles*/

main {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}


/*featured section scroller*/

@keyframes slide {
    from { left:100%; transform: translate(0, 0); }
to { left: -100%; transform: translate(-100%, 0); }
}
@-webkit-keyframes slide {
from { left:100%; transform: translate(0, 0); }
to { left: -100%; transform: translate(-100%, 0); }
}

.scroller-container { 
    width:100%;
    height:var(--scroller-h);
    line-height:var(--scroller-h);
    overflow:hidden;
    position:relative;
}

.scroller {
    position:absolute;
    top:0;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 5rem;
    height:var(--scroller-h);
    font-size:var(--scroller-fs);
    animation-name: slide;
    animation-duration: 280s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation-name: slide;
    -webkit-animation-duration: 280s;
    -webkit-animation-timing-function:linear;
    -webkit-animation-iteration-count: infinite;
}

.scroller:hover {
    animation-play-state: paused;
}

.scroller a {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.scroller a .material-symbols-outlined {
    font-size: 3rem;
    position: relative;
}

.scroller h3 {
    text-wrap: nowrap;
    margin: 0;
    padding: 0;
    line-height: normal;
}

.scroller_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

.scroller_text p {
    text-transform: uppercase;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 0.8;
}


/*contact us*/

.contact_us {
    display: flex;
    padding: 0.5rem;
    padding-bottom: 2rem;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.contact_us h2 {
    color: var(--hard-color);
    text-align: center;
    font-weight: 400;
}

.btn {
    padding: 0.5rem 1rem;
    background-color: var(--clear-color);
    color: var(--hard-color);
    margin-top: 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {    
    background-color: var(--bg-color);
    color: white;
}

.btn:active {
    background-color: var(--clear-color);
    color: white;
}


/*footer*/

footer {
    position: absolute;
    bottom: 0;
    clear: both;
    width: 100%;
    background-color: var(--bg-clearer);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.6rem;
}

footer p {
    letter-spacing: 3px;
    padding: 0.5rem 1rem;
    text-align: center;
}

footer a:hover {
    text-decoration: underline;
}




/* articles styling */

.article_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 5rem 0.5rem;
}

.article_container h3 {
    margin: 0;
    margin-bottom: 2rem;
}

article {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

article p {
    text-align: justify;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

article h4 {
    margin-top: 1.5rem;
}


/* STYLE FOR CONTACT PAGE */


.int_wrapper {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.int_wrapper form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
}

.int_wrapper input, .int_wrapper textarea {
    display: block;
    box-sizing: content-box;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0.5rem;
    border-radius: 3px;
    border: solid 1px #ebe2ed;
    font-family: inherit;
    font-size: 0.8rem;
    box-shadow: 0 0 2px #4b005f;
}

.int_wrapper textarea {
    height: 18rem;
}


.int_wrapper p {
    position: relative;
    top: -0.5rem;
    text-align: left;
    font-size: 0.7rem;
}

.int_wrapper input:focus, .int_wrapper textarea:focus {
    outline: none !important;
    border:1px solid #4b005f;

}

#submit_btn {
    box-shadow:none;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
    border-radius: 5px;
    padding: 0.5rem 2rem;
}

.form_button_dis {
    background-color: #a3a3a3;
}

.form_button_enb {
    background-color: #e8d5ec;
    cursor: pointer;
}

.form_button_enb:hover {
    background-color: #4b005f;
    color: #ebe2ed;
}

/* for withus page */

.withus {    
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 0.5rem;
}

.withus p {
    font-size: 1.1rem;
}

.withus li {
    margin: 1rem 0;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.withus .material-symbols-outlined {
    margin-right: 1rem;
}


.btn_wu {
    padding: 0.5rem 1rem;
    background-color: var(--hard-color);
    color: var(--clear-color);
    margin-top: 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn_wu:hover {
    background-color: var(--blue);
}

/* message sent result message notification */

.message_wrapper {
    margin: 1rem auto;
    width: fit-content;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    margin-top: -2rem;
    margin-bottom: 1rem;
    color: white;
}

.message_wrapper p {
    font-size: 0.7rem;
}

.error {
    background-color: rgb(187, 92, 92);
}

.success {
    background-color: rgb(62, 156, 90);
}

