body{
	background-color: #ffffff;
}
  .space {
    margin-top: 10px; /* Adjust the value to control the amount of space */
  }
    .space2 {
    margin-top: 20px; /* Adjust the value to control the amount of space */
  }
  .space3{
      margin-bottom:5px;
  }
  #selectionMenu{
      display:flex;
      height:auto;
      margin-top:20px;
  }
.conditions, .medications {
    flex:1;
    display: flex;
    flex-direction: column;
    background-color:#2b4162;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0,0), rgba(0, 0, 0,0.25));
    border: 1px solid white;
}
.conditions h3, .medications h3{
    margin: auto;
    padding:5px 0;
    color:white;
    font-size:20px;
}

.health_conditions, .add_medications {
    background-color: #F5F7FA;
    flex-grow: 1;
    /*overflow: auto;*/
    padding: 10px 20px;
    column-count:2;
    height:auto;
    border: 1px solid white;
}

.accordion,
.panel {
    break-inside: avoid; /* Prevents splitting inside columns */
}

.add_medications .panel{
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding-bottom:0;
}

.add_medications{
    /*column-fill: auto;*/
}
.labelDropdown{
    margin-left:5px;
    margin-bottom:8px;
    font-weight:400;
    font-size:14px;
}
.dropdown{
    display:none;
}
  .variable-container {
    display: flex;
    justify-content: center;
	margin-left: 15%;
    flex-direction: column; /* Stack items vertically */
}
	.variable-box:hover {
		opacity: 0.8;
	}
	.variable-box{
		background-image: linear-gradient(to bottom, rgba(0, 0, 0,0), rgba(0, 0, 0,0.25));
	}
	.explanationBox{
		margin-left:20%;
	}
	#explanationBox{
		margin-left:50%;
		display: inline-block;
		background-color: #f333ff;
	}
.selection-header{
    display: flex;
    flex-direction: column;
}

.selection-header h3{
    text-align: center;
    padding-top: 0;
    margin-top: -15px;
}

.fa.fa-question-circle{
    padding: 5px;
    padding-bottom: 0;
    color:white;
    z-index: 9999;
}

.fa.fa-question-circle:hover{
    color:#F5F7FA;
}
	
#footer{
  z-index: 9998;
}
#sort{
display: none;
background-color: #2b4162;
/*border-top: 2px solid #2b4162;
border-bottom: 2px solid #2b4162;*/
flex-direction:row;
font-size:14px;
font-weight:700;
color:white;
padding: 5px 0;
padding-left: 5px;
margin-bottom:5px;
}
#classSort, #conditionSort, #ratingSort{
color:black;
}
.sortButton{
    background-color:#EEEEEE;
    color:black;
    font-weight:700;
    padding:5px;
    margin: 5px 2px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0,0), rgba(0, 0, 0,0.25));
}
.sortButton:hover{
    opacity: 0.9;
    background-color:#2b4162;
    color:white;
}
#all{
    background-color:#2b4162;
    color:white;
}
#results{
display: none;
}
#variableDisplay{
	overflow-y: auto;
	flex: 1;
}
#explanationDisplay{
	display: flex;
	flex: 3;
	padding: 10px;
	overflow-y: auto;
	position: relative;
	flex-direction:column;
}
#exportDisplay{
    position: absolute;
    bottom: 0;
    height: 20%;
    width: 98%;
    display: flex;
    justify-content: center;
    align-items: center;
}
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}
#warnings-benefits, #dosing-text, #interaction-text{
    margin-bottom:10px;
}
#dosing-text{
    font-weight:700;
}

#content{
    width:75%;
}

#drugName{
    font-size:24px;
    font-weight:bold;
}

.explanation-header{
    font-size:16px;
    font-weight:bold;
    margin-bottom:4px;
}

#dosing-header{
    margin-bottom:0;
    margin-top:5px;
}

#legend-table tr, td, tbody{
  border: 1px solid black;
  border-collapse: collapse;
  padding:5px;
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin-left:10px;
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin-bottom:3px;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.button a{
    color:white;
    text-decoration: none;
}
.sort-header{
    padding: 0 8px;
}
#filter-row, #filters{
    display:flex; 
    flex-direction:row;
}
#id04 .container{
    width:100%;
}

#id04 label{
    font-size:14px;
}

#id04 .container{
    margin:0;
}

#referenceText li{
    font-size: 14px;
}

#referenceText{
    padding: 10px;
    width: 95%;
}

#referenceText h3{
    margin-top: 0;
    margin-bottom: 0;
}

.referenceLink{
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    #content{
        width:95%
    }
    #filters{
        flex-direction:column;
    }
    .sort-header{
        padding: 0 5px 5px 10px;
    }
    #referenceText{
        text-align: left;
    }
}

@media screen and (max-width: 498px){
    #content .container{
        width:95%;
    }
    #selectionMenu, #results{
        flex-direction:column;
    }
    .health_conditions, .add_medications{
        column-count: 1;
        overflow:auto;
    }
    #variableDisplay{
	overflow-y: auto;
	flex: 3;
    }
    span{
        display:block;
    }
    #referenceText{
        text-align: left;
    }
    #referenceText ul {
        padding: 5px;
        margin-bottom: 0;
    }
}