@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    color: #463730;
	font-family: "Montserrat", "Arial", sans-serif;
    display: flex;
    min-height: 100vh;
}

h1 {
    text-align: center;
}

/* #9DB4AB */
/* #1F5673 */
/* #F1DEDE */
/* #463730 */

#headerContent {
    background-color: #1F5673;
    height: 110%;
    width: 200px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
}

#headerContent a, #headerContent summary {
    color: #fffcf2;
    text-decoration: none;
    border-bottom: 2px transparent solid;
    padding-bottom: 5px;
}


#headerContent a:hover {
    border-bottom: 2px #463730 solid;
}
#headContent summary:hover,details:hover {
    cursor: pointer;
}

.hActive {
    border-bottom: 2px #463730 solid !important;
}


#headerContent summary {
    margin-bottom: 5px;
}

#headerContent details::details-content {
    margin-left: 15px;
    /* border-left: 2px #463730 solid; */
    border-radius: 2px;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#pageContent {
    background-color: #fefefe;
    height: 100%;
    width: 100%;
    padding: 10px;
}


/* Search (Home Page) */
.search {
    width: 60%;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    gap: 5px;
}

#searchResults {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#search {
    padding: 5px;
    border-radius: 999px;
    background-color: #fffcf2;
    margin-bottom: 10px;
}

.search a {
    color: #1F5673;
    text-decoration: none;
    background-color: aliceblue;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.search a:hover {
    background-color: rgb(213, 224, 233);
}

/* Pages */

h2 .topicNo::after {
    content: " - ";
}

h2 .topicNo {
    color: #1F5673;
}


/* Quiz */
.hidden {
    animation: fadeOut 0.2s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}

#answers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 0px;
	grid-row-gap: 0px;
	gap: 0;

}

.answer {
	background-color: #34ebcc;
	border: 0.5px black solid;
	padding: 20px;
	margin: 5px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.5s, color 0.5s;
	text-align: center;
}

#quizQ {
    font-size: 20px;
}

.term {
    color: blue;
    font-weight: bold;
}