* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-size: 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --theme-color: hsl(39, 100%, 50%);
    --theme-text-color: white;
    --theme-dark-color: hsl(39, 70%, 20%);

}

html, body {
    height: 100%;
    width: 100%;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.overflow {
    overflow-y: scroll;
}

.overflow::-webkit-scrollbar {
    display: none;
}
/* 
.grid > * {
    border: 2px dashed rgb(48, 255, 16);
}

.flex > * {
    border: 2px dotted rgb(255, 8, 255);
} */


li {
    list-style: none;
}

.big {
    font-size: 1.5rem;
}

.stretch {
    height: 100%;
    align-items: center;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs {
    margin: 0px auto;
}

.profile-pic {
    background-color: #aaa;
    height: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.container {
    height: 100%;
    width: 100%;
    grid-template-columns: 300px 4fr;
    grid-template-rows: 250px 4fr;
    grid-template-areas: 
    "sidebar header"
    "sidebar .";

}

.sidebar {
    z-index: 1;
    background-color: var(--theme-color);
    color: var(--theme-text-color);
    padding: 2rem;
    grid-area: sidebar;
    flex-direction: column;
    gap: 5rem;
}

.sidebar > div {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.sidebar .icon {
    width: 2rem;
    height: 2rem;       
}

.sidebar .icon > i {
    color: var(--theme-text-color);
    font-size: 2rem;
}

.navigation .icon,
.preferences .icon {
    width: 1.5rem;
}

.navigation .icon > i,
.preferences .icon > i {
    font-size: 1.5rem;
}

.navigation,
.preferences {
    margin-left: 1rem;
    flex-direction: column;
}

.navigation li,
.preferences li {
    padding: 1rem;
    align-items: stretch;
    gap: 1.5rem;
    position: relative;
}

.navigation li *,
.preferences li * {
    display: flex;
    align-content: center;
    align-self: center;
}

.navigation a,
.preferences a {
    font-size: 1.5rem;
    color: var(--theme-text-color);
    text-decoration: none;
    font-weight: bold;
}

.navigation a::after,
.preferences a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.sidebar h1 {
    font-size: 2rem;
}

header {
    z-index: 0;
    grid-template-rows: 2fr 3fr;
    grid-template-columns: 1fr;
    grid-area: header;
    box-shadow: 0px 5px 5px 0px #aaa;
}

.top-header {
    grid-column: 1;
    grid-row: 1;    
    padding: 2rem;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

search {
    height: 100%;
    align-items: center;
    flex: 0 1 auto;
}

search form {
    height: 100%;
    flex: 0 1 auto;
    align-items: center;
    gap: 1rem;
}

search form > * {
    height: 100%;
}

search input {
    height: 80%;
    background-color: #dde3ed;
    border: none;
    border-radius: 2rem;
    padding: 1rem;
    width: calc(2rem + 64ch);
    flex: 0 1 auto;
}

.top-header h3 {
    position: relative;
    padding: 1rem;
}

.top-header h3 > a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 1rem;
}

.top-header h3 > a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.bottom-header {
    padding: 2rem;
    align-items: center;
    gap: 2rem;
}

.splash {
    flex-direction: column;
    align-items: flex-start;
}

.bottom-header ul {
    gap: 2rem;
}

.bottom-header button {
    font-weight: bold;
    height: 3rem;
    width: 12ch;
    border-radius: 1.5rem;
    border: hidden;
    background-color: var(--theme-color);
    color: var(--theme-text-color);
}


.icon {
    cursor: pointer;
    background-color: #0000;
    border: none;
    aspect-ratio: 1 / 1;
}

main {
    padding: 3rem;
    grid-template-areas: 
    ". announcements"
    ". trending";
    grid-template-columns: 5fr 2fr;
    grid-template-rows: minmax(50%, 400px) 400px;
    background-color: #dde3ed;
    gap: 3rem;
}

.card-container {
    grid-row: span 2;
    flex-direction: column;
    gap: 2rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: repeat(3, minmax(200px, 1fr));
    grid-auto-rows: minmax(200px, 1fr);
    gap: 2rem;
    flex: 1;
}

.card {
    flex: 1;
    height: 100%;
    flex-direction: column;
    font-size: 1rem;
    position: relative;
    border-radius: 0.5rem;
    border: hidden;
    border-left: 0.5rem solid var(--theme-color);
    align-self: center;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0px 0px 5px 0px #aaa;
}

.card > a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: black;
}

.card > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 5rem;
}

.card > p {
    margin-top: 1rem;
    max-inline-size: 90%;
}

.card > .buttons {
    margin-top: auto;
    justify-content: end;
    gap: 2rem;
}

.buttons .icon {
    width: 2rem;
    height: 2rem;
}

.buttons .icon > i {
    padding: 1rem;
    font-size: 2rem;
    color: #999;
}

.buttons .icon > i:hover {
    color: var(--theme-dark-color);
}

.announcements {
    grid-area: announcements;
    flex-direction: column;
    gap: 2rem;
}

.announcements > ul {
    border-left: 0.5rem solid var(--theme-color);
    flex-direction: column;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0px 0px 5px 0px #aaa;
    padding: 2rem;
    scrollbar-width: 4px;
    scroll-padding: 2rem;
    flex: 1;
}

.announcement {
    position: relative;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    gap: 1rem;
}

.announcement:not(:last-child) {
    border-bottom: 2px solid #ccc;
}

.announcement > a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: black;
}

.announcement > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.trending {
    grid-area: trending;
    flex-direction: column;
    gap: 2rem;
}


.trending > ul {
    flex-direction: column;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0px 0px 5px 0px #aaa;
    scrollbar-width: 4px;
    scroll-padding: 2rem;
}

.trending li {
    height: 4rem;
    box-sizing: content-box;
    position: relative;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
}

.trending li:not(:last-child) {
    border-bottom: 2px solid #ccc;
}

.trending li>a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.trending li>a::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
