/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
}

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;
}
/* = = = = END OR RESET = = = =  */

/* = = = = START STYLING = = = =  */

body {
    box-sizing: border-box;
    background-color: #f1cde1;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.2;
    color: #7a174a;
}

main {
    width: 75%;
    max-width: 960px;
    background-color: #eff4dc;
    margin: 0 auto;
    padding: 1em;
    border-radius: 25px;
}

/* main image */
main img {
    display: block;
    margin: 0 auto;
    width: 25%;
    height: auto;
}

/* No Javascript enabled */
noscript {
    display: block;
    color: #c22819;
    width: 60%;
    margin: 1em auto;
}

/* GENERAL TYPOGRAPHY */

h1, h2, main p {
    text-align: center;
    margin: 1em auto;
}

h1 {
    font-size: 1.5em;
    font-size: calc(1.5em + 1.5vw);
    font-weight: 600;
}

h2 {
    font-size: 1.2em;
    font-size: calc(1.2em + 1.5vw);
    font-weight: 600;
}

/* LINKS */

a:link, a:visited {
    color: #7a174a;
    -webkit-transition: all .2s ease-in-out; 
	-moz-transition: all .2s ease-in-out; 
	-o-transition: all .2s ease-in-out; 
	transition: all .2s ease-in-out;
}

a:active, a:focus {
    color: #ed3c10;
}

a:hover {
    background-color: #9fb2bb;
}

/* = = = = SPECIFIC PAGES = = = =  */

/* LOVE TEST PAGE */

.lovetest h1, .lovetest h2, .lovetest button {
    font-family: 'Courgette','Brush Script MT', cursive, Arial, Helvetica, sans-serif;
}

form, .todo div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5em;
}

form p {
    margin-bottom: 0.2em;
}

input {
    height: 1.8em;
    border-color: #7a174a;
}

form p {
    margin-top: 0.5em;
}

button {
    margin-top: 1em;
    padding: 0.7em;
    font-size: 1.1em;
    outline: none;
    border: none;
    border-radius: 10px;
    color: #7a174a;
    font-weight: 600;
    background-color: #f1cde1;
    box-shadow: 2px 2px 2px 2px #7a174a;
    -webkit-transition: all .2s ease-in-out; 
	-moz-transition: all .2s ease-in-out; 
	-o-transition: all .2s ease-in-out; 
	transition: all .2s ease-in-out;
}

button:hover {
    color: #eff4dc;
    background-color: #7a174a;
    box-shadow: 2px 2px 2px 2px #d3a7cc inset;
    cursor: pointer;
}

/* ACTIVITY PAGE */

/* setting the bg colour: */
.activity {
    background-color: #9de8d4;
}

/* styling the fieldset that only exists in JS */
.activity fieldset {
    text-align: center;
    padding: 1em;
    line-height: 2;
}

.activity legend {
    text-align: center;
    margin: 2em auto 0;
}

/* styling the fieldset buttons */
.activity input[type="radio"] {
	appearance: none;
    width: 1.5em;
    height: 1.5em;
	border: 2px solid #7a174a;
    border-radius: 50%;
    cursor: pointer;
}

/* individually colouring the buttons */
.activity input[type="radio"]:first-of-type {
    background-color: #948f8c;
}

.activity input[type="radio"]:nth-of-type(2) {
    background-color: #ea8b3b;
}

.activity input[type="radio"]:nth-of-type(3) {
    background-color: #9b76ce;
}

.activity input[type="radio"]:nth-of-type(4) {
    background-color: #30e90f;
}

.activity input[type="radio"]:nth-of-type(5) {
    background-color: #2468b7;
}

.activity input[type="radio"]:nth-of-type(6) {
    background-color: #46dfd7;
}

/* MAGIC 8 BALL PAGE */

.magic8 {
    background-color: #f3b26a;
}

.magic8 input {
    margin-top: 1em;
}

.magic8 button {
    background-color: #f3b26a;
}

.magic8 button:hover {
    background-color: #7a174a;
    box-shadow: 2px 2px 2px 2px #f3b26a inset;
}

/* TO-DO LIST PAGE */

.todo, .todo button {
    background-color: #78dd9e;
}

.todo button:hover {
    color: #eff4dc;
    background-color: #7a174a;
    box-shadow: 2px 2px 2px 2px #78dd9e inset;
    cursor: pointer;
}

ol {
    margin: 1em;
}

/*  = = = = FOOTER = = = =  */
footer {
    text-align: center;
    margin: 1em;
}

footer nav ul {
    margin-bottom: 2em;
}

footer nav ul li {
    padding: 0.4em;
    display: inline-block;
}

footer a:last-of-type {
    margin-top: 1em;
}

/* MEDIA QUERIES */

@media (min-width: 800px) {
    main {
        width: 60%;
    }
}