<label for="fileinput">Upload some files?</label>
<button class="uploadzone" commandfor="fileinput" command="show-picker">Click this huge square to upload</button>
<input type="file" class="sr-only" id="fileinput" />
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wdth@75..100&family=Oswald:wght@600&display=swap");

@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    min-block-size: 100dvb;
    display: flex;
    background: #2f242c;
    color: #fff;
  }

  label {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 4rem;
    margin-block-end: 1rem;
    text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.2),
      1px 1px 1px rgba(0, 0, 0, 0.6);
  }

  h2 {
    font-size: 2rem;
    margin: 0;
  }

  p {
    margin-block-start: 0;
  }

  .uploadzone {
    background: rgba(255 255 255 / 0.05);
    border: 0.4rem dashed #a42cd6;
    width: 50vw;
    height: 50vh;
    font-family: "Open sans", sans-serif;
    font-size: 2rem;
    cursor: pointer;
    color: white;
  }

  .sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
  }

  svg {
    width: 1.4rem;
    color: inherit;
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.