@import url('https://media.sciencemediacenter.de/static/fonts/aller.css');

* {
    box-sizing: border-box !important;
}
html, body {
    margin: 0;
}
main#content {
    width: min(100%, 600px);
    height: min(100vh, 900px);
    /* margin-inline: auto; */
    display: flex;
    flex-direction: column;
}

/* VIDEO */
main#content #hyperplayer {
    width: 100%;
    display: none;
} 
video {
    display: block;
}

/* TRANSCRIPT */
#transcript {
    width: 100%;
    border: 1px solid #999; 
    padding: 8px;
    /* display: none; */
    font-family: 'Aller Regular', sans-serif;
    min-height: 0;

    display: flex;
    flex-direction: column;
}
#hypertranscript {
    min-height: 0;
}
.hyperaudio-transcript article header {
    display: none;
}
/* .hyperaudio-transcript article header h1 {
    margin: .3em 0 1em 0;
    font-size: x-large;
} */
span.word.read.active {
    /* color: pink !important; */
    /* border-right: 2px solid #D7C455; */
    transition: ease-in-out .2s;
}

/* SEARCH */
span.word.search-match {
    background-color: #ebe1aa !important;
}

#searchForm {
    margin: 1em 0;
    padding: 0;
    display: flex;
    gap: .5rem;
}
#searchForm #search {
    height: 30px;
    border: 0;
    border-bottom: 1px solid #999;
    padding: 0;
    transition: ease-in-out .1s;
    /* border: 0 0 1px 0 !important; */
}
#searchForm #search:focus-visible { 
    outline: none;
    border-color: #d7c455;
}
#searchForm #search:focus-visible + button[type=submit] { 
    border-color: #d7c455;
}
#searchForm button[type=submit], .dropbtn {
    height: 34px !important;
    width: 34px !important;
    border: 0;
    /* border: 1px solid #999; */
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: ease-in-out .2s;
    border: 1px solid #999;
    border-radius: 3px 3px 3px 0;
    overflow: hidden;
} 
#searchForm button[type=submit] svg, .dropbtn svg{
    transition: ease-in-out .1s;
    /* background-color: #c5c5c5; */
} 
#searchForm button[type=submit]:hover svg, .dropbtn:hover svg{
  -webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
  filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
    /* background-color: #c5c5c5; */
} 
.search-details {
    font-size: 80%;
    color: #666;
}
#search-info {
    display: none;
}
.search-button {
    display: none;
}
/* DOWNLOAD-DROPDOWN */
 /* Dropdown Button */
 .dropbtn {
    /* padding: 16px; */
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
  }
  
  /* Dropdown button on hover & focus */
  /* .dropbtn:hover, .dropbtn:focus {
    background-color: #2980B9;
  } */
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    margin-left: auto;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #ddd}
  
  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
  .show {display:block;} 


/* GALLERY-SPEAKER-TOGGLE */
.view-toggle {
    border: 1px solid #c6c6c6;
    color: #c6c6c6;
    width: fit-content;
    border-radius: 3px;
    box-sizing: border-box;
}
.view-toggle .item {
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    transition: .2s ease-in-out;

}

.view-toggle .item.active{
    outline: 1px solid #666;
    color: #666;
    border-radius: 3px;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
}
