* {
  box-sizing: border-box;
}


@media screen and (orientation: portrait) {
  .text3 {
    padding: 50px 0;
    text-align: center;
  }
  .tilt {
    text-align: center;
  }
  .tilt1 {
    text-align: center;
    font-size: 20px;
    padding: 15Spx 0;
  }
  .tilt2 {
    padding: 50px 0;
    position: relative;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }
  body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: lightblue;

  }
  canvas {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  .canvas-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .image-container {
    width: 100%;
    height: 100vh;
    top: 45494px;
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
  }
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  .modal-content {
    background-color: rgba(0,0,0,0.9);
    margin: 45% auto; /* 15%from the top and centered */
    padding: 20px;
    font-size: 35px;
    backdrop-filter: blur(10px);
    webkit-backdrop-filter: blur(10px);
    height: 35%;
    border-radius: 20px;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .modal2 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  .modal-content2 {
    background-color: rgba(0,0,0,0.9);
    margin: 45% auto; /* 15%from the top and centered */
    padding: 20px;
    font-size: 35px;
    backdrop-filter: blur(10px);
    webkit-backdrop-filter: blur(10px);
    height: 35%;
    border-radius: 20px;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  .close2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close2:hover,
  .close2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .linkedin {
    position: absolute;
    left: 0%;
    background-color: lightblue;
    border-radius: 3px;
    bottom: 80px;
    border: solid 2px white;
    display: block;
    width: 125px;
    height: 40px;  
  }
  .instagram {
    position: absolute;
    text-decoration: none;
    font-size: 0.6rem;
    color: white;
    background: #42a6e0;
    padding: 4px 12px;
    border-radius: 4px;
    bottom: 80px;
    border: solid 2px white;
    right: 0;
    width: 125px;
    height: 40px;
  }
  .email {
    position: absolute;
    text-decoration: none;
    font-size: 1.4rem;
    color: white;
    border: solid 2px white;
    background: #42a6e0;
    padding: 4px 10px;
    border-radius: 4px;
    bottom: 80px;
    left: 35%;
    font-family: sans-serif;
    width: 120px;
    height: 40px;
  }
  .resumepdf {
    position: absolute;
    text-decoration: none;
    font-size: 21px;
    color: white;
    border: solid 2px white;
    background: #42a6e0;
    padding: 20px 80px;
    text-shadow: 2px 2px 2px black;
    border-radius: 4px;
    bottom: 0px;
    font-family: sans-serif;
    width: 100%;
    height: 75px;
  }

}

@media screen and (orientation: landscape) {
  .text3 {
    display: none;
  }
  .tilt1 {
    display: none;
  }
  .tilt2 {
    display: none;
  }
  body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #111;
  }
  
  canvas {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  
  .canvas-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .image-container {
    width: 100%;
    height: 100vh;
    top: 45000px;
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
  }
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  .modal-content {
    background-color: rgba(0,0,0,0.9);
    margin: 5% auto; /* 15%from the top and centered */
    padding: 20px;
    font-size: 35px;
    backdrop-filter: blur(10px);
    webkit-backdrop-filter: blur(10px);
    height: 65%;
    text-align: center;
    border-radius: 20px;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .modal2 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  .modal-content2 {
    background-color: rgba(0,0,0,0.9);
    margin: 5% auto; /* 15%from the top and centered */
    padding: 20px;
    text-align: center;
    font-size: 35px;
    backdrop-filter: blur(10px);
    webkit-backdrop-filter: blur(10px);
    height: 65%;
    border-radius: 10px;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  .close2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close2:hover,
  .close2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .linkedin {
    position: absolute;
    left: 0%;
    background-color: lightblue;
    border-radius: 3px;
    bottom: 80px;
    border: solid 2px white;
    display: block;
    width: 220px;
    height: 60px;

  }
  .instagram {
    position: absolute;
    text-decoration: none;
    font-size: 0.6rem;
    color: white;
    background: #42a6e0;
    padding: 4px 12px;
    border-radius: 4px;
    bottom: 80px;
    border: solid 2px white;
    right: 0;
    width: 220px;
    height: 60px;
  }
  .email {
    position: absolute;
    text-decoration: none;
    font-size: 1.6rem;
    color: white;
    border: solid 2px white;
    background: #42a6e0;
    padding: 10px 20px;
    border-radius: 4px;
    bottom: 80px;
    left: 38%;  
    font-family: sans-serif;
    width: 175px;
    height: 60px;
  }
  .resumepdf {
    position: absolute;
    text-decoration: none;
    font-size: 24px;
    color: white;
    border: solid 2px white;
    background: #42a6e0;
    padding: 18px 235px;
    text-shadow: 2px 2px 2px black;
    border-radius: 2px;
    bottom: 0px;
    font-family: sans-serif;
    width: 100%;
    height: 70px;
  }

}
