@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES */
:root {
    /* COLOR */
    --BACKGROUND: rgb(19, 41, 61);
    --TEXT-BACK: rgb(232, 241, 242);
    --TEXT-FRONT: rgb(19, 41, 61);
    --BOX-BACK: rgb(0, 100, 148);
}


/* GENERAL LAYOUT */
html {
    background: var(--BACKGROUND) url("../pics/back_keyboard.png") no-repeat fixed;
    background-size: cover;
    scroll-behavior: smooth;
}
body {
    font: 1.15rem "Fredoka", sans-serif;
    background: var(--TEXT-BACK);
    width: 80%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0px auto;
    -webkit-box-shadow: 3px 3px 7px 3px rgba(0,23,50,1.00);
    box-shadow: 2px 2px 7px 3px rgba(0,23,50,1.00);
    opacity: 0.95;
    display: flex;
    flex-direction: column;
}
main {
    flex-grow: 1;
    padding: 0.4rem;
}


/* TYPOGRAPHY */
h1 {
    font-size: 3em;
    font-weight: 800;
}
h2, h3 {
    color: var(--BOX-BACK);
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    text-shadow: 1px 1px 2px hwb(0 0% 100% / 0.4);
}
h2 {
    text-transform: capitalize;
    font-size: 1.7em;
}
h3 {
    font-size: 1.2em;
}
p {
    margin: 0.7em 0;
}
a {
    color:blue;
    text-decoration: none;
}
main a:visited {
    color: var(--BOX-BACK);
}
a:hover, a:focus {
    text-decoration: underline;
    opacity: 0.75;
}
.announce {
    font-weight: 700;
    color: var(--BOX-BACK);
    display: inline-block;
    transform: rotate(-3deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-style: normal;
    border: var(--TEXT-FRONT) solid 1px;
    border-radius: 4px;
    padding: 0 2px;
}


/* HEADER */
header {
    font-family: "Roboto", sans-serif;
    background: var(--BACKGROUND);
    color: var(--TEXT-BACK);
    top: 0;
    display: grid;
    position: sticky;
    text-align: center;
}
header h1 {
    height: 70px;
    place-content: center;
    text-shadow: 2px 2px 4px black;
}
.header_icon {
    opacity: 0.8;
    display: flex;
    position: absolute;
    margin-left: 0;
}

/* NAVIGATION */
nav {
    background: var(--TEXT-BACK);
}
nav ul {
    list-style-type: none;
	display: flex;
}
nav li {
	font-size: 1.8rem;
	line-height: 2.6rem;
    display: inline;
	text-align: center;
	flex: 1;
}
nav a {
    background: var(--BOX-BACK);
    display: block;
    color: var(--TEXT-BACK);
	font-weight: bolder;
    text-decoration: none;
    border: 1px solid var(--BACKGROUND);
	transition: background-color 0.5s;
}
nav a:hover, nav a:focus{
	cursor: pointer;
	color: yellow;
    background: linear-gradient(0deg,
	var(--BACKGROUND),
	var(--BOX-BACK),
	var(--BACKGROUND)
	);
    text-decoration: none;
    border: 1px solid var(--TEXT-BACK);
	transition: background-color 0.5s;
}
#ms {
	display: none;
}
#adobe {
	display: none;
}
#code {
	display: none;
}


/* MAIN */
aside {
	float: right;
}
aside img {
    border-radius: 50%;
    border: 3px solid var(--BACKGROUND);
}
.support {
    margin: auto;
    width: fit-content;
    font-size: 1em;
}
.center {
    text-align: center;
}
section fieldset {
    padding: 0.3em;
    margin-top: 0.5em;
}
section table {
    font-size: 0.9em;
}
button {
    font-size: inherit;
}
fieldset input {
    font-size: inherit;
    width: 20rem;
}
fieldset textarea {
    font-size: inherit;
    width: 20rem;
}
fieldset td {
    padding: 0.1em;
}
.not {
	display: none;
}
.icon {
    margin: 0 10px;
    float: right;
}


/* FOOTER */
footer {
    background: var(--BACKGROUND);
    color: var(--TEXT-BACK);
    bottom: 0;
    display: grid;
    place-content: center;
    grid-template-columns: 100%;
    text-align: center;
    position: sticky;
    font-size: .9em;
}
footer ul {
	text-align: center;
}
footer li {
    display: inline;
    text-align: center;
    flex: 1;
	margin: auto 5px;
}
footer a {
    color: var(--TEXT-BACK);
    text-decoration: none;
}
footer p {
    margin:0;
}



/* MOBILE LAYOUT */

@media screen and (max-width: 768px) {
	body {
        font: 1.2rem "Fredoka", sans-serif;
        width: inherit;
        margin: 0;
        max-width: none;
        display: block;
	}
	h1 {
		font-size: 1.4em;
	}
	h2 {
		font-size: 1.3em;
	}
	h3 {
		
	}
	p, li, td {
		font-size: 1.2rem;
	}
	aside {
        float: none;
        display: block;
        text-align: center;
    }
    aside img {
        border-radius: 50%;
        border: 3px solid var(--BACKGROUND);
        width: 30%;
        height: auto;
    }nav ul {
		display: inline-block;
		width: 100%;
		margin: 0px;
	}
	nav li {
    width: 100%;
    display: inline-block;
    font-size: 1.2em;
    line-height: 1.5em;
	}
	#ms a {
		color: yellow;
	}
	#adobe a {
		color: yellow;
	}
	#code a {
		color: yellow;
	}
	
	#blank {
			display: none;
	}
    .icon {
        margin: 0;
        width: 15vw;
        height: auto;
    }
    fieldset input {
        font-size: inherit;
        width: auto;
    }
    fieldset textarea {
        font-size: inherit;
        width: auto;
    }	footer {
		display: none;
	}
	
}
