@import 'react-rg-designsystem/style/variables.scss';

html { 
  overflow: hidden;
}

.Viewer {
  
  &.desktop {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  &.mobile {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    
    &::before {
      content: '';
      width: 40px;
      height: 40px;
      border: 4px solid #f3f3f3;
      border-top: 4px solid var(--primary-zero);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 16px;
    }
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}