@font-face {
    font-family: 'BlockCat';
    src: url('font/BlockCat.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
html{
    overflow-x: hidden;
}

body {
    font-family: 'BlockCat', sans-serif;
    color: white;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-image: url('./backgrounds/lines1.svg'), url('./backgrounds/lines3.svg'), url('./backgrounds/lines2.svg'), url('./backgrounds/lines4.svg');
    background-repeat: no-repeat;
    background-position: left 0 top 15%, right 0 top 10%, left 0 bottom 7%, bottom 0 right 17%;
    background-size: 38%, 28%, 36%, 21%;
    background-attachment: fixed;
    overflow-x: hidden;
}

@media (max-width: 800px) {
    body {
        background-position: left 0 top 35%, right 0 top 10%, left 0 bottom 7%, bottom 0 right 17%;
        background-size: 45%, 35%, 44%, 26%;
        background-attachment: fixed;
    }
}

@media (max-width: 480px) {
    body {
        background-position: left 0 top 35%, right 0 top 10%, left 0 bottom 7%, bottom 0 right 17%;
        background-size: 67%, 44%, 59%, 29%;
        background-attachment: fixed;
    }
}

@media (max-height: 400px) {
    body {
        background-image: url('./backgrounds/lines1.svg'), url('./backgrounds/lines3.svg'), url(), url();
        background-attachment: fixed;
    }
}

header>div {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header {
    height: 70px;
    padding: 10px 0;
    margin-bottom: 15px;
}

header img {
    height: 50px;
}

header nav ul {
    display: flex;
    gap: 15px;
}

header nav {
    display: inline-block;
    float: right;
}

main {
    flex: 1;
}

.c1 {
    display: block;
    padding: 0 200px;
    width: calc(100% - 400px);
    max-width: 1440px;
}

.c1.flex {
    display: flex;
}

@media (max-width: 1300px) {
    .c1 {
        padding: 0 50px;
        width: calc(100% - 100px);
    }
}

@media (max-width: 480px) {
    .c1 {
        padding: 0 10px;
        width: calc(100% - 20px);
    }
}

@media (min-width: 1400px) {
    .c1 {
        width: 1000px;
        margin: 0 auto;
    }
}

ul {
    list-style-type: none;
}

header nav ul li a {
    height: 50px;
    width: 100%;
    display: block;
}
main button {
    transition: 0.3s;
    background: transparent;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 10px;
    font-family: 'BlockCat';
    line-height: 1.5;
    padding-bottom: 0;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

main button::before {
    content: ">";
    padding-right: 20px;
    transition: 0.3s;
}

main button:hover::before {

    padding-right: 5px;
}

.full {
    width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
}

main button {
    margin-top: 15px;
}

@media (min-width: 700px) {
    main button {
        float: right;
        margin-top: -75px;
        font-size: 30px;
    }
}

h1 {
    font-size: 60px;
    text-align: center;
    line-height: .5;
}

h2 {
    font-size: 30px;
}

main img {
    margin-top: 20px;
}

@media (max-width: 600px) {
    h1 {
        margin-top: 40px;
    }

    main img {
        margin-bottom: 40px;
    }

    .pad {
        padding-left: 20px
    }
}

.prim {
    line-height: 1.5;
    margin-bottom: 40px;
}

.prim span {
    line-height: 1;
    font-size: 30px
}

summary {
    font-size: 16px;
    list-style: none;
    margin-top: 16px;
    margin-bottom: 16px;
    cursor: pointer;
}

.sidebar-box {
    margin-bottom: 30px;
}

p:empty {
    margin: 0;
    padding: 0;
}

h3 {
    font-size: 20px;
}

summary img {
    height: 20px;
    padding-right: 10px;
    margin-bottom: -6px;
}

.youtube-thumbnail {
    position: relative;
    cursor: pointer;
    display: inline-block;
    width: 100%;
}

.youtube-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.youtube-thumbnail .play-button {
    position: absolute;
    font-family: -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
    pointer-events: none;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: calc(45vh - 270px) auto;
    width: 90%;
    max-width: 960px;
    height: 540px;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal .close {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.news a {
    color: white;
}

.news a:hover {
    color: rgb(198, 198, 198);
    cursor: pointer;
}

.news a:visited {
    color: rgb(198, 198, 198);
}

.news a {
    position: relative;
    overflow: hidden;
}

.news a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.5s ease, transform 2s ease;
    transform: translateY(100%);
    pointer-events: none;
    z-index: 0;
}

.news a:hover::after {
    opacity: 1;
    transition: opacity 2s ease, transform 0.5s ease;
    transform: translateY(0%);
}

.news a>* {
    position: relative;
    z-index: 1;
}

.feed {
    background-color: rgba(255, 255, 255, 0.1);
    /* 10% biały */
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0 20px 0;
}

.feed .news {
    background-color: #121212;
    padding: 20px;
    border-radius: 10px;
}

/* Mobile: 1 kolumna */
@media (max-width: 425px) {
    .feed {
        grid-template-columns: 1fr;
    }
}

.youtube-thumbnail img {
    margin: 0 auto;
    display: block;
    height: 360px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 1300px) {
    .youtube-thumbnail img {
        height: 30vw;
    }
}

@media (max-width: 1024px) {
    .youtube-thumbnail img {
        height: 44vw;
    }
}

@media (max-width: 480px) {
    .youtube-thumbnail img {
        height: 53vw;
    }
}

.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "main sidebar"
      "video sidebar";
    gap: 40px;
  }
  
  .main-column {
    grid-area: main;
    padding-right: 20px;
  }
  
  .sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .video {
    grid-area: video;
  }
  
  /* MOBILE: układ pionowy */
  @media (max-width: 1024px) {
    .layout-grid {
      display: flex;
      flex-direction: column;
    }
  
    .main-column,
    .sidebar,
    .video {
      width: 100%;
    }
  }

  @media (max-width: 625px) {
    header h1 {
        width: 100%;
        margin-top: 0;
    }
    .c1.flex{
        flex-direction: column;
        align-items: center;
    }
    ul{
        margin: 0;
        padding: 0;
    }
    header nav ul li a, header nav ul li a img{
        height: 24px;
    }
}

.play-button img{
    height:32px;
    width: 32px;
}

main .news button{
 font-size: 16px;
 display: contents;
}