/**
* @package   Fixed Circular Navigation Menu
 * @author    Enrique Crespo Molera <contact@e-crespo.com>
 * @license   GPL-2.0+
 * @link      http://wordpress-fixed-circular-nav.e-crespo.com
 * @copyright 2014 Enrique Crespo Molera
 */

/**
 * Main styles file
 * @package circular-nav.css
 * @author  Enrique Crespo Molera <contact@e-crespo.com>
 */


/* CIRCULAR MENU MAIN STYLES */

/* Prevent iOS text size adjust after orientation change, without disabling user zoom, like in normalize.css */
html, body {
    -ms-text-size-adjust: 100% !important;
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    -o-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

.circular-nav, .circular-nav *{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    outline: 0;
}

.circular-nav.cn-modern .cn-wrapper :before, .circular-nav.cn-modern .cn-wrapper :after{
    -webkit-box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    box-sizing: content-box !important;
}

.circular-nav.cn-modern{
    font-size: 16px !important;
}

.cn-modern .cn-wrapper {
    font-size: 0.70em;
    width: 26em;
    height: 26em;
    overflow: hidden; 
    position: fixed;
    z-index: 100000;
    border-radius: 50%;
    -webkit-transform: scale(0.1);
    -ms-transform: scale(0.1);
    -moz-transform: scale(0.1);
    transform: scale(0.1);
    pointer-events: none;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}

.cn-modern .cn-wrapper.opened-nav {
    border-radius: 50%;
    pointer-events: auto;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.cn-modern .cn-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
    z-index: 10000;
}

.cn-modern .cn-overlay.on-overlay {
    visibility: visible;
    opacity: 1;
}

.cn-modern .cn-button {
    outline: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    background: none;
    color: #fff;
    font-family: verdana;
    text-align: center;
    font-size: 1.6em;
    height: 3.5em;
    width: 3.5em;
    position: fixed;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000000;
    box-shadow: 0 0 2px 2px #999;
}

.cn-modern .cn-wrapper li {
    position: absolute;
    font-size: 1.5em;
    width: 10em;
    height: 10em;
    -webkit-transform-origin: 100% 100%;
    -moz-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    overflow: hidden;
    left: 50%;
    top: 50%;
    margin-top: -1.3em;
    margin-left: -10em;
    -webkit-transition: border .3s ease;
    -moz-transition: border .3s ease;
    transition: border .3s ease;
 }

 .cn-modern .cn-wrapper .cn-anchor {
    display: block;
    font-size: 1.18em;
    height: 14.5em;
    width: 14.5em;
    position: absolute;
    bottom: -7.25em;
    right: -7.25em;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    padding-top: 1.4em;
    text-align: center;
    -webkit-transition: opacity 0.3s, color 0.3s;
    -moz-transition: opacity 0.3s, color 0.3s;
    transition: opacity 0.3s, color 0.3s;
 }

.cn-modern .cn-wrapper li a span {
    opacity: 0.9;
}

.cn-modern .cn-wrapper li a span p {
    opacity: 0.9;
}


/* Tweaks for android stock browsers and internet explorer browsers */

.cn-modern.cn-asb .cn-wrapper.top-position {
    top: -10em !important;
}

.cn-modern.cn-asb .cn-button.top-position{
    top: -0.2em !important;
}

.cn-modern.cn-ie .cn-wrapper .cn-anchor, .cn-modern.cn-asb .cn-wrapper .cn-anchor{
    pointer-events: none !important;
}

.cn-modern.cn-ie .cn-wrapper li a span, .cn-modern.cn-asb .cn-wrapper li a span{
     pointer-events: auto !important;
}



/* Simple Fallbacks of circular menu */

/* Fallback for old android stock browsers ( <=android 3 ) */
.cn-old-asb .cn-button {
    display: none;
}

.cn-old-asb .cn-wrapper li {
    position: static;
    float: left;
    font-size: 10px;
    width: 45px;
    background-color: #eee;
    text-align: center;
    line-height: 25px;
    list-style: none;
}

.cn-old-asb .cn-wrapper li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-size: 1.3em;
    border-right: 1px solid #ddd;
}

.cn-old-asb .cn-wrapper li a:last-child {
    border: none;
}

.cn-old-asb .cn-wrapper li.active a {
    background-color: #6F325C;
    color: #fff;
}

.cn-old-asb .cn-wrapper {
    font-size: 1em;
    height: 50px;
    top: 0;
    margin: 0 auto;
    overflow: hidden;
    position: absolute;
    z-index: 100000;
    border-top: 1px solid #ddd;
}

/* Fallback for old internet explorers browsers */
.cn-old-ie .cn-button {
    display: none;
}

.cn-old-ie .cn-wrapper li {
    position: static;
    float: left;
    font-size: 14px;
    width: 110px;
    background-color: #eee;
    text-align: center;
    line-height: 40px;
    list-style: none;
}

.cn-old-ie .cn-wrapper li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-size: 1.3em;
    border-right: 1px solid #ddd;
}

.cn-old-ie .cn-wrapper li a:last-child {
    border: none;
}

.cn-old-ie .cn-wrapper li.active a {
    background-color: #6F325C;
    color: #fff;
}

.cn-old-ie .cn-wrapper {
    font-size: 1em;
    height: 75px;
    width: 100%;
    bottom: 0;
    left: 15%;
    margin: 0 auto;
    overflow: hidden;
    position: fixed;
    z-index: 100000;
 }



 /* CIRCULAR MENU MEDIA QUERIES */

/* Tablets, notebooks and laptops */
@media screen and (min-width:768px) {
  .cn-modern .cn-wrapper {
        font-size: 1em;
  }

  .cn-modern .cn-button {
        font-size: 1.95em;
  }
  
  .cn-modern .cn-wrapper li {
        font-size: 1.5em;
  }
}

/* Big desktop screens */
@media screen and (min-width:1680px) {
  .cn-modern .cn-wrapper {
        font-size: 1.25em;
  }

  .cn-modern .cn-button {
        font-size: 2.25em;
  }
 
  .cn-modern .cn-wrapper li {
        font-size: 1.5em;
  }
}