/*
Theme Name: Cenk for Americia
Author: Navid Boloorian
Author URI: https://github.com/navidboloorian
Description: A custom theme built for the Cenk for America website.
Version: 1.0
*/
:root {
    --cenk-blue: #2A295E;
    --cenk-red: #DF0700;
}

body {
    margin: 0px;
    font-family: 'Inter';
    height: 100vh;
    overflow-x: hidden;
}

main {
    position: relative;
}

#banner {
    position: absolute;
    
    top: 0;
    left: 0;
    background-color: var(--cenk-red);
    width: 100%;
    color: white;
    text-align: center;
    padding: 5px;
    display: grid;
    grid-template-columns: 30px auto 30px;
}

#banner a {
    color: white;
}

.close {
    transform: rotate(45deg);
    font-size: 30px;
    position: absolute;
    top: -5px;
    right: 15px;
    margin: 0px;
    font-weight: bold;
}

.close:hover {
    cursor: pointer;
}

.white-bkg {
    background-color: white;
}

.red-bkg {
    background-color: var(--cenk-red);
}

.blue-bkg {
    background-color: var(--cenk-blue) !important;
}

.page-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

#donate-button {
    background-color: var(--cenk-red);
    color: white !important;
    border-radius: 5px;
}

#big-donate-button {
    background-color: var(--cenk-red);
    color: white !important;
    border-radius: 5px;
    text-decoration: none;
    padding: 10px;
    justify-self: center;
    margin-top: 20px;
}

/** homepage */
.right-align {
    display: block;
    text-align: right;
}

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

.outlined-box {
    display: grid;
    width: 100%;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr;
    position: relative;
    padding: 20px;
}

.outlined-box h2 {
    top: 5px;
    left: 50px;
    position: absolute;
    margin: 0px;
    padding-left: 10px;
    padding-right: 10px;
}

.outline {
    width: calc(100% - 120px);
    display: block;
    border: 2px solid transparent;
    border-radius: 35px;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 10px;
    padding-top: 10px;
}

.outline ol {
    padding-left: 22px;
}

.outline li {
    font-size: 20px;
    color: var(--cenk-blue);
    font-weight: bold;
    margin: 20px 0;
}

.outline li > div {
    display: grid;
    justify-content: space-between;
    grid-template-columns: auto auto;
    align-items: center;
}

.red-outline .outline {
    border-color: var(--cenk-red);
    color: var(--cenk-blue);
    background-color: white;
}

.red-outline h2 {
    color: var(--cenk-blue);
    background-color: white;
}

.blue-outline .outline {
    border-color: var(--cenk-blue);
    color: var(--cenk-blue);
    background-color: white;
}

.blue-outline h2 {
    color: var(--cenk-blue);
    background-color: white;
}

.white-outline .outline {
    border-color: white;
    color: white;
    background-color: var(--cenk-red);
}

.white-outline h2 {
    color: white;
    background-color: var(--cenk-red);
}

footer {
    color: white;
    font-weight: bold;
    text-align: center;
}

footer h3 {
    font-size: 20px;
    line-height: 40px;
}

/** join the movement form */

#jtm-form label {
    font-weight: bold;
}

#jtm-form input {
    margin-right: 10px;
}

#jtm-form input[type=text], input[type="email"], input[type="tel"] {
    display: block;
    height: 50px;
    font-weight: bold;
    font-size: 20px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
    border: 0px;
}

#lname-input {
    grid-area: lname;
}

#fname-input {
    grid-area: fname;
}

#email-input {
    grid-area: email;
}

#checkbox-label {
    grid-area: checkbox;
}

#volunteering-header {
    grid-area: volunteering-header;
}

#volunteering-response-div {
    grid-area: volunteering-response;
}

#volunteering-response-div label {
    margin-right: 10px;
}

#submit-button {
    justify-self: center;
    padding: 10px;
    width: 100px;
    grid-area: submit-button;
    background-color: transparent;
    border: 0px;
    color: var(--cenk-red);
    font-size: 20px;
    font-weight: bold;
    background-color: white;
    border-radius: 5px;
}

/** press */
#press-grid iframe {
    width: 100%;
}

#press-release p {
    margin-top: 10px;
    margin-bottom: 10px;
}

#press-release-grid a {
    color: white;
    text-decoration: none;
}

#press-release-grid div {
    padding: 5px;
    border-radius: 5px;
    margin-left: -5px;
    display: grid;
    margin-bottom: 10px;
    margin-top: 10px;
}

#press-release-grid div h3 {
    margin: 0px;
}

#press-release-grid div:hover {
    cursor: pointer;
    background-color: rgb(27, 27, 62);
}

/** events */
.event-container {
    display: grid;
    grid-template-columns: 40px auto;
    gap: 20px 0px;
}

.event-container h3, p {
    margin: 0px;
}

.event-container img {
    width: 20px;
}

#no-events {
    position: absolute;
    height: 40px;
    text-align: center;
    left: calc(50% - 115px);
    top: 35px;
}

.news-link {
    position: relative;
    height: calc(100% - 37px);
    width: calc(100% - 74px);
    margin-top: 15px;
    margin-left: 37px;
}

.news-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-link-title {
    position: absolute;
    background-color: white;
    width: 100%;
    height: 40%;
    bottom: 0;
    opacity: 0.7;
    overflow-y: scroll;
    overflow-x: hidden;
}

.news-link h3 {
    color: black;
    text-decoration: none;
    padding: 0px 10px;
}

@media only screen and (min-width: 600px) {
    #press-release {
        padding-top: 10px;
        padding-bottom: 10px;
        max-width: 900px;
        justify-self: center;
    }

    #jtm-form {
        display: grid;
        padding-top: 20px;
        padding-bottom: 20px;
        grid-template-areas: 
            "fname lname email"
            "checkbox checkbox checkbox"
            "volunteering-header volunteering-header volunteering-header"
            "volunteering-response volunteering-response volunteering-response"
            "volunteering-form volunteering-form volunteering-form"
            "submit-button submit-button submit-button";
        gap: 20px;
    }

    #volunteering-form {
        display: none;
        grid-area: volunteering-form;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .content {
        max-width: 1500px;
        min-width: 700px;
        margin: 0 auto;
    }

    .outline li img {
        height: 50px;
    }

    #main-block {
        min-height: calc(100% - 100px);
        height: calc(100vh - 100px);
        width: 100%;
        background-size: cover;
        background-image: url("assets/images/main_bkg.jpg");
        background-position-x: -250px;
        background-repeat: no-repeat;
        font-weight: 800;
        display: grid;
    }
    
    #main-block div {
        width: 45%;
        justify-self: end;
        font-size: 26px;
        height: 100%;
        background-color: var(--cenk-blue);
        display: grid;
        color: white;
        align-items: center;
        background: linear-gradient(.75turn, rgba(42, 49, 94, 1), 90%, rgba(42, 49, 94, 0));
    }
    
    #main-block-text {
        max-width: 600px;
        justify-self: center;
        align-self: center;
        display: grid;
    }

    #navbar {
        display: flex;
        justify-content: center;
        width: 100%;
        background-color: white;
        height: 100px;
        box-shadow: 0px 1px 10px -5px #666;
    }

    #navbar-content {
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 150px 1fr;
        max-width: 1500px;
        width: 100%;
    }

    #navbar-content > a {
        justify-self: center;
    }

    #navbar-content img {
        justify-self: center;
        height: 80px;
    }

    #navbar-content ul {
        display: flex;
        align-items: center;
        margin-right: 5px;
        justify-self: end;
        list-style-type: none;
        font-weight: 800;
        font-size: 20px;
        display: flex;
        gap: 25px;
        margin: 0px;
    }

    #navbar-content ul a {
        display: inline-flex;
        padding: 20px 10px;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        margin: 0px;
        color: var(--cenk-blue);
    }

    #mobile-button {
        display: none;
    }

    #mobile-hamburger {
        display: none;
    }

    #mobile-navbar {
        display: none;
    }

    #press-grid {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    #events-grid {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    } 
}

@media only screen and (max-width: 600px) {
    #jtm-form {
        display: grid;
        padding-top: 20px;
        padding-bottom: 20px;
        grid-template-areas: 
            "fname"
            "lname"
            "email"
            "checkbox"
            "volunteering-header"
            "volunteering-response"
            "volunteering-form"
            "submit-button";
        gap: 20px;
    }

    #volunteering-form {
        display: none;
        grid-area: volunteering-form;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content {
        width: 100vw;
        margin: 0 auto;
    }

    .outline li img {
        display: none;
    }

    #main-block {
        min-height: calc(100% - 100px);
        height: calc(100vh - 60px);
        width: 100%;
        background-image: url("assets/images/main_bkg.jpg");
        background-repeat: no-repeat;
        background-position-x: -600px;
        font-weight: 800;
        display: grid;
    }
    
    #main-block div {
        width: calc(100% - 40px);
        padding: 20px;
        font-size: 26px;
        height: 100%;
        display: grid;
        color: white;
        align-items: center;
        background: linear-gradient(rgba(42, 49, 94, 1), 70%, rgba(42, 49, 94, 0));
    }
    
    #main-block-text {
        width: 100%;
        justify-self: center;
        align-self: center;
        display: grid;
    }

    #navbar {
        display: flex;
        justify-content: center;
        width: 100%;
        background-color: white;
        height: 60px;
        box-shadow: 0px 1px 10px -5px #666;
    }

    #navbar-content {
        display: grid;
        align-items: center;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    #navbar-content > a {
        justify-self: center;
    }

    #navbar-content img {
        justify-self: center;
        height: 50px;
    }

    #navbar-content ul{
        display: none;
    }

    #mobile-hamburger {
        display: block;
        color: black;
    }

    #mobile-hamburger {
        content: "";
        display: block;
        position: absolute;
        right: 10px;
        width: 14px;
        height: 0px;
        top: 10px;
        -webkit-box-shadow: 1px 10px 1px 1px var(--cenk-blue),1px 16px 1px 1px var(--cenk-blue),1px 22px 1px 1px var(--cenk-blue);
        box-shadow: 0 10px 0 1px var(--cenk-blue),0 16px 0 1px var(--cenk-blue),0 22px 0 1px var(--cenk-blue);
    }

    #mobile-navbar {
        position: fixed;
        display: none;
        justify-content: center;
        align-items: center;
        top: 0;
        left: 0;
        background-color: white;
        width: 100%;
        height: 100%;
        text-align: center;
        z-index: 100;
    }

    #mobile-navbar ul {
        display: grid;
        gap: 20px;
        list-style-type: none;
        padding: 0px;
    }

    #mobile-navbar ul a {
        text-decoration: none;
        color: var(--cenk-blue);
        font-weight: bold;
        font-size: 60px;
    }

    #mobile-button {
        height: 50px;
        position: relative;
    }
    
    #donate-button {
        padding: 10px;
        background-color: var(--cenk-red);
        color: white !important;
        border-radius: 5px;
    }

    .close-button {
        transform: rotate(45deg);
        font-weight: bold;
        font-size: 60px;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #press-grid {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 20px;
        display: grid;
        grid-template-columns: 1fr;
    }

    #events-grid {
        padding-top: 20px;
        padding-bottom: 20px;
        gap: 20px;
        display: grid;
        grid-template-columns: 1fr;
    } 
}