:root {
--nav-width: 280px;
cursor:url('heart.cur'), auto;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    color: #a53657;
    background-color: #d1cece;
}

@font-face {
font-family: 'Cherish';
src: url('../Cherish.ttf');
}

@font-face {
font-family: 'Ambitsek';
src: url('../ambitsek.ttf');
}

@font-face {
font-family: 'Ambitsek';
src: url('../ambitsek.ttf');
font-weight: bold;
}

@font-face {
font-family: 'Ambitsek';
src: url('../ambitsek.ttf');
font-style: italic;
}

@font-face {
font-family: 'Ambitsek';
src: url('../ambitsek.ttf');
font-style: italic;
font-weight: bold;
}

@font-face {
font-family: 'daydream';
src: url('../Daydream DEMO.otf');
}

@font-face {
  font-family: 'Silverlining';
  src: url('../SilverLining.ttf');
}

body {
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #f196c8;
    background-image: url(11.jpg);
    background-size: repeat;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit; /*znamená, že barva bude stejná, jako barva textu jaká je nastavena v body*/
}

a, a *, button {
    cursor: url('pawclick.cur'), pointer;
}

.page-shell {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 38px 0 44px;
    transition: transform 0.32s ease;
}

body.nav-open .page-shell {
    transform: translateX(calc(280px / 2));
}

.page-header {
    width: min(850px, 100%);
    min-height: 280px;
    margin: 0 auto 30px;
    padding: 58px 56px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    position: relative;
    background-color: white;
    color: #f196c8;
}

.divider {
    text-align: center;
    margin: 5px;
    width: auto;
}

/* Obrázek za headerem */
.page-header::before {
    content: "";
    position: absolute;
    inset: -16px; /* šířka rámu, který jde vidět */
    z-index: -1;

    background-image: url("https://64.media.tumblr.com/ed46be67fac3f7e6a1a504e66f6af360/tumblr_pkazczwPtu1vxsjkb_400.gif");
    background-position: center;
    background-repeat: repeat;
    filter: brightness(115%);
}

   .site-logo {
    position: relative;
    display: block;
    width: min(540px, 90%);
}

.site-logo img {
    width: 100%;
    height: auto;
}

.logo-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);

}

.site-logo:hover .logo-normal {
    opacity: 0;
}

.site-logo:hover .logo-hover {
    opacity: 1;
}

    .page-header p {
        max-width: 610px;
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 25px;
    }

    .project-card {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .project-logo-link {
        min-height: 250px;
        padding: 40px;
        overflow: hidden;
        display: grid;
        place-items: center;
        background-color: transparent;
        text-decoration: none;
    }

    .project-logo-link img {
        width: 100%;
        height: 190px;
        object-fit: contain;
        transition: transform 0.28s ease;
        
filter: drop-shadow(1px 1px 0 rgba(43, 43, 43, 0.185)) 
  drop-shadow(-1px 1px 0 rgba(43, 43, 43, 0.185)) 
  drop-shadow(0 2px 0 rgba(43, 43, 43, 0.185)) 
  drop-shadow(0 -1px 0 rgba(43, 43, 43, 0.185)) 
  drop-shadow(0 1px 1.5px rgba(43, 43, 43, 0.185)) 
  drop-shadow(0 -1px 1.5px rgba(43, 43, 43, 0.185)) 
  drop-shadow(1px -1px 1.5px rgba(43, 43, 43, 0.185)) 
  drop-shadow(-1px -1px 1.5px rgba(43, 43, 43, 0.185));     
    
    }

.project-logo-link:hover img,
.project-logo-link:focus-visible img {
    transform: scale(1.045);
}

.project-info {
    flex: 1;
    padding: 10px 20px 20px;
    background-color: #F6F2EC;
    color: #DE5F7C;
    border-width: 7px; 
    border-style: solid; 
    border-image: url(border.gif) 6 fill round;          
    }

.project-info h2 {
    min-height: 2.5em;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1.25;
    text-align: justify;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.project-pictograms {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    color: #584839;
}

.pictogram {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-height: 24px;
    display: grid;
    place-items: center;
    font-size: 18px;

}

.pictogram span {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-info > p {
    max-width: 65ch;
    margin: 0 auto;
    line-height: 1.65;
    color: #ac485f;
}

.page-footer {
    min-height: 60px;
    padding: 10px;
    display: grid;
    place-items: center;
    background: #faadd1;
    color: #ffffff;
    text-align: center;
    font-style: italic;
    font-size: 12px;
    font-family: 'Ambitsek';
}

.page-footer p {
    margin: 0;
}

.nav-image {
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    text-align: center;
}

.nav-toggle {
    position: fixed ;
    top: 46%;
    left: 0;
    z-index: 30;
    width: 42px;
    height: 72px;
    padding: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: #fad0e5 ;
    color: #ffffff;
    cursor: url(pawclick.cur), pointer;
    transition:left 0.32s ease, background-color 0.2s ease ;
}

.nav-toggle:hover {
    background-color: #faadd3;
}

.nav-toggle span {
    font-size: 2rem;
    line-height: 1;
}

body.nav-open .nav-toggle {
    left: 280px
}

.side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 25;
    width: 280px;
    height: 100vh;
    padding: 36px 18px;
    overflow-y: auto;
    background: #fddbec ;
    transform: translateX(-100%);
    transition: transform 0.32s ease;
}

body.nav-open .side-nav {
    transform: translateX(0);
}

.side-nav-title {
    font-family: 'Ambitsek';
    color: #fff;
    margin: 0 0 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 18px;
}

.side-group + .side-group {
    margin-top: 9px;
}

.side-button {
   width: 100%;
    padding: 12px 13px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-family: 'ambitsek';
    font-weight: bold;
    text-align: left;
    cursor: url(pawclick.cur), pointer;
    transition: background-color 0.2s ease;
}

.side-button:hover,
.side-button {
    background: #fac1dc;
}

.side-button span {
    font-size: 1.15rem;
    transition: transform 0.22 ease;
}

.side-group.is-open .side-button span { /*možná zbytečné?*/
    transform: rotate(45deg);
}

.side-links {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s linear 0.35s;
}

.side-group.is-open .side-links {
    max-height: 300px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);

    transition-delay: 0s;
}

.side-links a {
    padding: 10px 13px;
    display: block;
    background:#f8acd1;
    color: #fff;
    text-decoration: none;
    font-style: italic;
    text-align: center;
}

.side-links a:hover,
.side-links a:focus-visible,
.side-links a[aria-current="page"] {
    background: #f390c0;
}

/*odstranění viditelnosti lišty*/
body::-webkit-scrollbar {
display: none;
}

 /*odstraní lištu ve firefoxu a blinkwebu či co to je za sračku*/
body.noScrollbarBlinkWebKit::-webkit-scrollbar {   
display: none;
}

html.noScrollbarFirefox {
scrollbar-width: none;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  cursor: url('pawclick.cur'), pointer;
}

.tooltiptext {
  visibility: hidden;
  width: 130px;
  background-color: black;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 65%;
  margin-left: -65px;
  font-size: 13px;
  font-weight: normal;
  font-family: 'Courier New', Courier, monospace;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.tooltip.pagedoll {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 300px;
    border: 0;
}

.pagedoll img {
    width: 100%;
    height: auto;
}

.pagedoll .tooltiptext {
    width: 220px;
    bottom: 100%;
    left: 50%;
    margin: 0 0 10px;
    transform: translateX(-50%);
    z-index: 10000;
}

/*MEDIA QUERY*/

@media (max-width: 820px) {
    .page-shell {
        width: min(620px, calc(100% - 34px));
        padding-top: 22px;
    }

    body.nav-open .page-shell {
        transform: none;
    }

    .page-header {
        min-height: 230px;
        padding: 42px 28px 38px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-logo-link {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-width: min(82vw, 280px);
    }

    .page-shell {
        width: calc(100% - 24px);
    }

    .page-header {
        min-height: 205px;
        margin-bottom: 18px;
        padding: 34px 20px 30px;
        gap: 24px;
    }

    .project-grid {
        gap: 22px;
    }

    .project-logo-link {
        min-height: 185px;
        padding: 28px;
    }

    .project-logo-link img {
        height: 145px;
    }

    .project-info {
        padding: 24px 20px 26px;
    }

    .project-pictograms {
        gap: 4px;
    }

    .pictogram span {
        font-size: 0.65rem;
    }

    .nav-toggle {
        width: 36px;
        height: 64px;
    }

    .side-nav {
        padding: 30px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
