@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');

/* Global */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto Mono', helvetica, sans-serif;
    text-align: center;
    line-height: 1.5;
    font-size: 1em;
    background: rgb(50, 50, 50);
    color: white;
}

button {
    background: white;
    color: black;
    padding: 17px 22px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.section {
    width: 100%;
}


#myCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Welcome */
.welcome {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

 .welcome__body {
    display: inline-block;
    width: 30%;
    animation: blinkingText 1s, fadeGlow 3s;
}

@keyframes blinkingText{
    0% { opacity: 1; text-shadow: 0 0 10px #fff;      }
    9%{ opacity: 0.01; text-shadow: none; }
    10%{ opacity: 1; text-shadow: 0 0 10px #fff;       }
    20%{ opacity: 1; text-shadow: 0 0 10px #fff;}
    21%{ opacity: 0.01; text-shadow: none; }
    29%{ opacity: 0.01; text-shadow: none; }
    30%{ opacity: 1; text-shadow: 0 0 10px #fff;       }
    35%{ opacity: 0.01; text-shadow: none; }
    89%{ opacity: 0.01; text-shadow: none; }
    90%{ opacity: 1; text-shadow: 0 0 10px #fff;}
}

@keyframes fadeGlow {
    0%{ text-shadow: 0 0 10px #fff;}
    50%{ text-shadow: 0 0 10px #fff;}
    100%{ text-shadow: none;}
}

.work {  
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    width: 100%;
    padding: 150px;
    padding-bottom: 250px;
    box-sizing: border-box;
}

.work > div {
    flex: 1;
}

.work__description {
    text-align: left;
    padding-right: 5%;
    font-size: 20px;
    box-sizing: border-box;
}

.work__grid-holder {
    display: inline-flex;
    flex-wrap: wrap;
}

.work__grid {
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 50px;
    padding: 50px;
    width: 70%;
}

.work__grid__column {
    flex: 31%;
    max-width: 31%;
    padding: 0 1%;
}

.work__grid__cell {
    width: 100%;
}

.work__grid__cell img {
    width: 100%;
}

.slide-animation-cell.in-view img {
    transform: translateY(-2200px);
    animation: slideDown 1s;
    animation-fill-mode: forwards;
}

.slide-animation-cell.in-view.delay-1 img {
    animation: slideDown 1s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}
.slide-animation-cell.in-view.delay-2 img {
    animation: slideDown 1s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

.phone-divider {
    display: none;
}

/* I make games */
.gif-holder {
    position: relative;
    padding: 4em 10em;
    box-sizing: border-box;
    overflow: hidden;
}

.showcase img, .showcase img, .showcase video, .showcase video {
    filter: grayscale(100%) brightness(40%);
    width: 50%;
    float: left;
    margin: 0;
}

.showcase img, .showcase img, .showcase video, .showcase video {
  -webkit-transition: all 2s ease;
  transition: all 2s ease;
}

.showcase img:hover, .showcase img:hover, .showcase video:hover, .showcase video:hover {
    filter: grayscale(0%) brightness(80%);
}

@media (max-width: 1000px) {
    .welcome__body {
        width: 70%;
        font-size: 1.2rem;
    }
    
    .work {  
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        width: 100%;
        padding: 3em;
        box-sizing: border-box;
    }   
    
    .work .work__description {
        flex-basis: calc(100% - 12px);
        padding-right: 0;
        padding-bottom: 25%;
    }
    
    .work .work__grid-holder {
        flex-basis: calc(50% - 12px);
    }
    
    .work__grid {
        width: 50%;
        margin: auto;
    }
    
    .phone-divider {
        display: block;
        margin: 25em 0;
        font-size: 1.2rem;
    }
    
    .gif-holder {
        padding: 1em 2em;
    }

    .title {
        font-size: 1.2rem;
    }
    
    .showcase img, .showcase video {
        width: 100%;
    }

    .showcase {
        padding-bottom: 100px;
        padding-top: 100px;
    }
    
    .showcase a:nth-child(2), .showcase a:nth-child(2) {
        display: none;
    }
    
    .showcase img:nth-child(2), .showcase video:nth-child(2) {
        display: none;
    }
    
    .contact__form {
        display: inline-block !important;
        width: 85% !important;
    }

    .contact__form input, .contact__form textarea, .contact__form button {
        padding: 40px !important;
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    .work .work__grid {
        width: 100%;
    }
}

.slide-animation {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    visibility: hidden;
}

.slide-animation.in-view {
    visibility: visible;
}

.slide-animation.in-view.above .title {
    animation: slideDown 1s;
}

.slide-animation.in-view.below .title {
    animation: slideUp 1s;
}

@keyframes slideDown {
    0%{ transform: translateY(-2000px); }
    100%{ transform: translateY(0px); }
}

@keyframes slideUp {
    0%{ transform: translateY(2000px); }
    100%{ transform: translateY(0px); }
}

/* Contact */
.contact {
    text-align: center;
    padding: 350px 0;
}

.contact h1 {
    margin-bottom: 50px;
}

.contact__form {
    display: inline-block;
    width: 45%;
}

.contact__form input {
    padding: 20px 25px;
    border: none;
    border-radius: 5px;
    margin-bottom: 3%;
    width: 48.5%;
    font-size: 18px;
    box-sizing: border-box;
}

.contact__form input.left {
    float: left;
}

.contact__form input.right {
    margin-left: 3%;
}

.contact__form #subject {
    width: 100%;
}

.contact__form textarea {
    border: none;
    border-radius: 5px;
    width: 100%;
    min-height: 150px;
    padding: 25px;
    font-size: 18px;
    box-sizing: border-box;
    margin: none;
    margin-bottom: 3%;
}

.language-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.lang-button {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1;
  background-color: #fff;
  color: #333;
  border: 2px solid #333;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  height: 38px; /* ✅ fixed height */
  min-width: 60px; /* ✅ fixed minimum width to keep even sizing */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.lang-button:hover,
.lang-button.active {
  background-color: #333;
  color: #fff;
}