@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Special+Gothic+Expanded+One&display=swap');

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

/* END Css Reset */

:root {
    --light: #e3ebf8;
    --dark: #0a1220;
    --primary: #4487f2;
    --secondary: #52565c;
}

* {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: var(--dark);
}

h1, h2, h3 {
  font-family: "Special Gothic Expanded One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1 {
    text-align: center;
    font-size: 1.6rem;
    margin: 16px 0;
}

h3 {
    font-size: 1.2rem;
}

body {
    background: #fff;
    margin: 32px 16px;
    font-size: 16px;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: var(--light);
    border-radius: 16px;
    padding: 16px;

    box-shadow: 10px 10px 0px -123px rgba(56,62,75,0.25);
    -webkit-box-shadow: 10px 10px 0px -123px rgba(56,62,75,0.25);
    -moz-box-shadow: 10px 10px 0px -123px rgba(56,62,75,0.25);
}

.history-card {
    padding-bottom: 8px;
}

.w-md {
    flex-basis: 16rem;
}

.card:first-child {
    flex: 1;
}

.center {
    margin-top: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

input {
    padding: 5px 10px;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px;
    outline: 0;
    border: solid 1px var(--dark);
}

button {
    background: var(--dark);
    border: solid 2px #383e4b;
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--light);
    cursor: pointer;
    font-size: .9rem;
    transition: background 150ms;
}

button:is(:hover, :focus) {
    background: #292d33;
}

.history-container {
    display: flex;
    flex-direction: column;
    margin: 8px 0;
    gap: 8px;
}

.history-entry {
    background: #f8faff;
    padding: 8px;
    border-radius: 8px;
}

.history-entry .number {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 1.1rem;
}

.history-entry .guesses {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-entry .guess {
    background-color: var(--dark);
    color: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
}