@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Outfit:wght@400;700&display=swap');

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:root {
    --text: hsl(108, 22%, 5%);
    --background: hsl(110, 38%, 88%);
    --primary: hsl(262, 30%, 56%);
    --secondary: hsl(110, 42%, 74%);
    --accent: hsl(263, 34%, 74%);
    --opp-text: hsl(360, 0%, 91%, 1);
    --opp-subtext: hsl(360, 0%, 84%, 1);

    --base-font: 'Inter', sans-serif;
    --heading-font: 'Outfit', sans-serif;
}

h1 {
    font-family: var(--heading-font);
}

h2, h3 {
    font-family: var(--base-font);
    font-weight: 700;
}


p, a, div, span {
    font-family: var(--base-font);
}

body {
    margin: 0;
    font-family: system-ui;
    background-color: var(--background);
}

.top-nav {
    background-color: var(--secondary);
}

main {
    margin: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-height: 90vh;
    
}

.user-information {
    flex-basis: 200px;
    flex-grow: 1;
    display: grid;
    gap: 1rem;
}

.info-and-events {
    flex: 1;
}

.intro h1 {
    padding: 0;
    margin: 0;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px
}

#logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: gray;
}

.top-nav h3 {
    margin: 0;
    padding: 0;
}

.sign-in {
    display: flex;
    gap: 1rem;
}

#profile-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 20px;    
}

.intro h1 {
    font-size: 4rem;
    padding: 4rem 0rem 0rem ;
}

.intro h3 {
    font-size: 2rem;
}

.guide-outer-container {
    display: flex;
    gap: 1rem;
}

.guide-container {
    border-radius: 1rem 0rem 0rem 1rem;
    background-color: var(--primary);
    padding: 1rem;
    color: var(--opp-text);
    text-decoration: none;
}

.guide-container p {
    color: var(--opp-subtext);
}

.guide-outer-container img {
    border-radius: 0rem 1rem 1rem 0rem;
    width: 300px;
    height: auto;
}


.psa-container {
    background-color: var(--secondary);
    padding: 1rem;
    border-radius: 1rem;
    height: auto;
    min-height: 400px;
    border: 2px solid var(--text);
    display: grid;
    justify-content: space-between;
}

.chat-input {
    display: flex;   
}

.chat-input input {
    flex: 1
}

.text-bubble-left, .text-bubble-right {
    padding: 0.5rem;
}

.text-bubble-left {
    background-color: var(--accent);
    border-radius: 0.5rem;
}

.text-bubble-right {
    text-align: right;
}

.stats {
    display: flex;
    gap: 1rem;
}

.stats img {
    border-radius: 1rem;
    width: 300px;
}

.events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.event {
    background-color: var(--secondary);
    padding: 1rem;
    border-radius: 1rem;
    color: var(--text);
}


.articles{
    display: grid;
    gap: 0.5rem;
}

.article {
    border-radius: 1rem;
    background-color: var(--primary);
    padding: 0.5rem 1rem;
    color: var(--opp-text);
}

.article p {
    color: var(--opp-subtext);
}

.game-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    border-radius: 1rem;
}