/*
* Stylesheet for the Lnux Lab Website
* 
* Colors:
* Dark beige: #BDB8AD
* Light beige: #EBE7E0
* Light blue: #C6D4E1
* Dark blue: #44749D
*/

/*
GLOBAL PROPERTIES
***************************************************/
html {
    font-size: 62.5%; /* Setting default to 10px */
    scroll-behavior: smooth;
}
html, body {
    height: 100%;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0; /* To make content span all the way across */
    font-family: ‘Tahoma’, ‘Verdana’, ‘Arial’, sans-serif;
    font-size: 1.5rem; /* Equal to 15px */
    background: #EBE7E0;
    overflow-y: scroll; /* Show scrollbars always */
}
h1, h2, h3 {
    font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'sans-serif';
    margin: 0;
    font-weight: 500;
}
h1 {
    font-size: 3rem;
    line-height: 2;
}
h2 {
    font-size: 2.5rem;
    line-height: 1.4;
}
h3 {
    font-weight: 400;
    line-height: 1.5;
}
/* Just make the li line space larger*/
li {
    line-height: 1.5em;
}
.code {
    line-height: 1.2em;
    font-family: 'Courier New', 'Courier', 'monospace';
}
/* Header image for all but homepage */
/* For big screens */
@media screen and (min-width: 875px){
    .content-page main::before {
        background: url(images/motherboard-1600.jpg) center;
        background-size: cover;
        content: "";
        display: block;
        height: 375px;
        padding-top: 50px;
        position: relative;
        margin-bottom: 10px;
    }
}
/* For little screens */
@media screen and (max-width: 874px) {
    .content-page main::before {
        background: url(images/motherboard-650.jpg) center;
        background-size: cover;
        content: "";
        display: block;
        height: 270px;
        padding-top: 50px;
        position: relative;
        margin-bottom: 10px;
    }
}

/*
LANDING PAGE STYLE
************************************/
.Home {
    background: url(images/motherboard-1600.jpg) no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    flex-direction: column;
}
/* If big enough, use grid with 3 column to display content*/
@media screen and (min-width: 860px) {
    .start-options {
        margin: 50px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}
/* If not too big and not too small, do grid with 2 columns */
@media screen and (max-width: 859px){
    .start-options {
        margin: 50px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
/* If too small, do flex */
@media screen and (max-width:590px) {
    .start-options {
        display: flex;
        flex-direction: column;
    }
}
.block {
    background: rgb(255 255 255 / 0.9);
    padding: 30px;
    border: 3px solid #BDB8AD;
    text-align: center;
}
.block ul {
    text-align: left;
}
.btn {
    background: #C6D4E1;
    color: #44749D;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 7px;
    letter-spacing: .1em;
    line-height: 1;
    border-radius: 4px;
    margin: auto;
}
.welcome {
    margin: auto;
    padding: 10px;
    background: rgb(255 255 255 / 0.9);
    text-align: center;
    width: 50%;
    border: 3px solid #BDB8AD;
}
.homepage-content {
    margin: 80px 0;
}
/*
TOPICS BAR
*****************************/
.sidebar a {
    padding: 10px 15px;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 18px;
    color: rgb(55, 55, 55);
    display: block;
}
.sidebar a:hover {
    color: #BDB8AD;
}

/*
TEXT SECTIONS + TOPICS BAR
*****************************************/
@media screen and (min-width: 770px){
    .text-content {
        margin-bottom: 40px;
        margin-left: 100px;
        margin-right: 100px;
    }
    #the-content {
        margin-right: 220px;
    }
    .topics {
        top: 65px;
        position: sticky; /* Stay in place */
    }
    .sidebar {
        overflow-x: hidden; /* Disable horizontal scroll */
        width: 200px;
        border-left: dashed #BDB8AD;
        float: right;
    }
    #toggle-topics {
        display: none;
    }
}
@media screen and (max-width: 769px){
    .text-content {
        margin-bottom: 40px;
        margin-left: 50px;
        margin-right: 50px;
    }
    .topics {
        margin: auto;
        top: 10px;
        position: sticky;
        width: 100px;
    }
    #toggle-topics {
        display: block;
        margin: auto;
    }
    .dropdown {
        position: relative;
        display: inline-block;
    }
    #index-menu{
        display: none;
    }
    .sidebar {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        flex-direction: column;
        background: #C6D4E1;
        width: 150px;
        border: 2px solid black;
    }
    .sidebar a:hover, .sidebar a:focus {
        background: #44749D;
    }
    .button-container {
        flex-direction: column;
    }
}
.text-content h1 {
    border-bottom: 2px dashed #BDB8AD;
}
.text-block {
    margin: 30px 20px;
}
.text-block h2 {
    border-bottom: 2px dashed #BDB8AD;
}

/*
SEARCH BAR
*********************************************/
.search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 98%;
    display: flex;
    justify-content: space-between;
    padding: 0 1%;
    background: #C6D4E1;
    font-family: 'Trebuchet MS', 'Helvetica', 'Arial', 'sans-serif';
}
.search img {
    width: 50px;
    padding: 5px;
    margin-right: 10px;
    border: 0;
}
.img-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.img-link span {
    margin: auto;
    font-weight: 500;
    color: black;
}
.search-bar {
    list-style-type: none; /* Removes default bullet style */
    padding: 0; /* Remove default padding style */
    margin-right: 10px;
}
.search-items a {
    text-decoration: none;
    color: black;
}
.search-bar li {
    display: inline-block; /* Display list items side by side */
    margin-left: 10px;
}
.search-items a:hover {
    text-decoration: underline;
}
.right-side {
    display: inline-flex;
}
.menu-btn {
    font-size: 24px;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
    margin: auto;
    display: none; /* Hidden by default */
}

@media screen and (max-width: 875px){
    .search {
        position: absolute;
    }
    .menu-btn {
        display: block; /* Show menu button */
        padding-top: 10px;
        float: right;
    }
    .search-items {
        display: none;
        flex-direction: column;
        float: right;
        padding: 10px 20px;
        width: 150px;
        position: sticky;
        top: 50px;
    }
    .search-items.visible {
        display: flex; /* Show dropdown when button is clicked */
    }
    .search-items li {
        display: block;
    }
    .topics {
        top: 15px;
        position: sticky; /* Stay in place */
    }
}

/*
COLLAPSABLE CONTENT
*******************************/
#root {
    background-color: #758BB7;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 95%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 20px;
}
.collapsible {
    background-color: #93B9C9;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 95%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.5rem;
}
.active, #root:hover {
    background-color: #8790A9;
}
.active, .collapsible:hover {
    background-color: #A8BABD;
}
.collapsible:after {
    content: '\002B';
    color: white;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}
.active:after {
    content: "\2212";
}
.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    background-color: #f1f1f1;
    width: 95%;
}
.wrapper {
    margin: 10px;
    padding-bottom: 10px;
}
.collapse-top {
    margin-top: 20px;
}

/*
ABOUT PAGE BUTTONS 
********************************/
.button-container {
    display: flex;
    justify-content: space-between;
}
.btn-with-list {
    position: relative;
}
.toggle-btn {
    background: #BDB8AD;
    color: black;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.dropdown-list {
    display: none;
}

/*
CALENDAR 
************************/
iframe {
    border: 0; 
    width:100%; 
    height: 500px; 
    overflow: auto;
}
