/*This file contains style that could be apply to any page commponents, such as banners, three column section, page title, etc.*/

:root {
    --primary-red: #990000;
    --primary-white: #FFFAFA;
}

.page-container section {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 2rem;
	
}

.page-title {
    font-size: 2rem !important;
    margin: 0;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.page-subtitle {
    color: var(--primary-red);
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0;
}

.page-banner {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.page-text-lg,
.page-text-md {
    line-height: 1.75rem;
    margin: 0;
    transition: all 0.5s ease-in-out;
}

.page-text-md {
    font-size: 1.25rem;
}

.page-text-lg {
    font-size: 1.5rem;
}

.page-three-col-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    transition: all 0.5s ease-in-out;
}

.page-three-col-item,
.size-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.overlay-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.25rem;
    padding: 2rem;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease-in-out;
}

.overlay-content * {
	text-align: left !important;
}

.overlay-content:not(.overlay-no-cover) {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--primary-white) !important;
}

.overlay-content:not(.overlay-no-cover) * {
	color: var(--primary-white) !important;
}

.overlay-content *:not(.overlay-unhidden) {
    opacity: 0;
    visibility: hidden;
}

.overlay-content:hover * {
    opacity: 1;
    visibility: visible;
}

.overlay-content.overlay-change-bg-to-red-ray {
    color: var(--primary-white);
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(https://www.stonybrook.edu/far-beyond/img/branding/rays/red-rays-full.jpg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.overlay-container:hover .overlay-content.overlay-change-bg-to-red-ray {
    opacity: 1;
    visibility: visible;
}

.button-container a {
	display: inline-block;
	width: fit-content;
	height: fit-content;
}

.button {
    border: none;
    width: fit-content;
    height: fit-content;
    font-size: 1rem;
    padding: 1rem;
    margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.button-with-white-border {
    color: var(--primary-white);
    font-weight: bold;
    background-color: transparent;
    border: 2.5px solid var(--primary-white);
    border-radius: 5px;
}

.overlay-content.overlay-change-bg-to-red-ray .button {
    position: absolute !important;
    bottom: 9%;
}

.sbu-red-button {
    color: var(--primary-white);
    background: url(https://www.cs.stonybrook.edu/sites/default/files/button-small.png);
    background-size: cover;
    background-repeat: no-repeat;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 3px;
    width: 390px;
    height: 50px;
    padding: 3rem;
    transition: all 0.3s ease-in-out;
}

@media only screen and (max-width: 390px) {
	.sbu-red-button {
		width: 100%;
	}
}

@media only screen and (max-width: 300px) {
	.sbu-red-button {
                padding: 0.5rem 1rem;
		font-size: 15px;
        }
}

.button-container a:hover {
    text-decoration: none;
}

.center-self {
    margin: 0 auto;
}

.cursor-pointer {
	cursor: pointer;
}

.text-red {
	color: var(--primary-red);
}

