/* ************************************************** ************************************************** ************************ */
/* CSS RESET */
/* ************************************************** ************************************************** ************************ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* ************************************************** ************************************************** ************************* */
/* BEGIN STYLESHEET---- MOBILE FIRST */
/* ************************************************** ************************************************** ************************* */
/* body styles */
body {
/* position to relative in case i need to absolutely position elements throughtout the page, margin to 0 auto, width to 100% */
position: relative;
margin: 0 auto;
width: 100%;
/* fancy site, fancy background image repeated on the x and y axis */
background-color: rgb(220,220,220);
/* default font family and base style of 16px so i can use em later, k22 heading will use font from google fonts */
font-family: helvetica, arial, sans-serif;
font-size: 16px;
}
/* header */
header {
background-color: rgb(60,0,40);
width: 100%;
min-height: 150px;
}
/* main h1 heading within header */
header h1 {
text-align: center;
/* width of h1 and margin to center */
width: 80%;
margin: 0 auto;
/* font family of dancing script from google fonts */
font-family: dancing script;
/* larger font size and bold weight to give the header more volume */
font-size: 2.5em;
font-weight: bold;
/* my attempt at a gold color for the k22 part of the header */
color: rgb(255,220,115);
/* letter spacing to spread things out */
letter-spacing: 2px;
/* padding */
padding: 1em .2em .4em .2em;
/* bottom border as underline */
border-bottom: 2px solid black;
}
/* id points to a span within the main header for the word jewellery */
#h1jy {
/* my attempt at a silver color */
color: rgb(192,192,192);
}
/* menu icon positioning styles */
#menuicon {
position: absolute;
top: 0px;
left: 0px;
padding: .6em;
}
/* shopping cart positioning styles */
#carticon {
position: absolute;
top: 0px;
right: 0px;
padding: .6em;
}
/* positioning for login and signup button and also styling */
#login {
position: absolute;
margin: 0 auto;
left: 0;
right: 0;
top: 10px;
width: 120px;
text-decoration: none;
color: rgb(150,150,150);
letter-spacing: 2px;
font-size: .8em;
}
/* navigation list initially set to display none, setting of position to relative */
header nav ul {
position: relative;
display: none;
background-color: rgba(10,10,10, .8);
width: 100%;
}
/* styles for the individual li elements */
header nav ul li {
text-align: center;
width: 100%;
padding: .2em;
}
/* removing default styles for anchor links adding colour size and line height */
header nav ul li a {
text-decoration: none;
color: rgb(150,150,150);
letter-spacing: 2px;
font-size: 1em;
text-shadow: 0px 0px 5px rgb(150,150,150);
}
header nav ul li a:hover {
color: white;
text-shadow: 0px 0px 5px white;
}