@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Main styles */

body {
    font-family: "Montserrat", sans-serif !important;
    background-color: #d3d3d3 !important;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.dark-bg {
    background-color: #353535 !important;
}

.row {
    margin: 0 !important;
}

/* Navigation bar */

.navbar {
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px !important;
}

.nav-link {
    margin-right: 15px !important;
}

.nav-link:hover, .login-a:hover {
    color: #992a4b !important;
}

.active a, .login-a {
    color: #db3d68 !important;
}

/* Footer */

footer {
    margin-top: auto;
}

footer a:hover {
    background-color: #992a4b !important;
    border-color:#992a4b !important;
}

.footer-copyright {
    color:#db3d68 !important;
    text-decoration: none !important;
}

.footer-copyright:hover {
    color:#992a4b !important;
    background-color: transparent !important;
}

/* Dashboard/Homepage */

.card {
    min-height:250px;
    margin: 0 3%;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px !important;
}

.page-banner {
    height: 15vh;
    color: black;
}

.hide {
    display: none;
}

/* Reports Page */

.report-link {
    margin-bottom: 30px;
}

.loggedout-report-text {
    text-decoration: none;
    background-color: transparent !important;
    color:#db3d68 !important;
}

.loggedout-report-text:hover {
    color:#992a4b !important;
}

.image-div {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    position: relative;
    display: inline-block;
    border-radius: 5px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 5px;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
}

.overlay-content h4 {
    margin-bottom: 10px;
}
  
.proj-image {
    max-width: 100%;
    height: 225px;
    border-radius: 5px;
}

.report-link:hover .image-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.report-back-link:hover {
    color: #992a4b !important;
}

/* Django allauth pages */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #353535;
    height: 100%;
}

.auth-box {
    width: 40%;
    max-width: 450px;
    height:30%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-box button {
    border-radius: 5px !important;
}

.auth-box .btn-info, .auth-box button {
    padding: 20px !important;
    color: white !important;
    background-color: #db3d68 !important;
    border: none !important;
}

.auth-box ul {
    padding-left: 0 !important;
}

.auth-box .btn-info:hover, .auth-box button:hover {
    background-color: #992a4b !important;
}

.google-animation {
    position: relative;
    display: inline-block;
}

.google-animation::before,
.google-animation::after {
    display: block;
    content: '';
    height: 20px;
    width: 15px;
    position: absolute;
    opacity: 0;
    transition: all 250ms ease-in-out;
}

.google-animation:hover::before, .google-animation:hover::after {
    opacity: 1;
}

.google-animation:hover::before {
    height: 40px;
    width: 34px;
    right: -40px;
    animation: float-right 3s ease-in-out infinite;
}

.google-animation:hover::after {
    height: 40px;
    width: 30px;
    top: -45px;
    transform: rotate(-10deg);
    animation: float-top 3s ease-in-out infinite;
}

@keyframes float-right {
    50% {
        transform: rotate(10deg) translate(0, -15px);
    }
}

@keyframes float-top {
    50% {
        transform: rotate(-5deg) translate(0, 10px);
    }
}

.google-animation::before {
    display: inline-block;
    right: 0;
    bottom: 0;
    background: url('https://res.cloudinary.com/doonlfgr2/image/upload/v1717102304/google-logo_pxzl9l.webp') no-repeat;
    background-size: 30px 30px;
}
  
/* Media Queries */

@media screen and (max-width: 1300px) {
    .auth-box {
        width: 75% !important;
    }
}

@media screen and (max-height: 1100px) {
    .auth-box {
        height: 65% !important;
    }
}

@media screen and (max-width: 500px) {
    .username-nav {
        font-size: 12px !important;
        }
}

@media screen and (max-width: 440px) {
    .report-list {
        padding: 0 15px !important;
    }
}