* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #222;
    color: #fff;
    height: 100vh;
}

.back1{
   height: 40px;
   width: 120px;
   margin-left: 30px;
   margin-top: 5px;
   margin-bottom: 5px;
}

.back {
    text-decoration: none;
}



codinAni{
    background-color: #e78383;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    /* width: 200px; */
    overflow: hidden;
}

 .codinAni span{
    position: relative;
    font-family: "lato" ,sans-serif;
    top: 20px;
    color: rgb(218, 69, 231);
    display: inline-block;
    font-size: 2rem;
    text-shadow: 0 1px 0 #b7b7b7,0 2px 0 #b7b7b7,0 3px 0 #b7b7b7,0 4px 0 #b7b7b7,0 5px 0 #b7b7b7,0 6px 0 #b7b7b7,0 7px 0 #b7b7b7,0 8px 0 #b7b7b7,0 9px 0 transparent,0 10px 10px  rgba(0, 0, 0, 0.5) ;
    animation: bounce 0.4s ease infinite alternate;

}

.codinAni h1 span:nth-child(2){
    animation-delay: 0.1s;
}
.codinAni h1 span:nth-child(3){
    animation-delay: 0.2s;
}
.codinAni h1 span:nth-child(4){
    animation-delay: 0.3s;
}
.codinAni h1 span:nth-child(5){
    animation-delay: 0.4s;
}
.codinAni h1 span:nth-child(6){
    animation-delay: 0.5s; overflow: hidden;
}
@keyframes bounce {
    100%{
        top: -10px;
        text-shadow: 0 1px 0 #ccc, 0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc, 0 5px 0 #ccc, 0 6px 0 #ccc, 0 7px 0 #ccc, 0 8px 0 #ccc, 0 9px 0 #ccc,0 60px 30px rgba(0, 0, 0, 0.3);

    }
    
}















.container {
    display: flex;
    height: 100%;
    padding: 10px;
    gap: 10px;
}

.editor-pane {
    display: flex;
    flex-direction: column;
    flex: 1;
    border: 1px solid #444;
}

h2 {
    font-size: 18px;
    padding: 10px;
    background-color: #333;
    border-bottom: 2px solid #555;
    text-align: center;
}


/* Tablet View (max-width: 1024px) */
@media (max-width: 1024px) {
  .back1 {
    width: 130px;
    height: 38px;
    margin-left: 20px;
  }

  .back3 {
    font-size: 15px;
  }

  .codinAni span {
    font-size: 2rem;
  }

  .container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  /* 👇 editor-pane & iframe height dynamically adjusted */
  .editor-pane {
    height: 110vh; /* 110% of tablet viewport height */
  }

  h2 {
    font-size: 17px;
    padding: 10px;
  }

  iframe {
    width: 100%;
    height: 100%;
    min-height: 100vh; /* ensures full tablet screen fill */
  }
}















/* Mobile View (max-width: 600px) */
@media (max-width: 600px) {
  body {
    height: auto;
    padding-bottom: 20px;
  }

  .back1 {
    width: 120px;
    height: 35px;
    margin: 10px auto;
    display: block;
  }

  .back3 {
    font-size: 14px;
  }

  .codinAni {
    height: 50px;
  }

  .codinAni span {
    font-size: 1.5rem;
  }

  .container {
    flex-direction: column;
    padding: 5px;
  }

  /* Editor Pane height set dynamically */
  .editor-pane {
    height: 120vh; /* 120% of mobile screen height */
  }

  h2 {
    font-size: 16px;
    padding: 8px;
  }

  /* 👇 iframe follows the parent height dynamically */
  iframe {
    height: 100%;
    width: 100%;
    min-height: 100vh; /* ensures it always fills at least full mobile screen */
  }
}
