/*! HTML5 Boilerplate v7.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

 
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}




 /* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  background: white;
}



p {
  margin: 0px;
  padding: 0px;
  padding-top: 2px;
}

a {
  text-decoration: none;
}

/* P H O N E ========================================================*/

.PhoneHelper{
    pointer-events: none;
    z-index: 9999;
}

#BlockerTop{
  position: absolute;
  top:-35%;
  height: 40%;
  width: 100%;
  background: white;
}

#BlockerBottom{
  position: absolute;
  margin-top: -100px;
  bottom:-17%;
  height: 40%;
  width: 100%;
  background: white;
}

#PhoneCase {
}

#WholePhone {
  position:fixed;
  left: 50%;
  transform: translateX(-50%);
  
  width: 100vw;
  min-width: 300px;
  max-width: 500px;

  height: 100vh;
  min-height: 450px;
  max-height: 826px;

  margin-top:0px;
  margin-bottom: 0px;
  padding-bottom: 0px;
  padding-top: 0px;
}


/* Easter Eggs */

.InvisiButton {
	position:absolute;
	pointer-events: auto;
	z-index: 99999;

	background-color: none;
	opacity: initial;
}

#Button_Power {
	width:58px;
	height:14px;
	right:107px;
	top:12px;
}

#Button_Sound {
	width: 6px;
	height:30px;
	left:32px;
	top: 86px;

}

#Button_VolumeUp {
	width: 12px;
	height: 58px;
	left:28px;
	top: 130px;

}

#Button_VolumeDown {
	width: 12px;
	height: 58px;
	left:28px;
	top: 190px;

}

/* TOP */

#Phone_TopLeft {
  width:108px;
  height:240px;
  background-image: url("../media/Phone_TopLeft.png");
  background-position:center;
  background-size: 108px 240px;
  position:absolute;
  left:0px;
  top:8px;
}

#Phone_TopRight {
  width:108px;
  height:240px;
  background-image: url("../media/Phone_TopRight.png");
  background-position:center;
  background-size: 108px 240px;
  position:absolute;
  right:0px;
  top:8px;
}

#Phone_TopEdge {
  height:100px;
  background-image: url("../media/Phone_TopEdge.png");
  background-position:center;
  background-size: 8px 100px;
  position:absolute;
  left:108px;
  right:108px;
  top:8px;
}

#Phone_Speaker {
  width:134px;
  height:28px;
  background-image: url("../media/Phone_Speaker.png");
  background-position:center;
  background-size: 134px 28px;
  position:relative;
  margin:auto;
  top:50px;
}

#Phone_Power {
  width:63px;
  height:35px;
  background-image: url("../media/Phone_Power.png");
  background-position:center;
  background-size: 63px 35px;
  position:absolute;
  top:8px;
  right:108px;
}

/* BOTTOM */


#Phone_BottomLeft {
  width:108px;
  height:124px;
  pointer-events: auto;
  background-image: url("../media/Phone_BottomLeft.png");
  background-position:center;
  background-size: 108px 124px;
  position:absolute;
  left:0px;
  bottom:80px;
}

#Phone_BottomRight {
  width:108px;
  height:124px;
  pointer-events: auto;
  background-image: url("../media/Phone_BottomRight.png");
  background-position:center;
  background-size: 108px 124px;
  position:absolute;
  right:0px;
  bottom:80px;
}

#Phone_BottomEdge {
  height:147px;
  pointer-events: auto;
  background-image: url("../media/Phone_BottomEdge.png");
  background-position:center;
  background-size: 8px 147px;
  position:absolute;
  left:108px;
  right:108px;
  bottom:80px;
}

#Phone_Button {
  width:75px;
  height:75px;
  pointer-events: auto;
  z-index: 9999;
  background-image: url("../media/Phone_Button.png");
  background-position:center;
  background-repeat: no-repeat;
  background-size: 75px 75px;
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom:116px;
}

/* SIDES */

#Phone_LeftEdge {
  width:80px;
  background-image: url("../media/Phone_LeftEdge.png");
  background-position:center;
  background-size: 80px 1px;
  position:absolute;
  left:0px;
  top:248px;
  bottom:204px;
}

#Phone_RightEdge {
  width:80px;
  background-image: url("../media/Phone_RightEdge.png");
  background-position:center;
  background-size: 80px 1px;
  position:absolute;
  right:0px;
  top:248px;
  bottom:204px;
}

/* S C R E E N ========================================================*/

#ScreenContent {
  position:relative;
  margin: auto;
  margin-top:0px;
  margin-bottom: 0px;
  
  padding-bottom: 0px;
  padding-top: 0px;
 
  z-index: 10;
  
  width: 100vw;
  min-width: 300px;
  max-width: 500px;

  height: 100vh;
  min-height: 540px;
  max-height: 826px;

  background: white;

  overflow-y:scroll;
  -webkit-overflow-scrolling: touch;

}

#ScreenContent::-webkit-scrollbar {
    width: 0px;
}

#ScreenContent::-webkit-scrollbar-thumb {
  background-color: white;
}

.ScreenHelper {
  position: relative;
  margin-left: 80px;
  margin-right: 86px;
  margin-bottom: 12px;
 
}

.PhoneLink {
  height: 48px;
  background: #ff6666;

  text-align: center;
  text-decoration:none; 
  color:white;

  font-style: none;
  font-size: 32px;
  font-family: 'Inconsolata', monospace;
  font-weight: 700; 

}

.PhoneLink :hover { 
  background-color: white;
  color:#ff6666;
  border-style: solid;
  border-width: 3px;
  border-color: #ff6666;
  height: 42px;
  padding-top: 0px;
}

.PhoneLink :active { 
  background-color: #FED1D2;
  color:#ff6666;
  border-style: solid;
  border-width: 3px;
  border-color: #ff6666;
  height: 42px;
  padding-top: 0px;
}


#Logo {
  height: 80px;
  margin-top: 116px;
  background: #5085ef;
  background-image: url("../media/SVPRDVPR_Logo_Blue.gif");
  background-position:center;
  background-repeat: no-repeat;
  background-size: 98%;

}

#Promo {
  background: #96B3F6;
  background-image: url("../media/PizzaPromo.gif");
  background-size: 150px;
  outline: 3px solid #5085ef;
  outline-offset: -3px;
  border: 9px solid white;
  height: 120px;
}

#PromoText {

  position: relative;
  background: white;
  outline: 0px solid #5085ef;
  outline-offset: -3px;

  
  top:45px;
  left:-83px;

  padding: 0px;
  margin-left: 50%;

  text-align: center;
  transform: rotate(-20deg);

  font-style: none;
  font-size: 22px;
  font-family: 'Inconsolata', monospace;
  font-weight: 700; 
  color: #5085ef;
  width: 166px;

  -webkit-animation-name: PromoAnimation; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration:2s; /* Safari 4.0 - 8.0 */
  animation-name: PromoAnimation;
  animation-duration: 2s;
  animation-iteration-count: infinite;

}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes PromoAnimation {
  0%   {color:#5085ef; transform:rotate(-15deg) scale(1)}
  25%  {color:#ff6666;  }
  50%  {color:#5085ef; transform:rotate(15deg) scale(1)}
  75%  {color:#ff6666; }
  100% {color:#5085ef; transform:rotate(-15deg) scale(1)}
}

/* Standard syntax */
@keyframes PromoAnimation {
  0%   {color:#5085ef; transform:rotate(-15deg) scale(1)}
  25%  {color:#ff6666;  }
  50%  {color:#5085ef; transform:rotate(15deg) scale(1)}
  75%  {color:#ff6666; }
  100% {color:#5085ef; transform:rotate(-15deg) scale(1)}
}


#About {
  background: white;
  outline: 3px solid #5085ef;
  outline-offset: -3px;
  padding: 12px;

  text-align: left;

  font-style: none;
  font-size: 18px;
  font-family: 'Inconsolata', monospace;
  font-weight: 700; 
  color: #5085ef;
  line-height: 22px;
}

.InlineLink {
  white-space: nowrap;
  text-decoration: underline;
  color: #ff6666;

}

#Grad {
  position: relative;
  height: 4000px;
  background: red;
  background-image: linear-gradient(to bottom, white, #ff6666 , #5085ef, #99ffe4, #a19fff, #ffd5b6, #ffec7d);

}

#Trunk {
  height:200px;
  position: relative;
  background-image: url("../media/Guy.gif");
  background-position:top;
  background-repeat: no-repeat;
  background-size: 100%;
}

#Spacer {
  height:188px;
  position: relative;
  background: white;
}


#ScreenWarning {
	display: none;
	width: 100%;
	height: 100vh;

	text-align: center;
	line-height: 100vh;
	font-style: none;
	font-size: 36px;
	font-family: 'Inconsolata', monospace;
	font-weight: 700; 
	color: white;

	/*background-image: url("../media/PizzaPromo.gif");*/

	-webkit-animation-name: WarningAnimation; /* Safari 4.0 - 8.0 */
	-webkit-animation-duration: 6s; /* Safari 4.0 - 8.0 */
	animation-name: WarningAnimation;
	animation-duration: 6s;
	animation-iteration-count: infinite;


}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes WarningAnimation {
  0%	{transform:rotate(0deg); opacity:0} 	/*Start*/
  5%	{transform:rotate(0deg); opacity:100}	/*Fade in*/
  15%	{transform:rotate(0deg); opacity:100}	/*Pause*/
  46%	{transform:rotate(-90deg); opacity:100} 	/*Rotate*/
  49%	{transform:rotate(-90deg); opacity:0}  	/*Fade out*/
  50%	{transform:rotate(0deg); opacity:0} 	/*Start*/
  55%	{transform:rotate(0deg); opacity:100}	/*Fade in*/
  65%	{transform:rotate(0deg); opacity:100}	/*Pause*/
  96%	{transform:rotate(90deg); opacity:100} 	/*Rotate*/
  100%	{transform:rotate(90deg); opacity:0}  	/*Fade out*/
}

/* Standard syntax */
@keyframes WarningAnimation {
  0%	{transform:rotate(0deg); opacity:0} 	/*Start*/
  5%	{transform:rotate(0deg); opacity:100}	/*Fade in*/
  15%	{transform:rotate(0deg); opacity:100}	/*Pause*/
  46%	{transform:rotate(-90deg); opacity:100} 	/*Rotate*/
  49%	{transform:rotate(-90deg); opacity:0}  	/*Fade out*/
  50%	{transform:rotate(0deg); opacity:0} 	/*Start*/
  55%	{transform:rotate(0deg); opacity:100}	/*Fade in*/
  65%	{transform:rotate(0deg); opacity:100}	/*Pause*/
  96%	{transform:rotate(90deg); opacity:100} 	/*Rotate*/
  100%	{transform:rotate(90deg); opacity:0}  	/*Fade out*/
}




/*--FOR TINY PHONES----*/

@media only screen and (max-width: 359px) {

	#BlockerBottom{
		background-color: white;
	}

	#PromoText {
		top: 36px;
		left:-45px;
		font-size: 20px;
		padding-top: 6px;
		padding-bottom: 6px;
		width: 90px;
		line-height: 20px;
	}


	.PhoneLink {
		padding-top: 4px;
		font-size: 26px;
		height: 42px;
	}

  	#About {
		background: white;
		outline: 3px solid #5085ef;
		outline-offset: -3px;
		padding: 12px;

		text-align: left;

		font-style: none;
		font-size: 14px;
		font-family: 'Inconsolata', monospace;
		font-weight: 700; 
		color: #5085ef;
		line-height: 18px;
	}


}

/*--FOR LANDSCAPE PHONES----*/

@media only screen and (orientation: landscape) and (max-height: 500px){

	body {
		background-color:  #ff6666;
	}

	#ScreenWarning {
		display:block;
	}

	#PhoneCase {
		display: none;
	}

	#ScreenContent {
		display: none;
	}
}

/*--FOR LAPTOPS/ --*/

@media only screen and (orientation: landscape) and (min-height: 450px){

	#BlockerBottom{
		background-color: white;
	}

	#WholePhone {
		top: 5vh;
	}


	#ScreenContent {
		top: 5vh;
	}

}

/*--FOR REALLY LARGE SCREENS ---*/

@media only screen and (min-height: 980px){

	#BlockerBottom{
		background-color: white;
	}

	#WholePhone {
		top: 10vh;
	}


	#ScreenContent {
		top: 10vh;
	}

 /* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

 
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


