* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    line-height: 32px;   /* within paragraph */
    margin-bottom: 30px; /* between paragraphs */
}

/* :root {
    --blue: #1e90ff;
    --white: #ffffff;
} */

html, body {
    height: 100%; /* Ensure body and html take full height */
    width: 100%;  /* Ensure body and html take full width */
    overflow: hidden;
}

body {
    margin-top: 80px; /* Give space for the banner */
    /* font-family: Arial, sans-serif; */
    font-family: 'Aptos';
    /* font-size: xx-large; */
    height: calc(100vh - 80px); /* Full height minus banner */
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

.banner {
    /* background:url('../images/banner_logo.png'); */
    background-repeat: no-repeat;
    height: auto;
    padding: 20px; /* Padding around text */
    position: fixed; /* Fixed at the top of the screen */
    width: 100%; /* Full width */
    max-width: 400px;
    top: 0; /* At the top */
    left: 60px;
    flex-shrink: 0; /* Prevent shrinking */
    z-index: 1;
}

.banner.collapsed {
    /* background:url('../images/banner_logo.png'); */
    background-repeat: no-repeat;
    height: auto;
    position: fixed; /* Fixed at the top of the screen */
    width: 100%; /* Full width */
    max-width: 400px;
    top: 0; /* At the top */
    left: 400px;
    flex-shrink: 0; /* Prevent shrinking */
    z-index: 1;
}

.footer {
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    margin-bottom: 10px;
    left: 60px;
    width: calc(100vw - 60px);
    z-index: 1;
    background-color: white;
}

.footer.collapsed {
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    margin-bottom: 10px;
    left: 60px;
    width: calc(100vw - 60px);
    z-index: 1;
}

.wrapper {
    display: flex;
    height: 100%;
    width: 100%;
}

.sidebar {
    height: calc(100vh - 100px - 80px); /* Full height minus banner */
    overflow-y: auto;
    width: 400px;
    background-color: #333;
    color: white;
    position: fixed;
    left: 0;
    top: 80px;
    transition: width 0.3s;
    font-size: x-large;
    margin-top: 20px;
}

.sidebar .menu {
    list-style-type: none;
    padding: 20px 0;
}

.sidebar .menu li {
    padding: 10px 20px;
}

.sidebar .menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar .toggle-btn {
    background: none;
    color: white;
    font-size: 30px;
    border: none;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.sidebar .toggle-btn2 {
    background: none;
    color: white;
    font-size: 30px;
    border: none;
    position: absolute;
    top: 20px;
    left: 50px;
    cursor: pointer;
}

.subscibe {
    display:block;
    max-width: 100px;
}

.subscibe.hidden {
    display:none;
    max-width: 100px;
}

/* .subscibe.collapsed {
    display: none;
}

.subscibe.collapsed.hidden {
    display: none;
} */

.form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
}

.form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

.form-container input[type=text], .form-container input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

.form-container input[type=text]:focus, .form-container input[type=password]:focus {
    background-color: #ddd;
    outline: none;
}

.form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
}

.form-container .cancel {
    background-color: red;
}

.right-content {
    height: calc(100vh - 80px); /* Full height minus banner */
    /* overflow-y: auto; */
    margin-left: 60px;
    padding: 20px;
    width: calc(100% - 60px);
    transition: margin-left 0.3s;
    display: flex;
    flex-direction: column;
}

.right-content.collapsed {
    height: calc(100vh - 80px); /* Full height minus banner */
    /* overflow-y: auto; */
    margin-left: 400px;
    padding: 20px;
    width: calc(100% - 400px);
    transition: margin-left 0.3s;
    display: flex;
    flex-direction: column
}

.articleContainer {
    overflow-y: auto;
    height: calc(100% - 60px);
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .menu {
    display: none;
}

.sidebar.collapsed .right-content {
    margin-left: 60px;
}

.menu-btn {
    background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.menu-btn.selected {
    background: none;
	color: #D94613;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.article {
    display: none;
    margin: 50px;
}

.article.visible {
    display: block;
    margin: 50px;
    overflow-y: auto;
}

.bottom-nav {
    display: flex;
    justify-content: space-between;
    margin: 10px;
    padding: 20px;
    font-size: 30px;
    height: 60px;
    /* color: blue; */
}

.voteUp {
    fill: none;
}

.voteUp.activated {
    fill: green !important;
}

.voteDown {
    fill: none;
}

.voteDown.activated {
    fill: red !important;
}

@media only screen and (max-width: 1024px) {
    /* For mobile phones: */
    [class*="banner"] {
        left: 60px !important;
    }
    [class*="banner collapsed"] {
        left: 60px !important;
    }
    /* [class*="footer"] {
      left: 0px !important;
      width: calc(100vw - 60px) !important;
    }
    [class*="footer collapsed"] {
      left: 0px !important;
      width: calc(100vw - 60px) !important;
    } */
    [class*="sidebar"] {
      width: 390px;
    }
    [class*="sidebar collapsed"] {
      width: 60px;
    }
    [class*="right-content"] {
        width: 100%;
    }
    [class*="right-content collapsed"] {
      /* display: none !important; */
      width: calc(100% - 300px - 30px) !important;
    }
}

@media only screen and (max-width: 600px) {
    /* For mobile phones: */
    [class*="banner"] {
        left: 0px !important;
        padding: 0px;
    }
    [class*="banner collapsed"] {
        left: 0px !important;
        padding: 0px;
    }
    /* [class*="footer"] {
      width: 100%;
    }
    [class*="footer collapsed"] {
      width: 90%;
    } */
    [class*="sidebar"] {
      width: 390px;
      height: calc(100vh - 100px - 80px - 100px) !important;
    }
    [class*="sidebar collapsed"] {
      width: 60px;
      height: calc(100vh - 100px - 80px - 100px) !important;
    }
    [class*="right-content"] {
        width: 100%;
        /* height: calc(100vh - 100px - 80px - 100px) !important; */
    }
    [class*="right-content collapsed"] {
      display: none !important;
      /* height: calc(100vh - 100px - 80px - 100px) !important; */
      /* width: calc(100% - 300px - 30px) !important; */
    }
}