* {
    /* outline: solid blue 1px; */
    font-family:Arial, Helvetica, sans-serif ;
}

body {
    margin: 0;
}

h4 {
    margin: 0;
}

p {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.info-bar h3 {
    height: 0;
}

h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.main-title {
    padding-left: 1rem;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    transform: scale(1.2);
    transition: 0.1s;
}

.logo {
    color: white;
    padding-left: 1rem;
    padding-top: 1rem;
    font-size: x-large;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: auto 1fr;
    height: 100vh;
    
}

/* Side Bar */

.sidebar {
    display: flex;
    flex-direction: column;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background-color: #20A4F3;
}

.sidebar > nav {
    margin-top: 2rem;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1.5rem;
}

.btn-set-1 {
    padding-top: 2rem;
}

.btn-set-2 {
    padding-top: 2rem;
}

/* main wraps everything EXCLUDING the sidebar */

.main {
    grid-column: 2 / -1;
    grid-row: 1;
    display: grid;
    /* height based on tob bar content size, 1fr tells everything else to use up the remaining space*/
    grid-template-rows: auto 1fr;
    height: 100%;
}

/* Top search Bar */

.top-bar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative; 
    box-shadow: 0 3px 4px rgba(0,0,0,.2);
}

.profile-pic {
    height: 3rem;
    width: 3rem;
}

.right-side {
    display: flex;
    align-items: center;
}

.name-icon {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: bold;
    
}

.name-icon .profile-pic {
    height: 2rem;
    width: 2rem;
}

.icon-bell {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    color: black
}

.icon-bell:hover {
    transform: scale(1.2);
    transition: 0.1s;
}

input[type="search"] {
    border-radius: 15px;
    height: 1.7rem;
    width: 65%;
    background-color: #f0f0f0;
    border: none;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar button {
    border: none;
    background: none;
    font-size: 1.2rem;
}

.user-info {
    grid-column: 1;
    grid-row: 2;
    display: flex;
}

.greeting {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    padding-left: 1rem;
}

strong {
    font-size: 1.2rem;
}

.btns-right {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btns-right > button {
    background-color: #20A4F3;
    border-radius: 15px;
    border-style: none;
    padding: 0.4rem;
    color: white;
    width: 5rem;
    height: 2.0rem;
    font-weight: bold;
    
}

.btns-right > button:hover {
    transform: scale(1.1);
    transition: 0.1s;
}

/* main-content wraps the PROJECT grid and the project tiles */

.main-content {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    grid-template-rows: 3rem 1fr;
    background-color: #f0f0f0;
    padding-top: 0.7rem;
}

.projects {
    grid-row: 2;
}

.project-grid {
    max-width: 100%;
    justify-content: start;
    display: grid;
    grid-template-columns: repeat(2, minmax(175px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.project-card {
    background: white;
    border-radius: 3px;
    padding: clamp(0.5rem, 1vw, 1rem);
    height: 85%;
    border-left: 0.4rem solid #FFC759;
    box-shadow: 0 3px 4px rgba(0,0,0,.2);
}

.project-icons {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.project-icons > button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    color: gray;
}

.project-icons > button:hover {
    transform: scale(1.2);
    transition: 0.1s;
}


/* announcements and trending aside */

.info-bar {
    display: grid;
    align-content: start;       
    grid-auto-rows: max-content;
    row-gap: 2rem;            
}

.info-bar > section {
    font-size: clamp(0.2rem, 0.7rem, 1rem);
    padding: 1rem;
}

.announcements {
    display: flex;
    flex-direction: column;
    width: 12rem;
    align-self: flex-start;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 4px rgba(0,0,0,.2);

}

.trending {
    display: flex; 
    flex-direction: column;
    width: 12rem;
    align-self: flex-start;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 4px rgba(0,0,0,.2);
}

.avatar {
    width: 3rem;
    height: 3rem;
}

.trending-user {
    display: flex;
    align-items: center;
    gap: 2px;
    align-self: flex-start;
}


/* mobile breakpoint */

@media (max-width: 800px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}