/*PADDING NOTES padding = top right bottom left (NO COMMAS IN BTW) */
*{
    margin: auto;
    text-align: unset;
}
.open-sans-mainText{
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-align: unset;
}

body{
    max-width: 100%;
    overflow-x: hidden;
    background-color: #FBF6F3;
}
/*REGULAR/GENERAL LINKS*/
ul {
    list-style-type: none;
    margin-left: -40px;
}
a{
    text-align: none;
    color: #422212;
    text-decoration: none;
}
a:hover{
    color: #4db6eb;
}

/* STYLE NAV BAR */
div#Nav1{
    position: sticky;
    background-color: white;
    max-width: 100%;
    height: 50px;
}
a#nav:hover{
    color: #8b4f2e;
    text-decoration: underline;
}
a#nav{
    font-size: 16px;
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-align: unset;
}

ul.Home{
    list-style-type: none;
    padding-top: .3%;
    padding-bottom: 1%;
    display: flex;
    padding-left: 20%;
    padding-right: 10%;
    margin-top: 0 none;
}
li.home{
    font-size: 13px;
    display: inline;
    padding-left: 2%;
    padding-right: 2%;
    font-weight: 400;
}

.topLogo{ /* LOGO FOR NAVBAR */
    height: 40px;
    max-width: 120px;
}
/*NAV BUTTON*/
ul.HomeBtn{
    list-style-type: none;
    padding-right:  .3%;
    padding-bottom: .3%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5em;
    padding-right: 30%;
}
li.homeBtn{
    font-size: 13px;
    white-space: nowrap;
}

button#Login{
    height: 2em;
    text-align: center;
    border-radius: 12px;
    background-color: #422212;
    color: white;
    padding: 3%;
    width: 9em;
    font-size: 12px;
    font-weight: 550;
}

button#Signup{
    height: 2em;
    text-align: center;
    border-radius: 12px;
    background-color: #422212;
    color: white;
    padding: 3%;
    width: 9em;
    font-size: 13px;
    font-weight: 550;
}
/*DROP DOWN FOR NAV*/
.dropdown{
    margin-top: 1rem;
    padding: 1%;
    background-attachment: fixed;
    position: absolute;
    z-index: 2;
    display: none;
    background-color: #ecebeb;
    width: 130px;
    height: 170px;
    text-align: left;
    font-size: 13px;
}

.dropDown:hover .dropdown{
    display: block;
    float: right;
}

/*STYLE FIRST DIV*/
div#top{
    background-color: white;
    margin-left: 16%;
    margin-right: 16%;
    max-width: 100%;
    margin-top: 2%;
    padding: 2% 1% 2% 1%;
}
div#top h1{
    font-size: 38px;
    font-family: "DM Serif Display", serif;
    font-weight: 500;
    font-style: normal;
    color: #422212;
}
div#top p{
    margin-top: 3%;
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
}
div#top a{
    text-decoration: underline;
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    text-align: unset;
    font-size: 14px;
}
/* FILTERS */
section#filters{
    display: flex;
    gap: 12px;
    margin: 2% 16% 0 16%;
}
section#filters input,
section#filters select{
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #422212;
    background-color: white;
    border: 1px solid #d9cfc8;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
}
section#filters input{
    flex: 1;
}

/* LIST + CARDS */
section#collegeList{
    margin: 2% 16%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
article.collegeCard{
    display: flex;
    gap: 24px;
    background-color: white;
    padding: 20px;
    margin: 0;
}
img.collegePhoto{
    width: 40%;
    max-width: 380px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    flex-shrink: 0;
}
div.collegeInfo{
    flex: 1;
    margin: 0;
    font-family: "Open Sans", sans-serif;
    color: #422212;
}
div.collegeInfo *{
    margin: 0;
}
h2.collegeName{
    font-family: "DM Serif Display", serif;
    font-weight: 500;
    font-size: 26px;
}
h2.collegeName a{
    color: #422212;
}
h2.collegeName a:hover{
    color: #4db6eb;
    text-decoration: underline;
}
p.collegeLocation{
    font-size: 14px;
    margin-top: 2px;
    opacity: .75;
}
p.collegeStat{
    font-size: 14px;
    margin-top: 8px;
}
span.statLabel{
    font-weight: 700;
}
div.collegeTags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
span.collegeTag{
    font-size: 12px;
    font-weight: 600;
    background-color: #FBF6F3;
    border: 1px solid #e6d9d0;
    border-radius: 999px;
    padding: 4px 10px;
}
p.collegeDescription{
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
}
p#collegeMessage{
    text-align: center;
    font-family: "Open Sans", sans-serif;
    color: #422212;
}
div.collegeStats{
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 40px;
}
.collegeCard {
    scroll-margin-top: 100px; /* keeps the card from hiding under a sticky nav */
}
.collegeCard.highlight {
    outline: 3px solid #f0b429;
    transition: outline-color 0.3s;
}

/* POP UP */
.popup {
    position: fixed;
    bottom: 100px;
    right: 100px;
    display: inline-block;
    cursor: pointer;
}
.popup .popuptext {
    visibility: hidden;
    width: 180px;
    background-color: #302417;
    color: #F7F2EE;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
    font-size: 16px;
}
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}
a.beige {
    text-align: none;
    color: #F7F2EE;
    text-decoration: none;
}
a.beige:hover {
    color: #D9C4B0;
}

@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* MOBILE */
@media (max-width: 700px){
    section#filters,
    section#collegeList{
        margin-left: 5%;
        margin-right: 5%;
    }
    section#filters{ flex-direction: column; }
    article.collegeCard{ flex-direction: column; }
    img.collegePhoto{ width: 100%; max-width: none; }
    div.collegeStats{ grid-template-columns: 1fr; }
}