body{
    margin: 0px;

}

.background{
    
    background-image: url("midwood.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: 100vh;
}

.text1{
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    font-family: "Times New Roman", Times, serif;
    font-weight: normal;
    font-size: 1.5em;
    letter-spacing: 0.5px;
    text-align: center;
    box-sizing: border-box;
    padding-top: 15vh; 
}

.backgroundlogo, .backgroundredlogo{
    height: 250px;
    width: auto;
}

.backgroundlogo{
    display: block;     
}

.backgroundredlogo{
    display: none;       
}

.logo-link:hover .backgroundlogo{
    display: none;       
}

.logo-link:hover .backgroundredlogo{
    display: block;     
}


/* navigation bar */
.navbar{
    overflow: hidden;
    background-color: #1f4069;
    font-family: Cascadia Code;
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;  
    z-index: 9999; 
}

.dropdown{
    overflow: hidden;
}

.dropdown .dropbtn i, .dropdown .dropbtn svg{
    display: inline-block; 
    margin-left: 6px;     
    transition: transform 0.2s ease-in-out;
    z-index: 9999; 
}

.dropdown:hover .dropbtn i, .dropdown:hover .dropbtn svg{
    transform: rotate(180deg);
} 

nav{
    position: fixed !important;
    width: 100%;
    top: 0;
    z-index: 9999; 
}

main{
    margin-top: 40px;
}

/* first four things of nav bar*/
.navbar a{
    
    font-size: 16px;
    color: white; 
    text-align: center;
    padding: 20px 16px;
    text-decoration: none;
    font-family: inherit;
    position: relative;
}


/* dropdown itself */
.dropdown .dropbtn{
    font-size: 16px;
    border: none;
    outline: none; 
    color: white; 
    padding: 20px 16px; 
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
    text-align: center;
    position: relative;
    text-decoration: none;
}

/* when you hover on the dropdown buttons */
.navbar a:hover, .dropdown:hover .dropbtn {
    background-color: #691f22;
    text-decoration: none;
    text-decoration-color: white;
    text-underline-offset: 4px;
}

/*dropdown links */
.abtus-content, .aca-content, .stu-content, .staff-content{ 
    display: none;
    position: absolute;
    background-color: #1f4069;
    min-width: 160px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* class = look at class, $= means ends with, -content = all the stuff that has -content at the end*/
[class$="-content"] a{
    text-align: left;
    padding: 14px 16px;
    display: block;
}

/* when you hover on the dropdown links */
.abtus-content a:hover, .aca-content a:hover, .stu-content a:hover, .staff-content a:hover{ 
    background-color: #691f22;
    text-decoration: none;
    
}

/* MAKES THE DROPDOWN ACTUALLY WORK */
.dropdown:hover .abtus-content,.dropdown:hover  .aca-content,.dropdown:hover .stu-content, .dropdown:hover .staff-content{
    display:flex;
    flex-direction: column;
}

/* underline animations*/
.dropdown .dropbtn::after, .abtus-content a::after, .aca-content a::after, .stu-content a::after, .staff-content a::after{
    content: '';
    position: absolute;
    width: calc(100% - 32px);
    height: 2px; 
    bottom: 8px; 
    left: 16px;
    background-color: white; 
    transform: scaleX(0); /*Note to future self: figure out wtf this does!! */
    transform-origin: bottom left; 
    transition: transform 0.25s ease-out;

}

.navbar a:hover, .dropdown:hover .dropbtn{
    background-color: #691f22
}

.dropdown:hover .dropbtn::after, .abtus-content a:hover::after, .aca-content a:hover::after, .stu-content a:hover::after, .staff-content a:hover::after{
    transform: scaleX(1);
}

/*beginning of main body part */
.container{
    padding: 60px 40px;
    background-color: #d9dbda;
}

.fullcarousel{
    padding-top: 15px;
    border-radius: 8px;
    margin-top: 25px;
}
.headerbox{
    background-color: white;
    padding: 25px 15px;
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center; 
}

.headerbox h2{
    font-family: 'Cascadia Code';
    text-align: center;
    color: #1f4069;
    margin: 0; 
    width: 100%;
}

.headerbox svg{
    color: #1f4069;
    font-size: 30px;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%); 
}

.headerbox svg:hover{
    color: #691f22
}

.carousel{
    background-color: #c2c4c3;
    padding-top: 15px;
    padding-bottom: 30px;
    overflow-x: auto;
    margin: 0;
    display: flex;
    gap: 1em;
    width: 100%;
    anchor-name: --carousel;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
    scroll-behavior: smooth;
    box-sizing: border-box;
    padding-left: 1.65em;        
    padding-right: 1.5em;      
    scroll-padding-left: 1.5em;
}

.carousel::scroll-marker-group{
    display: flex;
    justify-content: center;
    gap: .5em;
}

.card:nth-child(5)::scroll-marker{
    display: none;
}
.card:nth-child(2)::scroll-marker{
    display: none;
}
.card::scroll-marker:target-current{
    background-color: #691f22;
}
.carousel::-webkit-scrollbar{
    display: none;
}

.carousel::scroll-button(right){
    content: ">";
    border: none;
    background-color: #1f4069;
    font-family: Consolas;
    font-size: 2rem;
    color: white;
    height: 100%;
    width: 25px;
    padding-bottom: .1em;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate:-100%;
    opacity: .9;
}

.carousel::scroll-button(left){
    content: "<";
    border: none;
    background-color: #1f4069;
    font-family: Consolas;
    font-size: 2rem;
    color: white;
    height: 100%;
    width: 25px;
    padding-bottom: .1em;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: left center;
    translate: 100%;
    opacity: .9;
}

.carousel::scroll-button(left):disabled, .carousel::scroll-button(right):disabled{
    opacity: 0.5;
    cursor: auto;
}
.carousel::scroll-button(left):hover, .carousel::scroll-button(right):hover{
    background-color: #691f22
}

.card{
    scroll-snap-align: center;
    flex: 0 0 20em;
    height: 12em;
    background-color: #9e9e9e;
    padding: 1em;
    border-radius: .5em;
    text-align: center;
    align-content: center;
    aspect-ratio: 5 / 3;
    scroll-snap-stop: always !important; 
    color: black;
}


@media(max-width: 500px ){
    .card{
        flex: 0 0 100%
    }
}

/* annoucements */

.announcements .box{
    box-sizing: border-box;  
    background-color: #c2c4c3;
    width: 100%;
    min-height: 300px; 
    height: auto; 
    display: flex; 
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
    gap: 10px; 
    padding: 10px;

}


.cards{
    box-sizing: border-box;
    flex: 1 1 0px; 
    background-color: #9e9e9e;
    color: black;
    width: 20em;           
    max-width: 100%;
    aspect-ratio: 5/3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;    
    gap: 8px;
    border-radius: 5px;
}

.cards h3, h2{
    color: #162f4d;
    font-family: "Cascadia Code";
    padding: 10px;
}

.cards h3{
    padding-left: 50px;
    padding-right: 50px;
}
.cards h2{
    padding-left: 15px;
    display: flex;
    flex-direction: column;
}
/*beginning of footer */
.footer{
    padding:71px 40px;
    background-color:#1f4069;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.phone-section h4{
    white-space: nowrap;
}

.footer-links-group{
    display: flex;
    flex-direction: row;
    gap: 24px;
    white-space: nowrap;
}
.footerbtn a{
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-family: 'Cascadia Code'
    
}

.footerbtn a::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}

.footerbtn:hover a::after{
    transform: scaleX(1);
}

.text{
    color: white;
    font-family: 'Cascadia Code';
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text h4{
    margin: 0;
    font-weight: normal;
    font-size: 1em;
}


.text i{
    margin-top: 4px;
}

.logofooter img{
    height: 100px;
    width: auto;
}

/* scroll bar */ 
::-webkit-scrollbar{
    width: 1em;
}

::-webkit-scrollbar-track{
    background: #172f4d;
}

/* shows you where you are on the page */ 
::-webkit-scrollbar-thumb{
    background: #1f4069;
}

::-webkit-scrollbar-thumb:hover{
    background: #691f22;
}