/* *****************
    Content View
****************** */

@keyframes gallery_movement {
    0% {
        left: 1rem;
        up: 0rem;
        box-shadow: #000 -20px 20px;
    }
    50% {
        left: 1.5rem;
        up: 1rem;
        box-shadow: #000 -30px 30px;
    }
}

section.main .view[data-view="light_mode"] {
    /* Schachbrett-Muster */
    background-color: white;
    background: 
        repeating-conic-gradient(var(--background-color) 0 25%, #0000 0 50%) 
        25% / 150px 150px;
    
    background-position: 1000 0;    
    min-height: 100vh;
    animation: loop 20s linear infinite;
    z-index: 1;
}

section.main .view[data-view="dark_mode"]{
    /* Schachbrett Muster */
    background-color: black;
    background: 
        repeating-conic-gradient(black 0 25%, #0b0b0b 0 50%) 
        25% / 50px 50px;
    
    background-position: 1000 0;    
    animation: loop 20s linear infinite;
    z-index: 1;
}

section.main .content-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px 15px 5px;     
    align-items: center;
   
}

.gallery {
    position: relative;
    z-index: 0;
    display: grid;
    place-items: center;
    grid-template-areas: "stack"; 

    margin-inline: 0rem !important;
    position: relative;
    
    /* Schachbrett Muster */
     background-color: black;
     background: 
         repeating-conic-gradient(black 0 25%, #080808 0 50%) 
         25% / 50px 50px;
     
     background-position: 1000 0;    
     animation: loop 20s linear infinite;
     
    padding-block: 4rem;
    transform: rotatez(2deg) scale(1.2,1.2);
    overflow-x: hidden;
    outline: solid var(--primary-color) 0.75rem;
    box-shadow: 0 0 1px #000;    //damit es antialiasing anschaltet
    height: 35rem;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
.gallery img {
    max-width: 40rem;
    width: 65%;
    transform: rotate(-2deg);
    grid-area: stack;
    z-index: 3;
    position: relative;
    transition: 0.5s;
    box-shadow: rgba(0, 255, 97, 0.25) 0px 0px 4rem;
}

@media (hover: hover) {
   .gallery img:hover {
      max-width: 42rem;
      transition: 0.5s;
      box-shadow: rgb(0, 255, 97, 0.5) 0px 0px 4rem;
      //cursor: pointer;
      }
}

/* .gallery video {
    position: relative;
    z-index: 2;
    grid-area: stack;
    height: auto;
    max-width: 400px;
    width: 100%;

    aspect-ratio: 16 / 9;
    transform: rotate(-2deg);
} */

.gallery_scroll {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
}

.gallery video {
    position: fixed;
    z-index: 2;
    grid-area: stack;
    height: 100vh;
    opacity: 10%;
    filter: blur(25px);
    object-fit: cover;

    aspect-ratio: 16 / 9;
    transform: rotate(-2deg);
    transition: 2s;
}

/* .gallery video:hover {
    filter: blur(0px);
    transition: 0.75s;
} */

.gallery h3 {
    position: relative;
    color: #fff;
    transform: rotate(-2deg);
}

.gallery h1 {
    position: relative;
    text-align: center;
    color: #fff;
    transform: rotate(-2.1deg);
    margin-inline: 2rem;
}

.gallery .placeholder {
    position: relative;
    grid-area: stack;
    z-index: 1;

    max-width: 400px;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: black;
    transform: rotate(-2deg);
}

.box {
    position: absolute;
    z-index: 3;
    background-color: black;
}

section.main .content-view .switch_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: baseline;
    gap: 15px;
    margin-bottom: 2rem;
    scroll-behavior: smooth;
}

.switch_content_button_github {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 100%;
    background-color: white;
    border: 3px solid transparent;
    box-shadow: var(--shadow-color) 0px 0px 15px;
    scrollbar-width: thin;
}
.switch_content_button_github:hover {
    transition: 0.5s;
    border: 3px solid var(--primary-color);
}
.switch_content_button_github:active {
    transform: translateY(0.5rem);
}

.project_content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.project_list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: 0.75s;
}
.year {
     margin-top: 1rem;
 }
/* .one-item-row .project_button {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
}
.one-item-row {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.two-item-row {
    display: flex;
    flex-direction: row;
    gap: 10%;
    flex-wrap: wrap;
} */

section.main .content {
    display: flex;
    flex-direction: column;
    padding-inline: 15px;
}

.alert {
    font-size: larger;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background:#fff8e1;
    border:1px solid #ffd27f;
    color:#333;
}

.underline {
    width: 7rem;
    height: 0.2rem;
    background-color: #0000002e;
}

.about-me {
   display: flex; 
   pointer-events: none; 
   position: relative; 
   flex-direction: column; 
   align-items: center; 
   bottom: 12rem;  
   margin-bottom:-12rem;
}

.about-me__media {
   position: relative; 
   z-index: 1;
   width: 20rem; 
   height: 20rem; 
   top: 1rem;
   padding: 2rem;
   //top: 6rem;
}

.about-me__photo__gradient{
   position: relative; 
   z-index: 2;
   width: 20rem; 
   height: 5rem; 
   top: 27rem;
   background: linear-gradient(0deg,rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.about-me__content {
   background: black;
   transition: border-radius 0.5s;
   width: 100%; 
   height: 100%; 
   border-radius: 4rem 4rem 0 0;
   display: flex; 
   flex-direction: column;
   align-items: center;
   //padding-top: 7rem;
}

.about-me__content h1, h2, h3, h4 {
   color: white;
}

.about-me__content .orange_button {
   width: 20rem; pointer-events: visible;
}

.about-me__content__preferred-tools {
   max-width: 800px; 
   margin-inline: 2rem; 
   text-align: center;
}

.about-me__content h3 {
   text-align: center; 
   margin-bottom: 1rem; 
   padding-inline: 3rem; 
   max-width: 900px;
}

@media screen and (max-width: 650px) {
    section.main .content-view {
        align-items: stretch;
        text-align: center;
        padding: 0 2px 15px 2px !important;
    }
    .project_list {
        align-items: center;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    section.main .content-view .switch_content {
        display: flexbox;
        justify-content: center;
        padding-inline: 1rem;
        gap: 1.3rem;
    }
    .switch_content_button_github {
        width: 4rem;
        height: 4rem;
    }
    
    .gallery img {
        width: 90%;
        margin-left: 0.5rem;
      }
   .gallery {
      height: 30rem !important;
   }
    .year {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    .underline {
        width: 8rem;
    }
    .two-item-row {
        flex-direction: column;
    }
}
