﻿/*
 CSS for the main interaction
*/
.tabset > input[type="radio"] {
  position: absolute;
  right: -200vw;
}

.tabset .tab-panel {
  display: none;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6),
.tabset > input:nth-child(13):checked ~ .tab-panels > .tab-panel:nth-child(7),
.tabset > input:nth-child(15):checked ~ .tab-panels > .tab-panel:nth-child(8)
{
  display: block;
}

/*
 Styling
*/
.tabs-border
{
	border:1px #CCCCCC solid;
    border-radius: 50px;
    display:inline;
    padding:12px 7px;
}


.tabset > label {
  position: relative;
  display: inline-block;
  padding:15px 15px 15px 15px;
  border: 1px solid transparent;
  border-bottom: 0;
  cursor: pointer;
  text-transform:capitalize;
  font-weight: 500;
  font-size:14px;    
  padding: 8px 25px;
  color:#000;
  margin-bottom:5px;
}

input:focus-visible + label {
  outline: 2px solid rgba(0,102,204,1);
  border-radius: 3px;
}

.tabset > label:hover,
.tabset > input:focus + label,
.tabset > input:checked + label {
    color: #fff;
    background-color: #e72a31;
    border-radius: 50px;
}

.tabset > label:hover::after,
.tabset > input:focus + label::after,
.tabset > input:checked + label::after {
  background: #161616;
}

.tab-panel {
  padding: 10px 0;
}

/*
 Demo purposes only
*/
*,
*:before,
*:after {
  box-sizing: border-box;
}


.tabset {
  max-width: 100%;
  text-align:center;
}