/*
CSS Stylesheet
ITWP 1150 Homepage
*/

:root {
    --beige: #f5f5dc;
    --warmbeige: #e8dcbf;
}

* {
    box-sizing: border-box;
    font-family: "Syne", sans-serif;
}

@font-face {
    font-family: "Syne";
    src: url(fonts/Syne.woff2);
}

body {
    height: 100vh;
    display: flex;
    margin: 0;
}

h1, h2, h3 {
    font-family: "Syne", sans-serif;
    font-weight: 600;
}

.sidebar {
    width: 25%;
    border-right: 2px solid black;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content:center;
    text-align: center;
    background-image: url(img/sidebar-bg.jpg);
    background-size:cover;
}

.side-content {
    background-color: var(--beige);
    padding: 10px;
    border-radius: 25px;
}

#side-head {
    line-height: 20px;
}

.side-head-title {
    font-weight: 700;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    background-color: var(--beige);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 175px;
    gap: 30px;
}

.module {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #c9bb9b;
    text-align: center;
    border-radius: 25px;
    line-height: 5px;
    background-color: var(--warmbeige);
}

.module:hover {
    background-color: #f1e7cf;
}

a:link {
    color: rgb(173, 116, 93);
}

a:visited {
    color: rgb(82, 121, 66);
}

a:hover {
    color: rgb(114, 114, 114);
}

a:active {
    color: rgb(145, 145, 145);
} 

@media (max-width: 768px) {
    body {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 2px solid black;
      padding: 20px;
    }
  
    .main-content {
      padding: 20px;
    }
  
    .grid {
      grid-template-columns: 1fr;
      grid-auto-rows: auto;
      gap: 20px;
    }
  }