/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* GENERAL SETTINGS */
body {
    margin: 0;
    min-height: 100vh;
    min-width: 1400px;
    overflow-x: auto;
    position: relative;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url('../images/zaffalon_page_7.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
}

html, body {
    height: 100%;
}

html
{
    height: 100%;
}

a:link
{
    text-decoration: none;
}
/* END OF GENERAL SETTINGS */

/* RIGHT SIDE OF THE PAGE SETTINGS */
#apps_section {
    width: 26%;
    padding: 40px;
    margin-left: auto;
    text-align: center;
    font-family: 'Roboto';
    color: #444444;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}

h1
{
    text-transform: uppercase;
    text-decoration: underline;
    color: #333333;
    transition: color 0.3s ease;
}

h2
{
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    color: #333333;
    transition: color 0.3s ease;
}

h3
{
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    color: #333333;
    transition: color 0.3s ease;
}

p
{
    line-height: 1.6;
    font-size: 16px;
    transition: color 0.3s ease;
}
/* END OF RIGHT SIDE OF THE PAGE SETTINGS */

/* LINKS */
a:link
{
    text-decoration: none;
}
/* END OF LINKS */

/* MOUSE EVENTS */
#apps_sites:hover h1
{
    color: orange;
    transition: color 0.3s ease;
}

#apps_sites:hover p
{
    color: orange;
    transition: color 0.3s ease;
}

#weathaff:hover h2,
#weathaff:hover p,
#weathaff:hover .badge
{
    color: orange;
    border-color: orange;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#turntale:hover h2,
#turntale:hover p,
#turntale:hover .badge
{
    color: orange;
    border-color: orange;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#merge_film_festival:hover h2,
#merge_film_festival:hover p,
#merge_film_festival:hover .badge
{
    color: orange;
    border-color: orange;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#home:hover h3
{
    color: orange;
    transition: color 0.3s ease;
}
/* END OF MOUSE EVENTS */

/* ICONS */
.icon
{
    width: 15%;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    transition: transform 0.5s ease;
    border-radius: 14px;
}

.icon:hover
{
    filter: grayscale(0%);
    transform: scale(1.2);
}

.badge
{
    display: inline-block;
    font-size: 11px;
    font-family: 'Roboto';
    font-weight: 400;
    color: #888;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 2px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.coming-soon
{
    font-size: 13px;
    font-family: 'Roboto';
    color: #aaa;
    font-style: italic;
    margin-top: 6px;
}
/* END OF ICONS */

/* SCROLLBAR */
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

#apps_section {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#apps_section::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* MOBILE LAYOUT */

@media (max-width: 900px) {

    body {
      min-width: 0;
      overflow-x: hidden;
      justify-content: flex-start;
      align-items: stretch;
      background: transparent;
      margin: 10px;
      border-radius: 24px;
      overflow: hidden;
    }

    body::before{
        inset: 0;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 20% calc(100% - 70px) !important;
        z-index: -1;
      }

    #apps_section {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;

      width: 100%;
      margin-left: 0;
      height: 85vh;
      padding: 0;
      border-radius: 22px 22px 0 0;

      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);

      box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
      box-sizing: border-box;

      transform: translateY(var(--sheet-translate, 9999px));
      transition: transform 260ms ease;
      -webkit-overflow-scrolling: touch;

      background: transparent;
      overflow: hidden;
    }

    #apps_section::before{
        content: "";
        position: absolute;
        inset: 0;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 0;
      }

      #apps_section > *{
        position: relative;
        z-index: 1;
      }

      #apps_section.no-anim {
        transition: none !important;
      }

    #apps_section.is-dragging {
      transition: none;
    }

    .sheet-handle{
        position: sticky;
        top: 0;
        z-index: 20;

        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1.3px solid rgba(0, 0, 0, 0.25);

        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        touch-action: none;
      }

      .sheet-handle::before {
        content: "";
        width: 64px;
        height: 6px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.20);
      }

      .sheet-content{
        padding: 10px 18px env(safe-area-inset-bottom);
        height: calc(100% - 52px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        overscroll-behavior: contain;
      }

      .sheet-content::after{
        content: "";
        display: block;
        height: 150px;
      }

      html{
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        background: #ffffff;
      }

    h1 { font-size: 22px; }
    h2 { font-size: 18px; letter-spacing: 1px; }
    h3 { font-size: 16px; letter-spacing: 1px; }
    p  { font-size: 15px; line-height: 1.65; }

    .icon {
      width: 52px;
      max-width: 18vw;
    }

    #apps_sites:hover .icon,
    #apps_sites:active .icon,
    #apps_sites:focus-within .icon,

    #weathaff:hover .icon,
    #weathaff:active .icon,
    #weathaff:focus-within .icon,

    #turntale:hover .icon,
    #turntale:active .icon,
    #turntale:focus-within .icon,

    #merge_film_festival:hover .icon,
    #merge_film_festival:active .icon,
    #merge_film_festival:focus-within .icon,

    #home:hover .icon,
    #home:active .icon,
    #home:focus-within .icon {
      filter: grayscale(0%);
      transform: scale(1.1);
    }

    #apps_sites, #weathaff, #turntale, #merge_film_festival, #home {
      -webkit-tap-highlight-color: transparent;
    }

    hr {
      opacity: 0.35;
    }

    #apps_section { outline: 3px solid rgb(255, 181, 84); }
  }
