/* 
Team CARP
ISTE.240.01 - Team Website
11/25/24
*/

/*
The change this root variable to change the side margins.
This should be local to main.
*/
:root {
    --side-margins: 40px;
}

/*hero image and title*/
h1 {
    width: 50vw;
    padding: 8px 32px;
    border-radius: 20px;
    background-color: #ACDCE0;
    /* margin on h1 should match main margin*/
    margin: 0 var(--side-margins);
}

.title-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: 100%;
    height: 96vh;
    background-image: url("../images/hero_image.png");
    background-size: 50vw 50vw;
    background-repeat: repeat;
    background-position: top left;
    overflow-x: hidden;
}

/*text and general layout*/
/*
Note:
40px margin is now turned into padding of 40px.
*/
body main {
    margin: 0 auto;
    padding: var(--side-margins);
}

h2 {
    text-align: center;
    margin: 20px 0;
    padding: 0 var(--side-margins);
}

#carp-description {
    margin-bottom: 60px;
}

/*learn more buttons*/
.learn-more-section {
    background-color: #acdce066;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    padding: 10px var(--side-margins);
    margin-bottom: 25px;
}

.learn-more-section a {
    text-decoration: none;
}

.principle-label {
    display: flex;
    align-items: center;
}

/* 
This is an additional condition. If the 
screen is smaller than 400px wide, the buttons 
have to be smaller. - Evan
*/
@media (max-width: 400px) {
    a.btn {
        width: 50%;
        font-size: 11px;
    }
}

/*
For mobile devices. Breakpoint is 768px.
*/
@media (max-width: 768px) {
    body main {
        width: 100%;
    }

    a.btn {
        padding: 2% 4%;
        gap: 1%;
    }

    main .learn-more-section {
        padding: 10px 5%;
    }

    main h4 {
        font-size: 1.3rem;
        font-size: clamp(1.3rem, 1.2000000000000002rem + 0.49999999999999994vw, 2rem);
    }
}

/*
This is to bridge the gap between 768px (mobile) and the breakpoint at
1100px. Between these break points the container will stretch
to the paren'ts width (main).
*/
@media (min-width: 769px) and (max-width: 1100px) {
    body main {
        max-width: 769px;
    }

    body main {
        font-size: .7rem;
    }
}

/*
I choose 1100px because the button container looked nice after
experimenting - Evan
*/
@media (min-width: 1100px) and (max-width: 1980px) {
    body main {
        max-width: 1100px;
    }
}

/*
For screens larger than 1980px, the button container will grow
dynamically to accomodate for the larger screen.
*/
@media (min-width: 1980px) {
    body main {
        max-width: 70vw;
    }
}