@tailwind base;
@tailwind components;
@tailwind utilities;

@import './iphone.css';

@layer base {
  @font-face {
    font-family: "Favorit";
    src: url(/assets/ABCFavorit-Book-443533c2854836b181dc2846ec7cf2eb7fcfe931ea439778cd8542614a0f41d4.otf);
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: "Favorit";
    src: url(/assets/ABCFavorit-Medium-9cc97473f462491750918d4448a78f6fa010640a71faad4f1e9591014466aa60.woff2);
    font-weight: 500;
    font-style: normal;
  }

  @font-face {
    font-family: "Favorit";
    src: url(/assets/ABCFavoritExtended-Bold-ee00e211b7b535b6f6eb88c65b05d9f7e219a7ff54b34741503e7bc3acf69a6e.otf);
    font-weight: bold;
    font-style: normal;
  }

  @font-face {
    font-family: "Inter";
    src: url(/assets/Inter-b9a8e5e213977665be2a56db66945a16c686da3d9861af1e7851322cf15495ea.ttf);
  }

  html {
    font-family: Favorit, sans-serif;
  }

  [x-cloak] { display: none !important; }

  /* width */
  ::-webkit-scrollbar {
    width: 1rem;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    background: #2F3138;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #6C6F7B;
    border-radius: 48px;
    background-clip: padding-box;
    border: 0.1875rem solid #2F3138;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #6C6F7B;
    background-clip: padding-box;
    border: 0.1875rem solid #2F3138;
  }

}

@layer components {
  input[type="radio"]:checked {
    @apply bg-purple-red-gradient-tr
  }

  input[type="radio"]:focus {
    outline-color: theme('colors.grey.600');
  }
}

@layer utilities {
  .bg-purple-red-gradient-tr {
    @apply bg-gradient-to-tr from-purple-red-start to-purple-red-end
  }

  .bg-orange-yellow-gradient-tr {
    @apply bg-gradient-to-tr from-orange-yellow-start to-orange-yellow-end
  }

  .bg-blue-indigo-gradient-tr {
    @apply bg-gradient-to-tr from-blue-indigo-start to-blue-indigo-end
  }

  .bg-purple-gradient-tr {
    @apply bg-gradient-to-tr from-purple-start to-purple-end
  }

  .dimmed {
    position: relative;
    overflow: hidden;
  }

  .dimmed:after {
    content: " ";
    z-index: 10;
    display: block;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
  }

  .fixed-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}



.iphone {
  position: relative;
  border-radius: 40px;
  box-shadow: 0px 0px 0px 6px #1f1f1f, 0px 0px 0px 7px #4C4A46, 0px 0px 0px 10px #4C4A46;
  display: flex;
  align-items: center;
  padding-bottom: 12px;
  padding-top: 30px;
  font-family: "-apple-system", "BlinkMacSystemFont", "Inter", 'sans';
}

.iphone:before,
.iphone:after{
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* home button indicator */
.homebutton {
  position: absolute;
  bottom: 7px;
  width: 36%;
  height: 4px;
  border-radius: 10px;
  left: 50%;
  transform: translateX(-50%);
}
  
/* frontal camera/speaker frame */
.notch {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 54%;
  height: 30px;
  background-color: #1f1f1f;
  border-radius: 0px 0px 20px 20px;
  transform: translateX(-50%);
}

.speaker,
.camera {
  position: absolute;
  display: block;
  color: transparent;
}
  
/* speaker */
.speaker {
  top: 8px;
  left: 50%;
  transform: translate(-50%);
  height: 8px;
  width: 25%;
  background-color: #101010;
  border-radius: 8px;
  box-shadow: inset 0px -3px 3px 0px rgba(256, 256, 256, 0.2);
}

  
/* camera */
.camera {
  left: 70%;
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: #101010;
  border-radius: 12px;
  box-shadow: inset 0px -3px 2px 0px rgba(256, 256, 256, 0.2);
}

.camera:after {
  content: '';
  position: absolute;
  background-color: #2d4d76;
  width: 6px;
  height: 6px;
  top: 2px;
  left: 2px;
  top: 3px;
  left: 3px;
  display: block;
  border-radius: 4px;
  box-shadow: inset 0px -2px 2px rgba(0, 0, 0, 0.5);
}

.ios-battery,
.ios-time,
.ios-wifi,
.ios-signal {
  position: absolute;
  top: 16px;
}

.ios-time {
  left: 20px;
  top: 13px;
}
.ios-signal {
  right: 62px;
}
.ios-wifi {
  right: 42px;
}
.ios-battery {
  right: 14px;
}



/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
