/*
Theme Name: Civic Theme
Author: Murilio
Author URI: https://github.com/murilio
Description: Civic Theme
Version: 0.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* CSS RESET */
:root {
  --color-black: #111;
  --color-white: #F7F7F7;
  --color-blue: #0B59C8;
  --color-yellow: #FCB12A;

  --font-family: 'Inter', sans-serif;
  --container: 1440px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #ccc;
}

::-webkit-scrollbar-thumb {
  background: var(--color-yellow);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 24
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;
  color: var(--color-black);
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
}

html,
body {
  height: 100%;
  font-size: 1rem;
  scroll-behavior: smooth;
}

hr {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  background-color: #ccc;
  border: 0;
}

img,
object,
embed,
video {
  max-width: 100%;
  height: auto;
}

embed,
iframe.custom-iframe {
  width: 100%;
  height: 1000px;
  margin-bottom: 30px;
  border: 0;
}

button {
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

a {
  text-decoration: none;
  color: inherit;
  font-family: var(--font-family);
}

ul {
  list-style: none;
  font-family: var(--font-family);
}

p {
  margin: 0;
  font-family: var(--font-family);
}

input,
textarea {
  font-family: var(--font-family);
  outline: none;
}

.container {
  padding: 0 20px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;

  @media only screen and (min-width: 1420px) {
    padding: 0 0;
  }
}

header {
  position: relative;
  width: 100%;

  img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
  }

  h1 {
    position: absolute;
    top: 30%;
    left: 0;
    display: flex;
    justify-content: center;
    right: 0;
    z-index: 99999;
    color: var(--color-white);
    font-size: 46px;
    text-align: center;
  }

  &::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(#000000,
        #000000AA,
        #00000077,
        #00000000);
  }
}


.search {
  margin: 20px auto;

  form {
    display: flex;

    input {
      width: 100%;
      height: 50px;
      border-radius: 8px 0 0 8px;
      border: solid 1px #ddd;
      padding: 0 10px;
    }

    button {
      border-radius: 0 8px 8px 0;
      border: solid 1px #ddd;
      padding: 0 10px;
    }

    a {
      display: flex;
      align-items: center;

      margin-left: 50px;
    }
  }
}

.content-home {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 80px;

  .card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;

    border: solid 1px #ddd;
    padding: 20px;

    img {
      width: 250px;
      object-fit: cover;
    }

    h2 {
      text-transform: uppercase;
      font-size: 22px;
      max-width: 200px;
      text-align: center;
    }

    button {
      background-color: var(--color-yellow);
      font-weight: 600;
      padding: 6px 4px;
      font-size: 18px;
    }
  }
}