@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

a, a > button {
    cursor: pointer;
    text-decoration: none;
    color: black;
}

:root {
    --primary: #131f39;
    --secondary: #91c4ef;
    --accent: #d8a645;
    --text: #b6bac0;
    --bg-light: #f4f6fa;
    --white: #ffffff;

    --hero-font: 50px;
    --heading-font: 24px;
    --sub-heading-font: 19px;
    --accent-font: 14px;
    --text-font: 17px;
    --button-font: 15px;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
    box-sizing: border-box;
}

h1 {
    font-size: var(--hero-font);
    font-family: 'Montserrat';
}

h2 {
    font-size: var(--heading-font);
    font-weight: 500;
    font-family: 'Montserrat';
}

h3 {
    font-size: var(--text-font);
    font-weight: 400;
    font-family: 'Montserrat';
}

.f1 {
    font-size: var(--hero-font);
    font-weight: 600;
    margin: 10px 0;
}

.f2 {
    font-size: var(--sub-heading-font);
    font-weight: 500;
}

.f3 {
    font-size: var(--accent-font);
}

.mobile-menu-open {
    cursor: pointer;
}

.main-button {
    cursor: pointer;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.3s;
}

.main-button:hover {
    color: white;
}

.secondary-button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
}

.flex-col-s, .flex-col-c, .flex-col-r {
    display: flex;
    flex-direction: column;
}

.flex-row-s, .flex-row-c, .flex-row-r {
    display: flex;
    flex-direction: row;
}

#global-message {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    
    z-index: 1000;

    max-width: 80%;
    width: fit-content;

    text-align: center;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#global-message.success {
    background-color: green;
}

#global-message.error {
    background-color: red;
}

#global-message.animate {
    animation: showMessage 4s ease forwards;
}

@keyframes showMessage {
    0% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }

    10% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    90% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

/* Laptop */
@media (max-width: 1665px) { 
    :root {
        --hero-font: 50px;
        --heading-font: 24px;
        --sub-heading-font: 19px;
        --accent-font: 13px;
        --text-font: 17px;
        --button-font: 15px;
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) { 
    :root {
        --hero-font: 40px;
        --heading-font: 21px;
        --sub-heading-font: 19px;
        --accent-font: 14px;
        --text-font: 16px;
        --button-font: 15px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) { 
    :root {
        --hero-font: 35px;
        --heading-font: 21px;
        --sub-heading-font: 17px;
        --accent-font: 14px;
        --text-font: 16px;
        --button-font: 15px;
    }
}

/* Mobile Landscape */
@media (max-width: 880px) { 
    :root {
        --hero-font: 30px;
        --heading-font: 21px;
        --sub-heading-font: 17px;
        --accent-font: 14px;
        --text-font: 16px;
        --button-font: 15px;
    }

    .flex-col-c {
        flex-direction: row;
    }

    .flex-col-r {
        flex-direction: row-reverse;
    }

    .flex-row-c {
        flex-direction: column;
    }

    .flex-row-r {
        flex-direction: column-reverse;
    }
}

/* Mobile Portrait */
@media (max-width: 650px) { 
    :root {
        --hero-font: 30px;
        --heading-font: 21px;
        --sub-heading-font: 17px;
        --accent-font: 14px;
        --text-font: 16px;
        --button-font: 15px;
    }
}