/* Import all components */
@import 'themes/default/globals/site.variables';
@import 'themes/pxt/globals/site.variables';

/* Reference import */
@import (reference) "semantic.less";

/*******************************
             Layout
*******************************/

.tutorial #maineditor .full-abs {
    top: 5.5rem;
}
/* Tutorial Mode */
#menubar .ui.menu .item.tutorial-menuitem {
    background: rgba(27, 28, 29, 0.3) !important;
    margin: calc(0.45rem);
    padding: calc(0.45rem);
    border-radius: 0.5rem !important;
}
#menubar .ui.menu .item.tutorial-menuitem > .step-label {
    margin-left: 0.4em;
    margin-right: 0.4em;
}
#menubar .ui.menu .item.tutorial-menuitem > .label {
    background: white;
    margin-left: 0em;
}
.tutorial-menuitem > .selected {
    background-color: @tutorialSelectedMenuColor !important;
    padding: 1.0rem !important;
    padding-left: 1.3rem !important;
    padding-right: 1.3rem !important;
}

#tutorialcard {
    position: relative;
    z-index: 0;
    height: 6rem;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

#root.dimmable.dimmed #tutorialcard.tutorialReady {
    z-index: 1001;
}

#tutorialhint {
    height: 100%;
}

#tutorialcontent {
    position: fixed;
    top: 0;
    left: 0;
}

body#docs.tutorial {
    overflow-y: hidden;
}
#docs.tutorial .ui.segment {
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}
#docs.tutorial #content{
    margin-bottom: 0.5rem !important;
}

/******************************
    Tutorial Avatar
******************************/

#tutorialcard .ui.message {
    width: 100%;
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 5px 0px 0px 5px;
}

#tutorialcard .ui.message .avatar-image {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    width: 3rem;
    height: 3rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: @avatarUrl;
    cursor:pointer;
}

#tutorialcard {
    padding: 0.5rem;
}

#tutorialcard .ui.buttons {
    width: 100%;
    height: 4.5rem;
}

#tutorialcard .ui.message {
    width: 100%;
}

#tutorialcard .tutorialmessage .content {
    width: 100%;
    font-size: 12pt;
    height: 3.5rem;
    margin-bottom: 1rem;
    overflow: auto;
    cursor:pointer;
}
#tutorialcard .tutorialmessage .content p {
    line-height: 27px !important;
}

#tutorialcard .tutorialmessage {
    width: 100%;
    padding: 0.5rem;
    padding-left: 7rem;
    height: 4.5rem;
    margin-bottom: 1rem;
}

#root.dimmable.dimmed #tutorialcard .ui.message {
    border-radius: 3px;
}

#root.dimmable.dimmed #tutorialcard .tutorialmessage {
    border: solid white 2px;
}

/* Show / Hide in dimmer */
.ui.showlightbox {
    display: none;
}

#root.dimmable.dimmed #tutorialcard.tutorialReady .ui.showlightbox {
    display: block;
}

#root.dimmable.dimmed #tutorialcard.tutorialReady .ui.hidelightbox {
    display: none;
}

#root.dimmable.dimmed #tutorialcard.tutorialReady .ui.prevbutton, #root.dimmable.dimmed #tutorialcard.tutorialReady .ui.nextbutton {
    opacity: 0 !important;
}

#tutorialcard .ui.button.okbutton {
    border-radius: 0.28571429rem;
}

i.icon.avatar-image {
    background-repeat: no-repeat;
    background-size: contain;
    background-image: @avatarUrl;
}

/******************************
    Hint button
******************************/

#tutorialcard .ui.button.hintbutton {
    position: absolute;
    bottom: 2rem; 
    left: 4rem;
    font-size: 0.8rem;
    border-radius: 0.28571429rem;
    padding: 0.4rem;
	background-color: @primaryColor;
    color: white;
}

#tutorialcard .ui.button.hintbutton:after{
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
    left: -10px;
	right: auto;
    top: 0px;
	bottom: auto;
	border: 10px solid;
	border-color: @primaryColor transparent transparent transparent;
}


/******************************
    Inline Blocks and Buttons
******************************/

span.docs.inlinebutton {
    padding: 0.4rem;
    border-radius: 0.2rem;
    white-space: nowrap;
    background-color: @primaryColor;
    border: 1px solid lighten(@primaryColor, 20%);
    color: @white;
}

span.docs.inlineblock {
    padding: 0.10rem 0.3rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    background-color: lighten(@orange, 10%);
    border: 1px solid @orange;
    color: @white;
}

.tutorialmessage code, .tutorialmessage pre {
    font-weight: bold;
}

code.lang-filterblocks {
    display: none;
}

/*******************************
        Tutorial Hint
*******************************/

.ui.modal.hintdialog .content p {
    font-size: 16px;
    line-height: 25px;
}


/*******************************
        Media Adjustments
*******************************/

/* Large Monitor */
@media only screen and (min-width: @largeMonitorBreakpoint) {

}

/* Small Monitor */
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {

}

/* Tablet */
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {

}

/* Mobile */
@media only screen and (max-width: @largestMobileScreen) {
    #tutorialcard {
        
    }
    #tutorialcard .ui.message .avatar-image {
        display: none;
    }
    #tutorialcard .ui.button.hintbutton {
        display: none;
    }
    #tutorialcard .ui.button.prevbutton {
        display: none;
    }
    #tutorialcard .tutorialmessage {
        padding-left: 0.5rem;
    }
}

/* >= Small Monitor (Small Monitor + Large Monitor + Wide Monitor) */
@media only screen and (min-width: @computerBreakpoint) {
}

/* <= Small Monitor (Mobile + Tablet + Small Monitor) */
@media only screen and (max-width: @largestSmallMonitor) {

}

/* <= Tablet (Mobile + Tablet) */
@media only screen and (max-width: @largestTabletScreen) {

}

/* Mobile */
@media only screen and (max-width: @largestMobileScreen) {

}