@import url('https://fonts.googleapis.com/css?family=Poppins:400,500');

/* ============================================
   CSS VARIABLES (used multiple times)
   ============================================ */
:root {
  --color-primary: #ff1744;
  --color-primary-dark: #f44336;
  --color-text-muted: #696969;
  --color-white: #fff;
  --color-grey: #e5e5e5;
  --color-grey-bg: #eaf9ec;
  --color-success: #038930;
  --color-success-light: #60ce85;
  
  --font-family-base: 'Poppins', sans-serif;
  --font-family-serif: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
  
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.38s;
  
  --shadow-card: 0 -1px 0 var(--color-grey), 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: var(--font-family-base);
}

body {
  margin: 0;
  animation: fadeIn 0.25s;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h2,
h3,
h4,
h5,
strong,
b {
  font-weight: var(--font-weight-medium);
}

a {
  color: var(--color-primary);
  text-decoration: none;

  &:hover {
    color: var(--color-primary-dark);
  }
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration,
[type="submit"] {
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
}

/* ============================================
   MEDIA ELEMENTS
   ============================================ */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;

  &.focusable:active,
  &.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
  }
}

.invisible {
  visibility: hidden;
}

.clearfix {
  &:before,
  &:after {
    content: " ";
    display: table;
  }

  &:after {
    clear: both;
  }
}

.text-center {
  text-align: center;
}

/* ============================================
   CARD & CONTAINER
   ============================================ */
.card {
  background-color: var(--color-white);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 720px;
  min-height: 44vh;
  margin: 0 2%;
  border-radius: 0 0 2px 2px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  z-index: 9;
  position: relative;
  padding: 10px 0 35px;
  text-align: center;
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  background: var(--color-primary);
  transition: all var(--transition-fast);

  & a {
    display: block;
    margin: 0 auto;
    width: 30%;
    text-transform: uppercase;
    font-size: 28px;
    color: var(--color-white);
    line-height: 100%;

    &:focus {
      outline: 0 none;
    }
  }

  & h1 {
    margin: 0 auto;
    width: 30%;
    font-size: 11px;
    text-transform: uppercase;
    line-height: 100%;
  }
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search {
  z-index: 10;
  position: absolute;
  width: 100%;
  height: 32px;
  padding-top: 8px;
  bottom: 0;

  & > div {
    position: relative;
    overflow: hidden;
    max-width: 750px;
    height: 50px;
    margin: 0 25px;
  }

  & input {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 40px 0 15px;
    border: none;
    outline: none;
    background-color: var(--color-white);
    font: 300 20px var(--font-family-base);
  }
}

.stick.search {
  position: fixed;
  top: 0;
  background-color: var(--color-primary);
}

/* ============================================
   LOOKUP BUTTON & CIRCLE ICON
   ============================================ */
.lookup {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: 150ms cubic-bezier(0.53, 0.88, 0.72, 1.26);
  transition-delay: 500ms;
}

.circle {
  position: relative;
  border: 2px solid var(--color-text-muted);
  outline: none;
  width: 17px;
  height: 17px;
  border-radius: 250px;
  background: rgba(255, 255, 255, 0);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.5em;
  transition: all var(--transition-normal);

  &::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 87%;
    width: 12px;
    height: 2px;
    background: var(--color-text-muted);
    transform: rotate(45deg);
    transform-origin: 0 0;
    transition: all var(--transition-normal);
  }
}

.focus .circle {
  width: 12px;
  height: 12px;
  border-top: 0 none;
  border-left: 0 none;
  border-radius: 0;
  transform: rotate(-45deg);

  &::after {
    left: 0;
    top: -1.5px;
    width: 16px;
  }
}

.looking .circle {
  font-size: 10px;
  margin: 0 auto;
  width: 18px;
  height: 18px;
  border: 0 none;
  border-radius: 50%;
  background: var(--color-text-muted);
  background: linear-gradient(to right, var(--color-text-muted) 10%, rgba(255, 255, 255, 0) 42%);
  position: relative;
  animation: spin 1.4s infinite linear;
  transform: translateZ(0);

  &::before {
    width: 50%;
    height: 50%;
    background: var(--color-text-muted);
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
  }

  &::after {
    transform: rotate(0deg);
    background: var(--color-white);
    width: 78%;
    height: 78%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
}

/* ============================================
   DEFINITION SECTION
   ============================================ */
.def {
  min-height: 44vh;
  padding: 30px 25px 10px;
  animation: slideInUp var(--transition-slow);

  & p,
  & li {
    margin-bottom: 12px;
  }

  & p b + i,
  & p strong + em,
  & li > em:first-child,
  &.serif {
    font-family: var(--font-family-serif);
  }

  & > ul {
    list-style: none;
    padding-left: 10px;
  }

  & > ol {
    padding-left: 16px;
  }

  & li:only-child {
    list-style: none;
    margin-left: -12px;
  }

  & li a {
    position: relative;

    &::before {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 2px;
      background: var(--color-primary);
      transition: transform var(--transition-fast);
      transform: scaleX(0);
    }

    &:hover::before {
      transform: scaleX(1);
    }
  }
}

/* ============================================
   RELATED WORDS
   ============================================ */
.rel {
  & a {
    display: inline-block;
    padding: 6px 12px 5px;
    margin: 5px 3px 5px 0;
    font-size: 15px;
    line-height: 1;
    border-radius: 25px;
    border: 1px solid var(--color-primary);
    transition: all 0.25s ease-in-out;

    &:hover,
    &:focus {
      color: var(--color-white);
      outline: none;
      background-color: var(--color-primary);
    }
  }

  & b {
    display: block;
  }
}

/* ============================================
   SIMILAR WORDS
   ============================================ */
.sh {
  opacity: 1 !important;
  margin: 10px 0;

  & a {
    cursor: pointer;
    display: inline-block;
    margin: 8px 10px 4px 0;
    transition: all 0.2s ease-in-out;

    &:hover,
    &:focus {
      transform: translateY(-4px);
    }
  }

  & svg {
    fill: #666;
    width: 30px;
    height: 30px;
  }
}

/* ============================================
   INTRO & STYLING
   ============================================ */
.intro {
  position: relative;
  margin: 8% auto 6%;
  padding: 10px 30px 20px;
}

.italo {
  font-style: italic;
}

/* ============================================
   CLOSE BUTTON
   ============================================ */
.cls {
  position: absolute;
  top: 5px;
  right: 7px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 22px;
  width: 30px;
  height: 30px;
  text-align: center;
  color: var(--color-text-muted);
  border: 0 none;
  background: none;

  &:hover,
  &:focus {
    transform: scale(1.2);
  }
}

/* ============================================
   SUPPORTER BOX
   ============================================ */
.i {
  position: relative;
  vertical-align: middle;
  background-color: var(--color-grey-bg);
  padding: 10px;
  display: flex;

  & img {
    margin-right: 20px;
  }

  & p {
    color: #1d2d35;
    font-weight: var(--font-weight-medium);
  }

  & strong {
    font-weight: 600;
  }

  & .b {
    transition: all var(--transition-normal);
    display: inline-block;
    padding: 9px 18px;
    background-color: var(--color-success);
    color: var(--color-white);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    text-align: center;
    border-radius: 3em;
    font-size: 14px;

    &:hover {
      color: var(--color-white);
      transform: scale(1.1);
    }
  }

  &::after {
    content: "PËRKRAHËS";
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-success-light);
    color: var(--color-white);
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media only screen and (max-width: 620px) {
  .i {
    display: block;
    text-align: center;

    & p {
      margin-top: 0;
    }
  }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
  max-width: 600px;

  & .card {
    border: 0 none;
    padding: 8px 12px;
    font: 300 16px var(--font-family-base);

    &[type=submit] {
      background: var(--color-primary);
      color: var(--color-white);
      padding: 8px 15px;
    }
  }

  & textarea.card {
    width: 90%;
  }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  opacity: 1 !important;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;

  & p {
    margin: 0 0 20px;
  }

  & .cp {
    font-size: 13px;
  }
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.soc {
  & a {
    display: inline-block;
    margin: 0 14px;
  }

  & svg {
    fill: currentColor;
    width: 35px;
    height: auto;
  }
}

.fb {
  color: #3b5998;
}

.tt {
  color: #1da1f2;
}

.in {
  color: #e4405f;
}

.ln {
  color: #0077b5;
}

.gp {
  color: #dc4e41;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  color: #666;

  & a {
    display: inline-block;
    margin: 5px;
  }
}

/* ============================================
   OPTIONS & FIELDS
   ============================================ */
.opt {
  margin: 0 20px 30px;
  text-align: left;

  & .flds {
    position: relative;
  }

  & .btn {
    position: absolute;
    top: 0;
    right: 0;
  }
}

/* ============================================
   MESSAGES
   ============================================ */
.msg {
  margin: 10px 0;
  padding: 6px 10px;
  border-radius: 2px;
  font-size: 15px;
}

.success {
  color: #4f8a10;
  background-color: #dff2bf;
}

.error {
  color: #d8000c;
  background-color: #ffbaba;
}

.info {
  color: #2694ff;
  background-color: #c9ddff;
}

/* ============================================
   ADVERTISEMENTS
   ============================================ */
.ad {
  margin: 30px auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 25px, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media only screen and (min-width: 760px) {
  .container {
    max-width: 800px;
    min-height: 44vh;
    margin: 0 auto;
  }

  .header {
    padding: 60px 0 80px;

    & a {
      font-size: 38px;
    }

    & h1 {
      font-size: 12px;
      letter-spacing: 1.7px;
    }
  }

  .search > div {
    margin: auto;
  }

  .intro {
    font-size: 18px;
  }

  .rel {
    overflow: hidden;
    height: 38px;

    & b {
      display: inline;
    }
  }
}

@media only screen and (min-width: 960px) {
  .header {
    padding: 80px 0 100px;
  }
}
