@charset "utf-8";

// Branding
$autonomic-red: #EE4A33;
$coopcloud-blue: #202674;
$coopcloud-pink: #ff4f88;
$white: white;
$text-color: #1C1C1C;
$bg-color: #EFEFEF;

$footer-background-color: $coopcloud-blue;
$footer-color: true;
$footer-padding: 3rem 1.5rem 3rem;

$danger: $autonomic-red;

// HACK: Changing button behaviour globally as quick fix for the "visit: autonomic.zone" button
$button-border-width: 2px;
$button-hover-border-color: $white;
$button-focus-border-color: $white;
$button-active-border-color: $white;
$button-ghost-border-color: $white;
$button-ghost-hover-color: $white;
$button-text-hover-color: $white;
$button-focus-box-shadow-size: 0;



@import "./bulma/bulma.sass";

@mixin define-manrope-family($weight, $uri) {
    font-family: 'Manrope';
    src: url($uri) format("woff2");
    font-weight: $weight;
}

@mixin thick-hr {
    height: 4px;
}

@font-face { 
    @include define-manrope-family(bold, '../font/manrope.bold.woff2')
}

@font-face { 
    @include define-manrope-family(300, '../font/manrope.light.woff2')
}

@font-face { 
    @include define-manrope-family(medium, '../font/manrope.medium.woff2')
}

@font-face {
    font-family: "lora";
    src: url("../font/Lora-Italic.woff2");
    font-weight: 300;
    font-style: italic;
}


body {
    background-color: $bg-color;
    color: $text-color;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display:grid;
    grid-template-rows: auto 1fr auto;
}

body >* {
    font-family: 'Manrope', sans-serif !important;
}

.question {
    padding: 10px;
    h2 {
        font-weight: bold;
        font-size: 2em;
        margin-bottom: 9px;
    }
    p {
        padding: 0;
        margin: 0;
    }
}

.hr-header {
    @include thick-hr();
}

button {
    border-radius: 0 !important;
    font-family: 'Manrope', sans-serif !important;
}

button.grey-button {
    color: $text-color !important;
    background-color: rgba(0,0,0,0) !important;
    border-color: $text-color !important;
    a {
        color: $text-color;
    }
    &:hover {
        border-color: black !important;
    }
}

button#faq-button {
    margin: 50px 0 30px 0;
}

#get-involved {
    margin: 20px 0;
    >.hero-body {
        margin: 20px 0;
    }
    p {
        line-height: 1 !important;
    }
    p:not(:last-child) {
        padding-bottom: 20px;
    }

}

#community-project {
    font-family: "lora";
}

hr {
    background-color: $text-color;
    border: none;
    height: 1px;
}

.is-autonomic {
    background-color: $autonomic-red;
    color: $white;
    
    p {
        font-weight: 300;
    }
    h1 {
        color: $white !important;
    }
    hr {
        @include thick-hr();
        background-color: $white;
    }
    a {
        color: $white;
    }
    .content {
        padding-bottom: 20px;
    }
    #who-is-involved {
        padding-bottom: 40px;
    }
}

#header {
    background-color: $coopcloud-pink;
    padding: 10px;
    margin: 0;

}

footer .content a {
    color: $white;
    text-decoration: none;
}

footer .separator {
    padding: 0 10px;
}

// Do not show server image when using mobile viewport
// Is a little bigger than the actual mobile viewport in bulma due to the text overlapping with the server icon
@media all and (min-width: 769px) {
    #server-hero {
        background-image: url("/svg/hero-server.svg");
        background-repeat: no-repeat;
        background-size: 20%;
        background-position: calc(100% - 20px) ;
    }
}

.blog-archive {
    padding: 3rem 3rem;
    h3 {
        padding-bottom: 1em;
        text-transform: uppercase;
    }
}

.blog-listing {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}