html {
    margin: 0;
    overflow: scroll;
    font-size: 24px;
    font-weight: 200;
}

body {
    margin: 0;
}

/*—————————————————————————————————————text—————————————————————————————————————*/


@font-face {
  font-family: "Theinhardt-Bold";
  src: url("fonts/Theinhardt-Bold.otf") format("otf"),
}

@font-face {
  font-family: "Theinhardt-Bold-Italic";
  src: url("fonts/Theinhardt-BoldIta.otf") format("otf"),
}

@font-face {
    font-family: "Theinhardt-Regular";
    src: url("style/fonts/Theinhardt-Regular.otf") format("otf");
}

@font-face {
  font-family: "Theinhardt-Regular-Italic";
  src: url("fonts/Theinhardt-RegularIta.otf") format("otf"),
}

h1 {
    font-family: "Theinhardt-Bold", sans-serif;
    font-size: 48px;
    font-weight: 400;
    text-align: left;
    margin: 0 0 15px 0;
}

h2 {
    font-family: "Theinhardt-Regular", sans-serif;
    font-size: 36px;
    font-weight: 400;
    text-align: left;
    margin: 0 0 15px 0;
}

h3 {
    font-family: "Theinhardt-Regular", sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: left;
    margin: 0 0 15px 0;
    
}

h4 {
    font-family: "Theinhardt-Regular", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    margin: 0 0 15px 0;
}

h5 {
    font-family: "Theinhardt-Bold", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: a22px;
    letter-spacing: 0.01em;
    text-align: center;
    margin: 0;
}

h6 {
    font-family: "Theinhardt-Regular", sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-align: left;
    margin: 0 0 15px 0;
}

.large {
    font-family: "Theinhardt-Regular", sans-serif;
    font-size: 18px;
    margin-block-start: 3vh;
    color: white;
}

p {
    font-family: "Theinhardt-Regular", sans-serif;
    font-size: 14px;
    margin: 0 0 0 0;
    color: black;
}

a {
    text-decoration: none;
}

a:visited {
    color: #FCD931;
}

.p-link {
    color: #FCD931;
    font-family: "Theinhardt-Bold", sans-serif;
}

.p-link:hover {
    color: white;
    border-bottom: 2px solid;
}

.onblack {
    color: white;
}


/*—————————————————————————————————————universal elements—————————————————————————————————————*/

.body-wrap {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    padding: 4vh 3vw;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.wrapper {
    width: 100%;
}

.content {
    position: absolute;
    height: 100%;
    top: 48px;
    height: calc(100% - 48px);
}

.nav-bar {
    position: fixed;
    width: 100%;
    top: 0;
    box-sizing: border-box;
    padding: 30px;
}

.nav-active {
    text-decoration: underline;
}

#home {
    display: inline-block;
    width: 20%;
}

.left2 {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 3vw;
    position: relative;
    width: 40%;
    margin-left: -2px;
}

.right2 {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 3vw;
    position: relative;
    float: right;
    width: 40%;
    margin-right: -2px;
}

#compose {
    grid-column: 6 / span 1;
    text-align: center;
}

.two-columns {
    display: grid;
    grid-template-columns: 2 1fr;
    grid-gap: 15px;
}

.column-left {
    display: inline-block;
    grid-column: 1 / span 1;
    width: 100%;
}

.column-right {
    display: inline-block;
    grid-column: 2 / span 1;
    width: 100%;
}

/*—————————————————————————————————————Universal UI—————————————————————————————————————*/
.text-label-inactive {
    color: #737475;
}

.text-label {
    cursor: pointer;
    text-decoration: underline;
}

button {
    box-sizing: border-box;
    height: 39px;
    padding: 10px;
    border: 2px solid white;
    border-radius: 5px;
    background-color: #FCD931;
    
    cursor: pointer;
    font-family: "Theinhardt-Bold", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;  
}

.button-label {
    display: inline-block;
}

.radio-container {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 10px 10px 8px 10px;
    cursor: pointer;
    font-family: "Theinhardt-Bold", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.01em;
    text-align: center;  
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 2px solid white;
    border-radius: 5px;
}

.vertical {
    display: block;
    margin-bottom: 4px;
}

.size-dropdown {
    display: none;
    
/*    display: block;*/
    padding: 10px 10px 8px 10px;
    margin: 0 0 -2px 0;
    
    line-height: 14px;
}

.bottom-radio {
    height: 36px;
    padding: 0;
}

.radio-container img {
    height: 70%;
    margin: 15%;
}

/* Hide the browser's default radio button */
.radio-container input {
    position: absolute;
    opacity: 0;
    display: none;
    cursor: pointer;
}

/* Create a custom radio button */
.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #E5E5E5;
    z-index: -1;
}

/* On mouse-over, add a grey background color */
.radio-container:hover input ~ .radio-checkmark {
  background-color: #ccc;
}

/* When the radio button is checked*/
.radio-container input:checked ~ .radio-checkmark {
  background-color: #FCD931;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-container input:checked ~ .radio-checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.radio-container .radio-checkmark:after {
    display: none;
}

.square {
    width: 39px;
}

/*the container must be positioned relative:*/
.custom-select {
    position: relative;
    font-family: "Theinhardt-Bold", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.01em;
    text-align: left;
    margin: 0;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
    background-color: #FCD931;
    margin-bottom: -2px;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 18px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: black transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent black transparent;
  top: 12px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
    color: black;
    padding: 8px 16px;
/*    border: 2px solid white;*/
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    margin-bottom: -2px;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: white;
    border: 2px solid #FCD931;
    border-radius: 5px;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

.slidecontainer {
    width: 100%;
    margin-bottom: 20px;
}

.slidecontainer-tall {
    width: 100%;
    margin-bottom: 40px;
}

.slider {
    cursor: pointer;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 5px;
    background: #FCD931;
    outline: none;
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: black;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: black;
    cursor: pointer;
}

.slider-label {
    margin-bottom: -5px;
}

textarea {
	font-family: "Theinhardt-Bold", sans-serif;
	font-size: 16px;
}

/*—————————————————————————————————————what specific—————————————————————————————————————*/
#what-links {
    margin-block-start: 3em; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    column-gap: 1.5vw; 
    width: 80%; 
}

#what-text {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    column-gap: 1.5vw; 
    width: 80%; 
    margin-top: 12vh;
}

/*—————————————————————————————————————composer specific—————————————————————————————————————*/
#settings {
    cursor: pointer;
}

#character-controls, #animation-controls {
    display: none;
}

#cnv-holder {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-grow: 5;
    flex-direction: row;
    margin: 15px 0;
}

#the-text-input {
    position: absolute; 
    min-width: 150px;
    min-height: 150px;
    opacity: 0;
}

#clear-button, #reset-button {
    flex-grow: 1;
    width: unset;
}

#reset-button {
    margin-right: 10px;
}

#control {
    display: inline-flex;
    flex-direction: column;
    flex-basis: 1;
    justify-content: space-between;
    grid-row: 1;
}

#control-modal {
    display: none;
    position: fixed;
    overflow: visible;
    min-width: calc(40% + 15px);
    right: 30px;
    bottom: 14vh;
    border: 2px solid black;
    border-radius: 5px;
    background-color: white;
    box-sizing: border-box;
    padding: 15px 30px 30px;
}

.small-modal-label {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#small-modal-x {
    cursor: pointer;
}

#modal-sections {
    font-size: 24px;
    line-height: 1.2;
}

#animation {
    display: none;
}

.control-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
    width: 100%;
}

#cog {
    display: inline-block;
    vertical-align: text-bottom;
    margin-left:10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* The container */
.color-radio-drawer {
    position: relative;
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    margin: 0 0 4px 0;
    cursor: pointer;
    font-family: "Theinhardt-Bold", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.01em;
    text-align: left;  
    background-color: #FCD931;
    border: 2px solid white;
    border-radius: 5px;
}

.color-radio-drawer-active {
    z-index: 100;
    background-color: rgba(255, 255, 255, 0);
}

.color-radio-options {
    display: none;
    margin: 10px 0 0 0;
}

.color-radio-container {
    display: inline-block;
    position: relative;
    margin: 0 2px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.color-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    display: none;
}

/* Create a custom radio button */
.color-radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #E5E5E5;
    z-index: -1;
}

/* On mouse-over, add a grey background color */
.color-radio-container:hover input ~ .color-radio-checkmark {
  background-color: #ccc;
}

/* When the radio button is checked*/
.color-radio-container input:checked ~ .color-radio-checkmark {
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.color-radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.color-radio-container input:checked ~ .color-radio-checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.color-radio-container .color-radio-checkmark:after {
    display: none;
}

/*—————————————————————————————————————new—————————————————————————————————————*/


@media only screen and (min-width: 2400px) {
	#control-modal {
		min-width: calc(20% + 15px);
	}
	#settings-container {
		width: 20%;
	}
	#what-text {
		width: 60%;
	}
}

@media only screen and (max-width: 768px) {    
    #key-info {
        display: none;
    }
    
    @media only screen and (orientation: landscape) {
        #control-modal {
            bottom: 60px;
            width: 95%;
            right: auto;
            left: 2.5%;
            height: 95%;
            top: 2.5%;
            background-color: rgba(255, 255, 255, .8);
        }

        #opacity-value, #speed-value {
            display: none;
        }
    }

    @media only screen and (orientation: portrait) {
        .body-wrap {
            padding: 2vh;
        }
        #home {
            line-height: 1.2;
            display: block;
            width: 100%;
            text-align: left;
            margin: 0 0 6vh 0;
        }

        #key-info {
            display: none;
        }

        #export-container {
            display: grid;
            grid-column-gap: 10px;
            position: absolute;
            top: 8vh;
            left: 3vw;
            width: calc(100% - 6vw);
        }
        
        #cnv-holder {
            justify-content: center;
        }

        #control-modal {
            min-width: 0;
            min-height: 425px;
            top: auto;
            right: auto;
            left: 15px;
            bottom: 60px;
            padding: 10px 10px 15px;
            width: calc(100% - 30px);
            background-color: rgba(255, 255, 255, .8);
        }

        #settings-container {
            box-sizing: border-box;
            position: absolute;
            width: calc(100% - 6vw);
        }

        #play-pause {
            display: flex;
            justify-content: flex-end;
        }

        .bottom-radio {
            margin-left: 10px;
        }

        #what-text {
            display: block; 
            box-sizing: border-box;
            width: 100%; 
            margin: 0;
        }

        #ok-nice {
            font-family: "Theinhardt-Bold", "Theinhardt-Regular", sans-serif;
            position: relative; 
            bottom: inherit; 
        }
        
        #clear-button, #reset-button {
            width: unset;
            min-width: unset;
        }
        
        #what-links {
            display: block;
        }
        
    }
}
